[Tutorial] changing the position of the camera by pressing ALT

Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    thumbs up [Tutorial] changing the position of the camera by pressing ALT

    in WarZ.sln

    HUD_TPSGame.cpp

    Search for:

    PHP Code:
    if(pl->m_isFinishedAiming && !pl->m_isInScope)
        {
            if(
    Keyboard->WasPressed(kbsLeftShift))
            {
                
    R3D_SWAP(g_CameraLeftSideSourceg_CameraLeftSideTarget);
                
    g_CameraLeftSideLerp 0.0f;
            }
        } 

    change to:


    PHP Code:
    //if(pl->m_isFinishedAiming && !pl->m_isInScope)
        //{
            
    if(Keyboard->WasPressed(kbsLeftAlt)) //Here you put the key you want
            
    {
                
    R3D_SWAP(g_CameraLeftSideSourceg_CameraLeftSideTarget);
                
    g_CameraLeftSideLerp 0.0f;
            }
        
    //} 

    ready be happy =)


    Do not forget to thank me =)

    Credits: Staff DeathZ
    Last edited by Yuri-BR; 06-09-13 at 11:09 PM.


  2. #2
    Account Upgraded | Title Enabled! Poster13 is offline
    MemberRank
    Jun 2013 Join Date
    395Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    Thanks)) Yury)) The Best))

  3. #3
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    Quote Originally Posted by Poster13 View Post
    Thanks)) Yury)) The Best))
    thanks =)

  4. #4
    Holy mother jesus tractor Kratos147 is offline
    MemberRank
    Jan 2011 Join Date
    CroatiaLocation
    470Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    will commenting this disable changing camera permanently?

  5. #5
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    Quote Originally Posted by Kratos147 View Post
    will commenting this disable changing camera permanently?
    I commented, you do not need to aim and press alt, so now only need to press alt =)

    replace everything for this

    PHP Code:
    if(Keyboard->WasPressed(kbsLeftAlt)) //Here you put the key you want
            
    {
                
    R3D_SWAP(g_CameraLeftSideSourceg_CameraLeftSideTarget);
                
    g_CameraLeftSideLerp 0.0f;
            } 

  6. #6
    Holy mother jesus tractor Kratos147 is offline
    MemberRank
    Jan 2011 Join Date
    CroatiaLocation
    470Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    Quote Originally Posted by Yuri BR View Post
    I commented, you do not need to aim and press alt, so now only need to press alt =)
    let me rephrase.
    I don't want to have change camera side as an option in game what so ever. Will commenting out THE WHOLE if statement disable this and keep player to the right side of the character forever?

    edit:

    mind giving me your skype Yuri? I'd like to chat with you about this and that..

  7. #7
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    Quote Originally Posted by Kratos147 View Post
    let me rephrase.
    I don't want to have change camera side as an option in game what so ever. Will commenting out THE WHOLE if statement disable this and keep player to the right side of the character forever?

    edit:

    mind giving me your skype Yuri? I'd like to chat with you about this and that..
    if you comment out the entire function you there , then he will no longer have the option to change the position of the camera

  8. #8
    Holy mother jesus tractor Kratos147 is offline
    MemberRank
    Jan 2011 Join Date
    CroatiaLocation
    470Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    Quote Originally Posted by Yuri BR View Post
    if you comment out the entire function you there , then he will no longer have the option to change the position of the camera
    That's the answer i've been looking for.

  9. #9
    Apprentice WhyStoN is offline
    MemberRank
    Jun 2013 Join Date
    7Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    He is master thanks man

  10. #10
    Member animehdth is offline
    MemberRank
    Apr 2013 Join Date
    ThailandLocation
    57Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    thanks ><!!!

  11. #11
    Novice marcoslack is offline
    MemberRank
    Aug 2013 Join Date
    BrazilLocation
    4Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    Thanks dude!

  12. #12
    Account Upgraded | Title Enabled! Oosmar02 is offline
    MemberRank
    Sep 2013 Join Date
    FranceLocation
    894Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    I've done all your tutorial but its works just mod studio (devserver) is posible to activate "ALT" for everyone (client game)
    sorry for my english

  13. #13
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    Quote Originally Posted by Oosmar02 View Post
    I've done all your tutorial but its works just mod studio (devserver) is posible to activate "ALT" for everyone (client game)
    sorry for my english
    this tutorial will change both the studio and the client

  14. #14
    Account Upgraded | Title Enabled! Oosmar02 is offline
    MemberRank
    Sep 2013 Join Date
    FranceLocation
    894Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    Quote Originally Posted by Yuri BR View Post
    this tutorial will change both the studio and the client
    I happen tutorial but its works just mod studio :/

  15. #15
    Apprentice Shadowof is offline
    MemberRank
    Jul 2013 Join Date
    ArgentinaLocation
    17Posts

    Re: [Tutorial] changing the position of the camera by pressing ALT

    I enter my game, and if i press Alt the camera dont change the possition. Help D:



Page 1 of 2 12 LastLast

Advertisement