Xonotic
|
Go to the source code of this file.
Macros | |
#define | REGISTER_MINIGAME(name, nicename) |
Functions | |
void | ClientCommand_minigame (entity caller, int request, int argc, string command) |
void | end_minigame (entity minigame_session) |
void | end_minigames () |
string | invite_minigame (entity inviter, entity player) |
Invite a player to join in a minigame. More... | |
entity | join_minigame (entity player, string game_id) |
Join an existing minigame session. More... | |
bool | minigame_CheckSend (entity this, entity client) |
entity | minigame_find_player (entity client) |
bool | minigame_SendEntity (entity this, entity to, int sf) |
bool | MinigameImpulse (entity this, int imp) |
void | part_minigame (entity player) |
entity | start_minigame (entity player, string minigame) |
Create a new minigame session. More... | |
Variables | |
entity | active_minigame |
For players: Minigame being played. More... | |
bool | autocvar_sv_minigames |
bool | autocvar_sv_minigames_observer |
entity | minigame_players |
For minigame sessions: list of players For minigame_player: client entity. More... | |
entity | minigame_sessions |
#define REGISTER_MINIGAME | ( | name, | |
nicename | |||
) |
Definition at line 56 of file sv_minigames.qh.
Definition at line 307 of file sv_minigames.qc.
References active_minigame, argv(), argv_end_index, autocvar_sv_minigames, CMD_REQUEST_COMMAND, CS(), entity(), error(), FOREACH, GetIndexedEntity(), invite_minigame(), join_minigame(), minigame_find_player(), minigame_sessions, NULL, part_minigame(), sprint(), start_minigame(), strcat(), substring(), and tokenize_console.
Definition at line 224 of file sv_minigames.qc.
References entity(), etof(), findentity(), ftos(), GameLogEcho(), LOG_TRACE, minigame_sessions, NULL, owner, player_clear_minigame(), strcat(), and strfree.
Referenced by end_minigames(), minigame_rmplayer(), and start_minigame().
void end_minigames | ( | ) |
Definition at line 255 of file sv_minigames.qc.
References end_minigame(), and minigame_sessions.
Invite a player to join in a minigame.
Definition at line 263 of file sv_minigames.qc.
References active_minigame, CS(), etof(), ftos(), GameLogEcho(), strcat(), and VerifyClientEntity().
Referenced by ClientCommand_minigame().
Join an existing minigame session.
Definition at line 200 of file sv_minigames.qc.
References autocvar_sv_minigames, entity(), IS_REAL_CLIENT, minigame_addplayer(), minigame_sessions, and NULL.
Referenced by ClientCommand_minigame().
Definition at line 118 of file sv_minigames.qc.
References entity(), NULL, and owner.
Referenced by minigame_addplayer(), and msle_spawn().
Definition at line 283 of file sv_minigames.qc.
References active_minigame, CS(), entity(), and NULL.
Referenced by ClientCommand_minigame(), and MinigameImpulse().
Definition at line 64 of file sv_minigames.qc.
References classname, descriptor, entity(), etof(), MINIG_SF_CREATE, MINIG_SF_UPDATE, minigame_flags, minigame_players, MINIGAME_SIMPLELINKED_ENTITIES, msle_id(), netname, owner, team, WriteByte(), WriteLong(), WriteShort(), and WriteString().
Referenced by minigame_addplayer(), msle_spawn(), and start_minigame().
Definition at line 294 of file sv_minigames.qc.
References active_minigame, CS(), entity(), and minigame_find_player().
Referenced by ImpulseCommands(), and ObserverOrSpectatorThink().
Definition at line 216 of file sv_minigames.qc.
References CS(), entity(), and minigame_rmplayer().
Referenced by ClientCommand_minigame(), and ClientDisconnect().
Create a new minigame session.
Definition at line 164 of file sv_minigames.qc.
References autocvar_sv_minigames, end_minigame(), entity(), etof(), ftos(), GameLogEcho(), IS_REAL_CLIENT, LOG_TRACE, minigame_addplayer(), minigame_get_descriptor(), minigame_SendEntity(), minigame_sessions, NULL, strcat(), and strzone().
Referenced by ClientCommand_minigame().
entity active_minigame |
For players: Minigame being played.
Definition at line 41 of file sv_minigames.qh.
bool autocvar_sv_minigames |
Definition at line 3 of file sv_minigames.qh.
Referenced by ClientCommand_minigame(), join_minigame(), and start_minigame().
bool autocvar_sv_minigames_observer |
Definition at line 4 of file sv_minigames.qh.
Referenced by minigame_addplayer().
entity minigame_players |
For minigame sessions: list of players For minigame_player: client entity.
Definition at line 45 of file sv_minigames.qh.
Referenced by minigame_SendEntity().
entity minigame_sessions |
Definition at line 47 of file sv_minigames.qh.
Referenced by ClientCommand_minigame(), end_minigame(), end_minigames(), join_minigame(), and start_minigame().