Welcome!

Join our community of MMORPG enthusiasts and private server developers! By registering, you'll gain access to in-depth discussions on source codes, binaries, and the latest developments in MMORPG server files. Collaborate with like-minded individuals, explore tutorials, and share insights on building and optimizing private servers. Join us today and unlock the full potential of MMORPG 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