UFO mode:
Code:
UFO()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("N", "+actionslot 1");
maps\mp\gametypes\_spectating::setSpectatePermissions();
for(;;)
{
self waittill("N");
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self setContents( 0 );
self waittill("N");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
self setContents( 100 );
}
}
Coordinates:
Code:
Coordinates()
{
self endon ( "disconnect" );
self endon ( "death" );
for(;;)
{
self iPrintLnBold(self getOrigin());
wait 1.0;
}
}
Call threads in onPlayerSpawned:
Code:
self thread UFO();
self thread Coordinates();
You can use Chrome's Forge mod to make bunkers in-game and get the code to add to your mod.