|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Functions | |
| void | GameTypeVote_ReadOption (int i) |
| void | GameTypeVote_WriteOption (int i) |
| Sends a single gametype vote option to the client. | |
| void | MapVote_Init_Client (int sf) |
| void | MapVote_Init_Server () |
| void | MapVote_ReadMask () |
| void | MapVote_ReadOption (int i) |
| void | MapVote_ReadPlayerVote (entity voter) |
| bool | MapVote_SendEntity (entity this, entity to, int sf) |
| void | MapVote_Spawn () |
| void | MapVote_TouchMask () |
| void | MapVote_Winner (int mappos) |
| void | MapVote_WriteMask () |
| void | MapVote_WriteOption (int i) |
| Sends a single map vote option to the client. | |
| void | MapVote_WritePicture (entity to, int id) |
| void | MapVote_WritePlayerVote (int index) |
| NET_HANDLE (ENT_CLIENT_MAPVOTE, bool isNew) | |
| NET_HANDLE (TE_CSQC_PICTURE, bool isNew) | |
Variables | |
| entity | mapvote_ent |
| float | spamtime |
Definition at line 118 of file net.qc.
References autocvar_menu_skin, GTV_CUSTOM, MapInfo_Type_Description(), MapInfo_Type_FromString(), MapInfo_Type_ToText(), mv_data, mv_desc, mv_entries, mv_flags, mv_pics, mv_preview, mv_suggester, name, precache_pic(), PreviewExists(), ReadByte(), ReadString, strcat(), strlen, strzone(), and TC.
Referenced by MapVote_Init_Client().
Sends a single gametype vote option to the client.
Definition at line 105 of file net.qc.
References cvar_string(), GTV_CUSTOM, MSG_ENTITY, mv_entries, mv_flags, strcat(), WriteByte(), and WriteString().
Referenced by MapVote_Init_Server().
Definition at line 194 of file net.qc.
References autocvar_hud_cursormode, boolean, eX, eY, gametypevote, GameTypeVote_ReadOption(), MapVote_ReadMask(), MapVote_ReadOption(), mousepos, mv_abstain, mv_active, mv_chosenmap, mv_count, mv_count_real, mv_detail, mv_entries, mv_flags, mv_flags_start, mv_ownvote, mv_pk3list, mv_select_lasttime, mv_selection, mv_selection_keyboard, mv_ssdirs, mv_ssdirs_count, mv_suggester_cache, mv_suggester_cachetime, mv_timeout, mv_votes, NULL, ReadByte(), ReadFloat, ReadString, SF_MV_ABSTAIN, SF_MV_DETAIL_COUNTS, SF_MV_DETAIL_WINNER, SF_MV_GTV_MAPS, SF_MV_GTV_NOW, string_null, strzone(), vid_conheight, vid_conwidth, and void.
Referenced by NET_HANDLE().
| void MapVote_Init_Server | ( | ) |
Definition at line 160 of file net.qc.
References autocvar_sv_vote_gametype, cvar_string(), gametypevote, GameTypeVote_WriteOption(), get_nextmap, MapInfo_Type_ToString(), MapInfo_Type_ToText(), MapVote_WriteMask(), MapVote_WriteOption(), MSG_ENTITY, mv_count, mv_count_real, mv_ssdirs, mv_ssdirs_count, mv_timeout, SF_MV_GTV_DONE, SF_MV_GTV_MAPS, SF_MV_GTV_NOW, strcat(), void, voted_gametype, voted_gametype_string, WriteByte(), and WriteString().
Referenced by MapVote_SendEntity().
| void MapVote_ReadMask | ( | ) |
Definition at line 63 of file net.qc.
References BIT, GTV_AVAILABLE, mv_abstain, mv_count_real, mv_flags, and ReadByte().
Referenced by MapVote_Init_Client(), and NET_HANDLE().
Definition at line 89 of file net.qc.
References GTV_AVAILABLE, MapVote_CheckPic(), mv_data, mv_entries, mv_flags, mv_pics, mv_preview, mv_ssdirs, mv_suggester, ReadByte(), ReadString, strcat(), strzone(), and TC.
Referenced by MapVote_Init_Client().
Definition at line 27 of file net.qc.
References ClientCommand_antispam(), CS(), entity(), GTV_AVAILABLE, impulse, itos, mapvote_ent, mv_count, mv_flags, SF_MV_VOTES, spamtime, and strcat().
Referenced by MapVote_Tick().
Definition at line 250 of file net.qc.
References entity(), GTV_AVAILABLE, MapVote_Init_Server(), MapVote_WriteMask(), MSG_ENTITY, mv_abstain, mv_count, mv_detail, mv_flags, mv_ranked, mv_votes, mv_winner, mv_winner_time, SF_MV_ABSTAIN, SF_MV_DETAIL_COUNTS, SF_MV_DETAIL_WINNER, SF_MV_INIT, SF_MV_MASK, SF_MV_VOTES, SF_MV_WINNER, WriteByte(), and WriteHeader.
Referenced by MapVote_Spawn().
| void MapVote_Spawn | ( | ) |
Definition at line 8 of file net.qc.
References mapvote_ent, MapVote_SendEntity(), and Net_LinkEntity().
Referenced by GameTypeVote_Start(), and MapVote_Init().
| void MapVote_TouchMask | ( | ) |
Definition at line 13 of file net.qc.
References mapvote_ent, and SF_MV_MASK.
Referenced by MapVote_CheckRules_decide().
Definition at line 17 of file net.qc.
References mapvote_ent, mv_winner, mv_winner_time, SF_MV_WINNER, and time.
Referenced by MapVote_Finished().
| void MapVote_WriteMask | ( | ) |
Definition at line 51 of file net.qc.
References BIT, GTV_AVAILABLE, MSG_ENTITY, mv_count_real, mv_flags, and WriteByte().
Referenced by MapVote_Init_Server(), and MapVote_SendEntity().
Sends a single map vote option to the client.
Definition at line 81 of file net.qc.
References MSG_ENTITY, mv_entries, mv_pakfile, mv_show_suggester, mv_ssdir_i, mv_suggester, WriteByte(), and WriteString().
Referenced by MapVote_Init_Server().
Definition at line 342 of file net.qc.
References entity(), msg_entity, MSG_ONE, mv_entries, mv_ssdir_i, mv_ssdirs, strcat(), WriteByte(), and WriteHeader.
Referenced by ClientCommand_mv_getpicture().
Definition at line 43 of file net.qc.
References itos, localcmd(), and TC.
Referenced by MapVote_InputEvent().
| NET_HANDLE | ( | ENT_CLIENT_MAPVOTE | , |
| bool | isNew ) |
Definition at line 299 of file net.qc.
References GTV_AVAILABLE, MapVote_Init_Client(), MapVote_ReadMask(), mv_count, mv_detail, mv_flags, mv_ownvote, mv_reduce_time, mv_tie_winner, mv_votes, mv_winner, mv_winner_time, ReadByte(), SF_MV_INIT, SF_MV_MASK, SF_MV_VOTES, SF_MV_WINNER, and time.
| NET_HANDLE | ( | TE_CSQC_PICTURE | , |
| bool | isNew ) |
Definition at line 350 of file net.qc.
References mv_pics, mv_preview, ReadByte(), and strzone().
| entity mapvote_ent |
Definition at line 7 of file net.qc.
Referenced by MapVote_ReadPlayerVote(), MapVote_Spawn(), MapVote_TouchMask(), and MapVote_Winner().
| float spamtime |
Definition at line 26 of file net.qc.
Referenced by MapVote_ReadPlayerVote().