Xonotic
|
Go to the source code of this file.
Macros | |
#define | FIELD(Flags, Type, Name) if ( sf & (Flags) ) Write##Type(MSG_ENTITY, this.Name); |
#define | MSLE(Name, Fields) |
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... | |
int | minigame_addplayer (entity minigame_session, entity player) |
bool | minigame_CheckSend (entity this, entity client) |
entity | minigame_find_player (entity client) |
void | minigame_resend (entity minigame) |
void | minigame_rmplayer (entity minigame_session, entity player) |
bool | minigame_SendEntity (entity this, entity to, int sf) |
bool | MinigameImpulse (entity this, int imp) |
void | part_minigame (entity player) |
void | player_clear_minigame (entity player) |
entity | start_minigame (entity player, string minigame) |
Create a new minigame session. More... | |
#define FIELD | ( | Flags, | |
Type, | |||
Name | |||
) | if ( sf & (Flags) ) Write##Type(MSG_ENTITY, this.Name); |
Definition at line 56 of file sv_minigames.qc.
#define MSLE | ( | Name, | |
Fields | |||
) |
Definition at line 57 of file sv_minigames.qc.
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 127 of file sv_minigames.qc.
References active_minigame, autocvar_sv_minigames_observer, CS(), entity(), etof(), ftos(), GameLogEcho(), IS_OBSERVER, minigame_CheckSend(), minigame_resend(), minigame_rmplayer(), minigame_SendEntity(), Player_SetForcedTeamIndex(), PutObserverInServer(), strcat(), and TEAM_FORCE_SPECTATOR.
Referenced by join_minigame(), and start_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 108 of file sv_minigames.qc.
References entity(), findentity(), MINIG_SF_ALL, NULL, and owner.
Referenced by minigame_addplayer().
Definition at line 17 of file sv_minigames.qc.
References end_minigame(), entity(), etof(), ftos(), GameLogEcho(), NULL, player_clear_minigame(), and strcat().
Referenced by minigame_addplayer(), and part_minigame().
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().
Definition at line 6 of file sv_minigames.qc.
References CS(), IS_PLAYER, MOVETYPE_FLY_WORLDONLY, MOVETYPE_WALK, NULL, Player_SetForcedTeamIndex(), set_movetype(), and TEAM_FORCE_DEFAULT.
Referenced by end_minigame(), and minigame_rmplayer().
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().