[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_CameraLeftSideSource, g_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_CameraLeftSideSource, g_CameraLeftSideTarget);
g_CameraLeftSideLerp = 0.0f;
}
//}
ready be happy =)
Do not forget to thank me =)
Credits: Staff DeathZ
Re: [Tutorial] changing the position of the camera by pressing ALT
Thanks)) Yury)) The Best))
Re: [Tutorial] changing the position of the camera by pressing ALT
Quote:
Originally Posted by
Poster13
Thanks)) Yury)) The Best))
thanks =)
Re: [Tutorial] changing the position of the camera by pressing ALT
will commenting this disable changing camera permanently?
Re: [Tutorial] changing the position of the camera by pressing ALT
Quote:
Originally Posted by
Kratos147
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_CameraLeftSideSource, g_CameraLeftSideTarget);
g_CameraLeftSideLerp = 0.0f;
}
Re: [Tutorial] changing the position of the camera by pressing ALT
Quote:
Originally Posted by
Yuri BR
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..
Re: [Tutorial] changing the position of the camera by pressing ALT
Quote:
Originally Posted by
Kratos147
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
Re: [Tutorial] changing the position of the camera by pressing ALT
Quote:
Originally Posted by
Yuri BR
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.
Re: [Tutorial] changing the position of the camera by pressing ALT
He is master :thumbup: thanks man
Re: [Tutorial] changing the position of the camera by pressing ALT
Re: [Tutorial] changing the position of the camera by pressing ALT
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
Re: [Tutorial] changing the position of the camera by pressing ALT
Quote:
Originally Posted by
Oosmar02
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
Re: [Tutorial] changing the position of the camera by pressing ALT
Quote:
Originally Posted by
Yuri BR
this tutorial will change both the studio and the client
I happen tutorial but its works just mod studio :/
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: