Page 5 of 5 FirstFirst ... 345
Results 161 to 192 of 192
  1. #161
    MSgt. Shooter Person
    Join Date
    Jul 2010
    Location
    England, Kent, Longfield, New Ash Green
    Posts
    356
    Gamer IDs

    Gamertag: Hitman Spitfire

    Default

    Quote Originally Posted by HUxI View Post
    nyc tutorial but i wana knw is there any way to make ur cam a little side way cox my chracter is in the middle of screen and i want him to a bit on left side like other 3rd person games.....how will i do that
    You can do this by going into the skeletal mesh properties and then adjust the origin position like '-40' on the x or y's position ( so that he is not in the middle of the origin). Hope that helps
    UDK Environmental Artist - for UnrealPHD
    Youtube channel for latest tests on UDK: http://www.youtube.com/user/jmprsh153?feature=mhee
    Online Portfolio: http://parishproductionmedia.moonfruit.com/

  2. #162

    Default

    Quote Originally Posted by JmPrsh153 View Post
    You can do this by going into the skeletal mesh properties and then adjust the origin position like '-40' on the x or y's position ( so that he is not in the middle of the origin). Hope that helps
    yes it helps in wht i wana do but nw d problem is that whnever i press A and D to move the player move towards and away from camera respectivly.......what should i change in controller code so it wont happen and also i want to strafe right and left instead of player to face towards it and move

  3. #163

    Default

    Hello guys. I read all the 17 pages and tried all the methods and I cant see the robot on screen. Something has to be working because I can adjust the zoom level using the mouse wheel.
    This is my code

    PHP Code:
    class AnotherTestGameInfo extends GameInfo
    DefaultProperties 
    {
    PlayerControllerClass = class 'AnotherTest.AnotherTestActionPlayerController' //Setting the Player Controller to your custom script
    DefaultPawnClass = class 'AnotherTest.AnotherTestActionPawn' //Setting the Pawn to your custom script

    PHP Code:
    class AnotherTestActionPawn extends UTPawn;

    var 
    float CamOffsetDistance//distance to offset the camera from the player in unreal units 
    var float CamMinDistanceCamMaxDistance
    var 
    float CamZoomTick//how far to zoom in/out per command 
    var float CamHeight//how high cam is relative to pawn pelvis 


    //override to make player mesh visible by default 
    simulated event BecomeViewTargetPlayerController PC 

       
    local UTPlayerController UTPC

       
    Super.BecomeViewTarget(PC); 

       if (
    LocalPlayer(PC.Player) != None
       { 
          
    UTPC UTPlayerController(PC); 
          if (
    UTPC != None
          { 
             
    //set player controller to behind view and make mesh visible 
             
    UTPC.SetBehindView(true); 
             
    SetMeshVisibility(UTPC.bBehindView); 
             
             
    //Show Crosshair = false, hide = true 
             
    UTPC.bNoCrosshair false
          } 
       } 


    //orbit cam, follows player controller rotation 
    simulated function bool CalcCamerafloat fDeltaTimeout vector out_CamLocout rotator out_CamRotout float out_FOV 

        
    local vector HitLoc,HitNormEndStartvecCamHeight

        
    vecCamHeight vect(-20,20,0); 
        
    vecCamHeight.CamHeight
        
    Start Location
        
    End = (Location+vecCamHeight)-(Vector(Controller.Rotation) * CamOffsetDistance);  //cam follow behind player controller 
        
    out_CamLoc End

        
    //trace to check if cam running into wall/floor 
        
    if(Trace(HitLoc,HitNorm,End,Start,false,vect(12,12,12))!=none
        { 
            
    out_CamLoc HitLoc vecCamHeight
        } 

       return 
    true


    simulated function CamZoomIn() 

        if(
    CamOffsetDistance CamMinDistance)        CamOffsetDistance-=CamZoomTick


    simulated function CamZoomOut() 

        if(
    CamOffsetDistance CamMaxDistance)     CamOffsetDistance+=CamZoomTick


    defaultproperties 

        
    CamHeight 50.0 
        CamMinDistance 
    60.0 
        CamMaxDistance 
    350.0 
            CamOffsetDistance
    =250.0 
        CamZoomTick
    =20.0     

    PHP Code:
    class AnotherTestActionPlayerController extends UTPlayerController;

    //Update player rotation when walking 
    state PlayerWalking 

    ignores SeePlayerHearNoiseBump


       function 
    ProcessMove(float DeltaTimevector NewAcceleDoubleClickDir DoubleClickMoverotator DeltaRot
       { 
          
    local Vector tempAccel
            
    local Rotator CameraRotationYawOnly
             

          if( 
    Pawn == None 
          { 
             return; 
          } 

          if (
    Role == ROLE_Authority
          { 
             
    // Update ViewPitch for remote clients 
             
    Pawn.SetRemoteViewPitchRotation.Pitch ); 
          } 

          
    tempAccel.=  PlayerInput.aStrafe DeltaTime 100 PlayerInput.MoveForwardSpeed
          
    tempAccel.PlayerInput.aForward DeltaTime 100 PlayerInput.MoveForwardSpeed
          
    tempAccel.0//no vertical movement for now, may be needed by ladders later 
           
         //get the controller yaw to transform our movement-accelerations by 
        
    CameraRotationYawOnly.Yaw Rotation.Yaw;  
        
    tempAccel tempAccel>>CameraRotationYawOnly//transform the input by the camera World orientation so that it's in World frame 
        
    Pawn.Acceleration tempAccel
        
        
    Pawn.FaceRotation(Rotation,DeltaTime); //notify pawn of rotation 

        
    CheckJumpOrDuck(); 
       } 


    //Controller rotates with turning input 
    function UpdateRotationfloat DeltaTime 

    local Rotator   DeltaRotnewRotationViewRotation

       
    ViewRotation Rotation
       if (
    Pawn!=none
       { 
          
    Pawn.SetDesiredRotation(ViewRotation); 
       } 

       
    // Calculate Delta to be applied on ViewRotation 
       
    DeltaRot.Yaw   PlayerInput.aTurn
       
    DeltaRot.Pitch   PlayerInput.aLookUp

       
    ProcessViewRotationDeltaTimeViewRotationDeltaRot ); 
       
    SetRotation(ViewRotation); 

       
    NewRotation ViewRotation
       
    NewRotation.Roll Rotation.Roll

       if ( 
    Pawn != None 
          
    Pawn.FaceRotation(NewRotationdeltatime); //notify pawn of rotation 
    }    

    exec function NextWeapon()  

        
    AnotherTestActionPawn(Pawn).CamZoomOut(); 


    exec function PrevWeapon()  

        
    AnotherTestActionPawn(Pawn).CamZoomIn(); 


    DefaultProperties 

         

    Is this the correct way to load the game info?(pic)
    http://imgur.com/nZILZ


    Thanks.

  4. #164
    Skaarj
    Join Date
    May 2012
    Location
    France
    Posts
    6

    Default

    Hi,

    I'm asking here because I used that type of camera. I'd like to control the camera rotation (left and right) with the left stick on the Xbox 360 controller.
    But I don't know where I can change that, I don't find it int the DefaultInput.ini nor in the camera code. Maybe i'm missing it

    Thanks for any help !

    And thanks for the code, it works great

  5. #165
    Iron Guard
    Join Date
    Sep 2011
    Posts
    508
    Gamer IDs

    PSN ID: eshwarlion

    Default

    How do you slightly move the camera to the right of the player to give a third person shooter kinda look? I tried many possibilities but the rotation was messed up though the offset was in proper place

  6. #166

    Default

    Hello, I have ran into a bit of a wall when using this script - I'm attempting to use the original version of the script on page1. It just appears to give me the default in-game settings of GameInfo, The steps I have taken include
    1. Created this folder "UDK-2012-10\Development\Src\ActionGame\Classes" and placed "ActionPawn.uc" + "ActionPlayerController.uc" inside with the respective code.
    2. Edited "DefaultEngine.ini" to include "+ModEditPackage=ActionGame" (Also tried +EditPackages=ActionGame for what its worth) as the last entry under the field [UnrealEd.EditorEngine]
    3. Deleted UDKEngine.ini, closed everything and recompiled all scripts without error. (Only a warning message telling me theres nothing in MyMods which is from a previous script)
    4. Open UDK navigate to world properties change PIE to gameinfo (Do not see anything resembling "ActionGame"), run the game and it just gives me the floating character with no UI.

    Those are the steps Ive taken, If i have missed something could anyone fill me in? Would be greatly appreciated!
    Thanks in advance

    Edit: Forget to add the class, Whoops! :3

    class ActionGame extends UTDeathMatch;

    defaultproperties
    {
    DefaultPawnClass=class'ActionGame.ActionPawn'
    PlayerControllerClass=class'ActionGame.ActionPlaye rController'
    MapPrefixes[0]="Action"
    }
    Last edited by flethgin; 12-13-2012 at 02:40 AM. Reason: Resolved:

  7. #167
    MSgt. Shooter Person
    Join Date
    Dec 2012
    Posts
    42

    Default

    Hey. i somehow got the scripts working with my own files, but when i try running just the code you have, the mesh appears invisible. Everything compiles fine, and this bit of code:
    UTPC.SetBehindView(true);
    SetMeshVisibility(UTPC.bBehindView);
    UTPC.bNoCrosshair = true;

    should make it visible correct? If someone could help me on this, i would appreciate it.

  8. #168

    Default

    Quote Originally Posted by TheHybrid View Post
    Hey. i somehow got the scripts working with my own files, but when i try running just the code you have, the mesh appears invisible. Everything compiles fine, and this bit of code:
    UTPC.SetBehindView(true);
    SetMeshVisibility(UTPC.bBehindView);
    UTPC.bNoCrosshair = true;

    should make it visible correct? If someone could help me on this, i would appreciate it.

    I have the same problem. Everything compiles perfectly but the Mesh is not visible.

    Code:
    //override to make player mesh visible by default
    simulated event BecomeViewTarget( PlayerController PC )
    {
       local UTPlayerController UTPC;
    
       Super.BecomeViewTarget(PC);
    
      
          UTPC = UTPlayerController(PC);
          if (UTPC != None)
          {
             //set player controller to behind view and make mesh visible
             UTPC.SetBehindView(true);
             SetMeshVisibility(UTPC.bBehindView); 
             UTPC.bNoCrosshair = true;
          }
       }
    ...doesn't work.

    Anyone can help?

  9. #169

    Default

    Hi.. I saw this post and tried to used this codes.. but when I compile it says "error. in the ControllerPlayer class, "var" can't be use here" .. what could this be?

  10. #170

    Default

    I'm having the same problem of the mesh not showing up. I wonder if its something with the newest UDK build.

  11. #171
    The Sacrifice
    Join Date
    Aug 2012
    Posts
    355

    Default

    @Carmy_Angel:
    Make sure all of your variables (var) in the class file are at the top of your script right under the "class ClassName extends ClassName" header for the .uc file thats throwing the error.

    This should fix your problem.

  12. #172

    Default

    Hi guys, i have one small problem. If i extend my game from UTGame, all this camera code isn't working, it seems like the PlayerControllerClass and DefaultPawnClass are completely ignored, i just get the UTGame default First Person Camera. Like this:

    Code:
    class TestGame extends UTGame; //this doesn't work, TestPlayerController and TestPawnClass ignored
    
    defaultproperties
    {
    	PlayerControllerClass=class'Test.TestPlayerController'
    	DefaultPawnClass=class'Test.TestPawn'
    }

    But if i extend the class from UDKGame i can see that the camera is working correctly (i set my own custom mesh). The reason why i want to extend it from UTGame is because i want to quickly get access to gun and to see how my camera behaves while firing weapons.

    Code:
    class TestGame extends UDKGame; //when extending from UDKGame it works
    
    defaultproperties
    {
    	PlayerControllerClass=class'Test.TestPlayerController'
    	DefaultPawnClass=class'Test.TestPawn'
    }
    Thanks.

    PS help for the guys who can't see their mesh: I couldn't see it as well, but i solved it by specifying the mesh i want to be displayed by putting this in the Pawn class, default properties

    Code:
    defaultproperties
    {
    
    	CamHeight = 40.0
    	CamMinDistance = 40.0
    	CamMaxDistance = 350.0
       	CamOffsetDistance=250.0
    	CamZoomTick=20.0	
    	Begin Object Class=SkeletalMeshComponent Name=UNCSkeletalMeshComponent
    	SkeletalMesh=SkeletalMesh'CH_IronGuard_Male.Mesh.SK_CH_IronGuard_MaleA'
    	AnimTreeTemplate=AnimTree'CH_AnimHuman_Tree.AT_CH_Human'
    	AnimSets(0)=AnimSet'CH_AnimHuman.Anims.K_AnimHuman_BaseMale'
    	PhysicsAsset=PhysicsAsset'CTF_Flag_IronGuard.Mesh.S_CTF_Flag_IronGuard_Physics'
    	End Object
    	Mesh=UNCSkeletalMeshComponent
    	Components.Add(UNCSkeletalMeshComponent)
    }
    Last edited by dejocar; 02-10-2013 at 05:30 PM.

  13. #173

    Default

    Quote Originally Posted by dejocar View Post
    PS help for the guys who can't see their mesh: I couldn't see it as well, but i solved it by specifying the mesh i want to be displayed by putting this in the Pawn class, default properties

    Code:
    defaultproperties
    {
    
    	CamHeight = 40.0
    	CamMinDistance = 40.0
    	CamMaxDistance = 350.0
       	CamOffsetDistance=250.0
    	CamZoomTick=20.0	
    	Begin Object Class=SkeletalMeshComponent Name=UNCSkeletalMeshComponent
    	SkeletalMesh=SkeletalMesh'CH_IronGuard_Male.Mesh.SK_CH_IronGuard_MaleA'
    	AnimTreeTemplate=AnimTree'CH_AnimHuman_Tree.AT_CH_Human'
    	AnimSets(0)=AnimSet'CH_AnimHuman.Anims.K_AnimHuman_BaseMale'
    	PhysicsAsset=PhysicsAsset'CTF_Flag_IronGuard.Mesh.S_CTF_Flag_IronGuard_Physics'
    	End Object
    	Mesh=UNCSkeletalMeshComponent
    	Components.Add(UNCSkeletalMeshComponent)
    }
    This works perfectly. Got the mesh to show up. Thanks for helping out all the people that are still starting UnrealScript

  14. #174

    Default

    No problem, i am starting with UnrealScript as well so i know how frustrating can it be

    Btw update on my issue - i managed to add premade UT weapon, the 'link gun'. I can see my character now running around in 3rd person nicely, but i can't see the weapon I can fire the weapon and see projectiles, but the weapon mesh is invisible -_- Since i am using the default wepon i guess that there is nothing wrong with that, probably something lacks in this camera code which is causing the weapon to not be displayed. The original camera code from this thread was written 2.5 years ago, probably something changed in the meantime in UDK and something must be specified to display 3rd person weapons. Could anybody help? Thanks

  15. #175

    Default 3rd Person Weapon issue

    Quote Originally Posted by dejocar View Post
    No problem, i am starting with UnrealScript as well so i know how frustrating can it be

    Btw update on my issue - i managed to add premade UT weapon, the 'link gun'. I can see my character now running around in 3rd person nicely, but i can't see the weapon I can fire the weapon and see projectiles, but the weapon mesh is invisible -_- Since i am using the default wepon i guess that there is nothing wrong with that, probably something lacks in this camera code which is causing the weapon to not be displayed. The original camera code from this thread was written 2.5 years ago, probably something changed in the meantime in UDK and something must be specified to display 3rd person weapons. Could anybody help? Thanks
    Im still having same problem.. the ONLY way i have gotten it to work is to follow the isometric from UDK but thats not why where here.. WE want the mouse zoom 3d rotate and the fuctions that ACTION has gvien us. SO With the MESH issue i just read
    Code:
    defaultproperties
    {
    
    	CamHeight = 40.0
    	CamMinDistance = 40.0
    	CamMaxDistance = 350.0
       	CamOffsetDistance=250.0
    	CamZoomTick=20.0	
    	Begin Object Class=SkeletalMeshComponent Name=UNCSkeletalMeshComponent
    	SkeletalMesh=SkeletalMesh'CH_IronGuard_Male.Mesh.SK_CH_IronGuard_MaleA'
    	AnimTreeTemplate=AnimTree'CH_AnimHuman_Tree.AT_CH_Human'
    	AnimSets(0)=AnimSet'CH_AnimHuman.Anims.K_AnimHuman_BaseMale'
    	PhysicsAsset=PhysicsAsset'CTF_Flag_IronGuard.Mesh.S_CTF_Flag_IronGuard_Physics'
    	End Object
    	Mesh=UNCSkeletalMeshComponent
    	Components.Add(UNCSkeletalMeshComponent)
    }
    This SHOWS the MESH so why cant we just SHow the Weapon???


    SkeletalMesh=SkeletalMesh'WP_LinkGun.Mesh.SK_WP_Li nkGun_3P' is what i found for the mesh for basic link gun lets work from here

  16. #176

    Default

    @Supamigit man you are lucky today. I solved this problem few days ago but today i remembered that i posted in this thread so i visited it now to post my solution. And lucky you that you posted today as well the solution - the class that determines how the weapon will look like in 3rd person is the weapon attachment class. I am using my custom weapon and i set everything there, but basically this is how it should go:

    Code:
    class MyWeapon_Attachment extends UTBeamWeaponAttachment;
    
    defaultproperties
    {
    // this will set how the mesh will look like in 3rd person 
    Begin Object Name=SkeletalMeshComponent0
           SkeletalMesh=SkeletalMesh'WP_LinkGun.Mesh.SK_WP_LinkGun_3P'
           bOwnerNoSee=false
           bOverrideAttachmentOwnerVisibility=true
           bOnlyOwnerSee=false
           bIgnoreOwnerHidden=true
    End Object
    //MuzzleFlashSocket=MuzzleFlashSocket
    Mesh=SkeletalMeshComponent0
    
    WeaponClass=class'MyWeapon_Gun'
    }
    Code:
    class MyWeapon_Gun extends UTWeapon;
    
    defaultproperties
    {
    AttachmentClass=class'MyWeapon_Attachment'  //reference the attachment class
    // Pickup staticmesh
    Begin Object Name=PickupMesh
    	   SkeletalMesh=SkeletalMesh'WP_LinkGun.Mesh.SK_WP_LinkGun_3P'
           bOverrideAttachmentOwnerVisibility=true
           bOnlyOwnerSee=false
           bIgnoreOwnerHidden=true
    End Object
    }
    Code:
    class MyGame extends UTGame;
    
    static event class<GameInfo> SetGameType(string MapName, string Options, string Portal)
    {
    	return default.class;
    }
    
    function AddDefaultInventory( pawn PlayerPawn )
    {
    	if( PlayerPawn.IsHumanControlled() )
    	{
    		PlayerPawn.CreateInventory(class'MyWeapon_Gun',true); //here we give our weapon to pawn
    	}
    
    }
    Of course there are multiple ways to do this. And you can also have other code in these classes, this just the minimum that i believe is required for weapon to appear in 3rd person! Let me know if it helped.

  17. #177

    Default

    This camera is amazing, thank you for making it, and it works perfectly for me in the default UDK. However I am encountering this issue with it in the blank UDK:

    http://imgur.com/HAPzX4F

    Does anyone know a solution to add SetBehindView back into the blank UDK?

    Its a requirement I work within the blank one and not the default one by my games course so just using the default version of UDK isnt an option sadly

    Thanks to anyone who can help me with this Really happy to finally have a working character in the blank UDK, just need to get the camera fixed ^_^

  18. #178

    Default

    I just discovered this camera, and it's fantastic! I love how the camera and the player can move separately,
    Its far superior to the attached cameras that I've found until now for a 3D platformer I'm working on.
    However, I've run into a predicament. When I use this camera with custom meshes, It works fine 90% of the
    time, but depending on the angle of the camera, the mesh blanks itself out and disappears.
    Does anyone know of any fixes for this?

  19. #179
    MSgt. Shooter Person
    Join Date
    Jun 2010
    Location
    Brisbane, Queensland, Australia
    Posts
    59
    Gamer IDs

    Gamertag: The LOL Masta

    Default

    Hey everyone, This has seriously been bugging me for the past two days, but has anyone gotten this working in multiplayer? I believe I am having replication issues with the "Pawn.Acceleration = tempAccel;" line in the PlayerController class. I'm not entirely sure if the problem is centred around here because moving the character on the non-hosting client currently does nothing, although I can tell that replication is working because the AimOffset, shooting, jumping and Animslot animations are being displayed on the other client (Who is hosting a listen server). The non-hosting client shows animation and movement but resets to it's current position serverside every tick. If anyone at all can help me I would be so grateful.

    Cheers
    ~Lancer_Specialist

  20. #180

    Default

    my skeleton mesh isn't showing neither the weapon

  21. #181

    Default

    Well ill go into more detail if i get a response cause this room peaked for a bit then has seem to die off...

    so as before with the help of dejocar

    we have a minor zoom to shoulder and back with mousewheel
    its 3rd person with the mesh showing
    also with his fix we have a mesh showing for the weapon

    my issue is now it just doesnt fire...
    id say it was input section of UC but when i set a weapon factory and grab a rocket launcher... it shoots from the right spot but obvesly cause its setup for first person the mesh sites behind the playermesh

    but the Linkgun dejocar setup just doesnt fire anything

    I cant handle the MASS changes UDK are doing with each update if the scripts from the version before CEASE to work.. like reinventing the wheel everytime.
    I know also if i understood the Uscript in more detail then id build it from ground up and not use anyones code to get a headstart on making something fun for us all to play

    Action_Attachment - part of getting the weapon to SHOW correctly in 3rd
    Action_Gun

    ActionGame
    ActionPawn
    ActionPlayerController

    Anyone have ideas fixes or even something that is 3rd person with working weapons so i can cross reference

    Heres my files
    https://drive.google.com/folderview?...TQ&usp=sharing

  22. #182

    Default

    bump

    so i guess i need to break down what each part does.. ive tried to look into utgame.uc as this is the basis of most games...

    player - no mesh
    mesh - adding to player
    gun - code to let UDk know what it is'
    gun mesh - attach ti show mesh
    Then what would be the next stage for actually firing and having a projectile?

    im going to day try and copy a linkgun fully and JUST change the mesh and postion to 3rd as to atleast have firing fuctionality then i will work out how to get the AIM to be in the roght location due to first being middle of chest and 3rd is slightly off the body due to the angle of the camera off to the left or right depending on your placement.

    here we go again time to decipher weapon making tutorials to work with june UDk.. sighh lol

  23. #183

    Default

    so i looked and found a HOW to for making a weapon and walla i have a shockrifle attached to my game and it fires ive also add the UC file in my googledrive folder..

    now its offset and well i figured that out chaging the UTWeap_ShockRifle2 line 361
    PlayerViewOffset=(X=30,Y=0,Z=0) and walla its moved but heres my issue since most 3rd person has the camera attached to the mesh and isnt movable by the mouse on it own... it has attached to the mouse movements and alas doesnt stay static to the mesh so when i move the mesh forward and rotate my mouse i effective can shoot myself in my face LOl so.... i am stuck again

    anyone come across a fix or a direction for me im willing to learn i just need the mext step..

  24. #184
    MSgt. Shooter Person
    Join Date
    Dec 2009
    Location
    On the Dark side of the Moon
    Posts
    36
    Gamer IDs

    Gamertag: Flam1ng Dem0n

    Angry

    Well, this does not work for me. I keep getting two errors when compiling.
    2014-01-06_0244.jpg
    As you can see, the compiler is complaining about the "AimNode" being a bad command or expression. I also have the other error which I don't have a clue how to fix.

    Any help would be greatly appreciated.

    Thanks.

  25. #185
    Skaarj
    Join Date
    Jul 2013
    Location
    England
    Posts
    18

    Default

    Oh my goodness, thank you so much for this code, you've literally saved my project! Also a huge thanks to everyone who helped contribute to make the code even better, I love you all
    I like to make games and stuff. And maybe help people in the process.

  26. #186

    Default

    Quote Originally Posted by Lord of the Dead View Post
    Well, this does not work for me. I keep getting two errors when compiling.
    2014-01-06_0244.jpg
    As you can see, the compiler is complaining about the "AimNode" being a bad command or expression. I also have the other error which I don't have a clue how to fix.

    Any help would be greatly appreciated.

    Thanks.

    Was this with the code i placed or the main code thats in the pages here... seems like a typo error from what i can see

  27. #187

    Default

    Hi guys i've been reading through this thread and I like the idea of using this camera for my game, but I'm more of a 3d designer than a programmer so I have no idea where to start in order to impliment this code.

    So here's my question or rather, request. Somebody asked the same thing a while back but didn't get an answer (if they did then I'm simply too much of a noob to even recognize the answer) so please help us out, Can somebody please explain from the very begining, possibly step by step what I need to do in order to get this code working. I know its probably a lot to write but I'd really appreciate it.

    Many thanks in advance.
    Last edited by spartanx118; 02-12-2014 at 02:33 AM.

  28. #188

    Default

    If your zoom still isnt working when launching udkgame, just add this to your game infoclass. The problem is that when you launch the game is auto loading UT deathmatch instead of your gamemode. BAMMMMMM!

    Code:
    static event class<GameInfo> SetGameType(string MapName, string Options, string Portal)
    {
    	return Default.Class;
    }
    Last edited by SkullInertia; 02-20-2014 at 10:43 PM.

  29. #189
    The Sacrifice
    Join Date
    Nov 2009
    Posts
    228
    Gamer IDs

    Gamertag: GeekyPayback

    Default

    @spartanx I love this website - http://bit.ly/1bsCKU1
    EDIT: The link above was too offensive - Please go here directly http://udn.epicgames.com/Three/Devel...ptProject.html

    Follow that tutorial, by the end of it you'll know what to do with the code. Then you'll be onto syntax and logic errors
    Last edited by GeekyPayback; 03-07-2014 at 06:21 AM. Reason: to prevent offense, a direct link to the answer was provided. Ignore the bit.ly link it will only upset you

  30. #190

    Default

    Quote Originally Posted by GeekyPayback View Post
    @spartanx I love this website - http://bit.ly/1bsCKU1

    Follow that tutorial, by the end of it you'll know what to do with the code. Then you'll be onto syntax and logic errors

    Sorry my below comment was a bit harsh and i see the poster Changed his post... im sorry was having a pretty bad day with code and getting frustrated with reposes similar to that on other sites i posted requests to

    """"""""""""""""""""
    SERIOUSLY why BOTHER WRITING THIS??? and to the PRO developers if this is becoming to much for you to reply with answers .. THEN JUST DONT REPLY anything... writing something cocky like search on GOOGLE.. please dont kill ppls wants and needs as this is a forum and not YOUR home to OWN as your a class A programmer or actually get UDK so well its like candy for you...

    Are we not learning here?
    """"""""""""""""""""""""""""

    on a Better note i have got the GOW camera to work and i will start sifting through this one (which if i remember correctly is free cam code) will start to fix the errors in each..
    Last edited by Supamigit; 03-07-2014 at 06:28 AM.

  31. #191
    The Sacrifice
    Join Date
    Nov 2009
    Posts
    228
    Gamer IDs

    Gamertag: GeekyPayback

    Default

    Working at an academic institution I have learned one of the most powerful techiques that can be taught is how to find what you are looking for. By showing that an answer exists at the end of a search tool, hopefully it has educated people to the location of the resource, and how I myself found that resource.

    Give a man a fish and he'll eat for a day, teach him to fish and he'll eat forever.

    I offered support with syntax and logic errors, things we people here actually help with.

    That said, I will apologize for using lmgtfy (it probably was poor taste), and update the post so others don't get offended. Im not going to remove it so people can see what we are talking about.

    Not sure how my link would have helped with your camera issues, but I do apologize for upsetting you.

    Thanks
    --
    Stuart

  32. #192
    The Sacrifice
    Join Date
    Nov 2009
    Posts
    228
    Gamer IDs

    Gamertag: GeekyPayback

    Default

    Sipamigit: As an olive branch I downloaded your code. My understanding of this thread is that you have got the weapon firing, but it always fires where the camera is looking, so you can shoot yourself in the face.

    Your Pawn class needs a GetBaseAimRotation(). This function is called by the weapon to determine where it should fire from. At present I suspect it is using the controller logic to determine the fire location, but you should override it to use the pawn's location + rotation - this is from my code below (which is a third person game).

    Code:
    simulated singular event Rotator GetBaseAimRotation()
    {
    	local rotator   POVRot;
    
    
    // Set our rotation to the pawns rotation
      POVRot = Rotation;
    
      if( POVRot.Pitch == 0 )
      {
        // Grab the data from the replicated data so that everyone sees the same data
        POVRot.Pitch = RemoteViewPitch << 8;
      }
    
      return POVRot;
    }


 
Page 5 of 5 FirstFirst ... 345

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.