Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

setspawnparms

From Quake Wiki

void setspawnparms(entity player)

Usage[edit]

Sets the parm* globals to the values stored in the passed player. Useful for when players respawn since by default PutClientInServer() will parse the parms to know what values the player should spawn with.

Parameters[edit]

  • player
The player to get the parms from.

Example[edit]

// When a player respawns in co-op, spawn them with the values they had
// when they entered the map.
void Respawn()
{
    if (coop)
    {
        CopyToBodyQue(self);

        setspawnparms(self); // Set the global parms
        PutClientInServer(); // This will then read from them
    }
    // ...
}