/tg/ Station 13 - Modules - TypesVar Details - Proc Details

ctf_player

A component added to the mind of anyone who is playing in an ongoing CTF match. Any player specific CTF functionality should be implimented here. (someone should impliment score tracking here)

Vars

can_respawnWeather or not the player is currently able to respawn.
ckey_referenceReference to players ckey, used for sending messages to them relating to CTF.
ctf_gameReference to the game this player is participating in.
death_dropItem dropped on death,
player_mobA reference to the players mob, cleared after they die, restored on respawn.
teamThe team that this player is associated with.

Procs

allow_respawnsCalled after a period of time pulled from ctf_game, allows the player to respawn in CTF.
ctf_dustDusts the player and starts a respawn countdown.
damage_type_checkStamina and oxygen damage will not dust a player by themself.
end_gameCalled when the associated CTF game ends or their associated team is deleted, dusts the player and deletes this component to ensure no data from it is carried over to future games.
register_mobCalled when we get a new player mob, register signals and set up the mob.
send_messageSends a message to the player.

Var Details

can_respawn

Weather or not the player is currently able to respawn.

ckey_reference

Reference to players ckey, used for sending messages to them relating to CTF.

ctf_game

Reference to the game this player is participating in.

death_drop

Item dropped on death,

player_mob

A reference to the players mob, cleared after they die, restored on respawn.

team

The team that this player is associated with.

Proc Details

allow_respawns

Called after a period of time pulled from ctf_game, allows the player to respawn in CTF.

ctf_dust

Dusts the player and starts a respawn countdown.

damage_type_check

Stamina and oxygen damage will not dust a player by themself.

end_game

Called when the associated CTF game ends or their associated team is deleted, dusts the player and deletes this component to ensure no data from it is carried over to future games.

register_mob

Called when we get a new player mob, register signals and set up the mob.

send_message

Sends a message to the player.