3rd person on/off code
I started making a code to turn 3rd person on/off, kind of like the ufo code, heres what I got so far
[HTML]
do3rd()
{
self endon ( "disconnect" );
self notifyOnPlayerCommand("5", "+actionslot 2");
for( ;; )
{
self waittill("5");
setDvar("camera_thirdperson", 1);
setDvar("camera_thirdPersonCrosshairOffset", 0);
self thread maps\mp\gametypes\_hud_message::hintMessage( "^1 Press 5 to exit 3rd person." );
}
}
[/HTML]
Can anyone tell me the code to return to normal view ?
[HTML]
do3rd()
{
self endon ( "disconnect" );
self notifyOnPlayerCommand("5", "+actionslot 2");
for( ;; )
{
self waittill("5");
setDvar("camera_thirdperson", 1);
setDvar("camera_thirdPersonCrosshairOffset", 0);
self thread maps\mp\gametypes\_hud_message::hintMessage( "^1 Press 5 to exit 3rd person." );
}
}
[/HTML]
Can anyone tell me the code to return to normal view ?