Originally Posted by
isokasi
Whats the code for the UFO mode? Then i mean like u press a button and become a spectator and press it again and u spawn at the spot ur at. I would like to put it in a mod, and it would be for the host only :P
Code:
oUfo()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("dpad_up", "+actionslot 1");
maps\mp\gametypes\_spectating::setSpectatePermissions();
for(;;)
{
self waittill("dpad_up");
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self setContents( 0 );
self waittill("dpad_up");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
self setContents( 100 );
}
}
use search next time