|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
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. | |
| entity | join_minigame (entity player, string game_id) |
| Join an existing minigame session. | |
| 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. | |
Variables | |
| entity | active_minigame |
| For players: Minigame being played. | |
| bool | autocvar_sv_minigames |
| bool | autocvar_sv_minigames_observer |
| string | MINIGAME_COMMON_CMD [MINIGAME_COMMON_CMD_COUNT] |
| entity | minigame_players |
| For minigame sessions: list of players For minigame_player: client entity. | |
| entity | minigame_sessions |
| #define REGISTER_MINIGAME | ( | name, | |
| nicename ) |
Definition at line 70 of file sv_minigames.qh.
| anonymous enum |
Definition at line 3 of file sv_minigames.qh.
Definition at line 310 of file sv_minigames.qc.
References active_minigame, argv(), argv_end_index, autocvar_g_playban_list, autocvar_g_playban_minigames, autocvar_sv_minigames, CMD_REQUEST_COMMAND, CS(), entity(), error, FOREACH, GetIndexedEntity(), invite_minigame(), join_minigame(), MINIGAME_CMD, minigame_find_player(), minigame_sessions, NULL, part_minigame(), PlayerInList(), Send_Notification(), sprint(), start_minigame(), strcat(), substring(), and tokenize_console.
Referenced by CLIENT_COMMAND().
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, autocvar_g_playban_list, autocvar_g_playban_minigames, CS(), entity(), etof, ftos(), GameLogEcho(), PlayerInList(), Send_Notification(), 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 285 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, MSG_ENTITY, msle_id(), netname, owner, team, WriteByte(), WriteHeader, WriteLong(), WriteShort(), and WriteString().
Referenced by minigame_addplayer(), msle_spawn(), and start_minigame().
Definition at line 296 of file sv_minigames.qc.
References active_minigame, CS(), entity(), imp, 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 BanCommand_playban(), 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, Net_LinkEntity(), NULL, strcat(), and strzone().
Referenced by ClientCommand_minigame().
| entity active_minigame |
For players: Minigame being played.
Definition at line 55 of file sv_minigames.qh.
| bool autocvar_sv_minigames |
Definition at line 17 of file sv_minigames.qh.
Referenced by ClientCommand_minigame(), join_minigame(), and start_minigame().
| bool autocvar_sv_minigames_observer |
Definition at line 18 of file sv_minigames.qh.
Referenced by minigame_addplayer().
| string MINIGAME_COMMON_CMD[MINIGAME_COMMON_CMD_COUNT] |
Definition at line 14 of file sv_minigames.qh.
Referenced by SV_ParseClientCommand().
| entity minigame_players |
For minigame sessions: list of players For minigame_player: client entity.
Definition at line 59 of file sv_minigames.qh.
Referenced by minigame_SendEntity().
| entity minigame_sessions |
Definition at line 61 of file sv_minigames.qh.
Referenced by ClientCommand_minigame(), end_minigame(), end_minigames(), join_minigame(), and start_minigame().