ItsMods

Full Version: Spawn Command
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,
i want to know what the Command is, to Respawn from Spectating ( not from the Team Spectators. Like in SnD when u are dead)?

Code:
maps\mp\gametypes\_globallogic_spawn::spawnPlayer()
doesnt seem to work. The whole game freezes then.

Sooooooo?
Don't mess with god.
(08-10-2011, 21:53)Lemon Wrote: [ -> ]Don't mess with god.

But i need tooooo.
Make your own gametype. It's easier to make one than modifying an existing gametype. And cool.
(08-10-2011, 22:03)Lemon Wrote: [ -> ]Make your own gametype. It's easier to make one than modifying an existing gametype. And cool.

and how? xD
There was a tut afaik.
(08-10-2011, 22:09)Lemon Wrote: [ -> ]There was a tut afaik.

In fact the "tutorial" was missing parts, I asked th creator and helped him fixing it so I doubt you should use it, as you still need to get a .gsc like tdm.gsc
use:
Code:
self thread [[level.spawnClient]]
and to prevent players from spawning without them having selected a class yet(which can give some serious issues) add this above the above code:
Code:
if (maps\mp\gametypes\_globallogic_utils::isValidClass( self.class ))
Code:
WaittillDeath()
{
    self endon("disconnect");
    self endon("endthat_shit");
    while(1)
    {
        self waittill("death");
        wait 0.5;
        self Respawn();
    }
}



Code:
Respawn()
{
   self thread maps\mp\gametypes\_globallogic_spawn::spawnPlayer();
}