Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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

Newbie Spellweaver
Joined
Sep 17, 2013
Messages
51
Reaction score
10
This is a tutorial made to Warz, more than for use in War Inc.

Original post: [url]http://forum.ragezone.com/f791/tutorial-changing-position-camera-pressing-956651/[/URL]

in WarZ.sln

HUD_TPSGame.cpp

Search for:

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

change to:

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


Credits: Staff DeathZ
Credits: @
Yuri-BR
 
Back
Top