|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "minigame/all.qh"Go to the source code of this file.
Functions | |
| int (entity, string,...) minigame_event | |
| For minigame sessions/descriptors: execute the given event Client events: mouse_moved(vector mouse_pos) return 1 to handle input, 0 to discard mouse_pressed/released(int K_Keycode) return 1 to handle input, 0 to discard note: see dpdefs/keycodes.qc for values key_pressed/released(int K_Keycode) return 1 to handle input, 0 to discard note: see dpdefs/keycodes.qc for values activate() executed when the minigame is activated for the current client deactivate() executed when the minigame is deactivated for the current client network_receive(entity received,int flags) executed each time a networked entity is received note: when this is called self == ...(0,entity) You can use the MINIG_SF_ constants to check the send flags IMPORTANT: always read in client everything you send from the server! | |
| int | minigame_count_players (entity minigame) |
| entity | minigame_get_descriptor (string id) |
| int | minigame_next_team (int curr_team, int n_teams) |
| int | minigame_prev_team (int curr_team, int n_teams) |
| string | minigame_relative_tile (string start_id, int dx, int dy, int rows, int columns) |
| void | minigame_server_sendflags (entity ent, int mgflags) |
| string | minigame_tile_buildname (int letter, int number) |
| int | minigame_tile_letter (string id) |
| string | minigame_tile_name (vector pos, int rows, int columns) |
| int | minigame_tile_number (string id) |
| vector | minigame_tile_pos (string id, int rows, int columns) |
| string | msle_classname (int id) |
| int | msle_id (string class_name) |
| entity | msle_spawn (entity minigame_session, entity e) |
Variables | |
| entity | descriptor |
| For minigame sessions: minigame descriptor object. | |
| entity | list_next |
| entity | list_prev |
| const int | MINIG_SF_ALL = 0xff |
| const int | MINIG_SF_CREATE = 0x01 |
| const int | MINIG_SF_CUSTOM = 0x10 |
| const int | MINIG_SF_MAX = 0x80 |
| const int | MINIG_SF_UPDATE = 0x02 |
| bool | minigame_autoclean |
| int | minigame_flags |
For minigame sessions/descriptors: execute the given event Client events: mouse_moved(vector mouse_pos) return 1 to handle input, 0 to discard mouse_pressed/released(int K_Keycode) return 1 to handle input, 0 to discard note: see dpdefs/keycodes.qc for values key_pressed/released(int K_Keycode) return 1 to handle input, 0 to discard note: see dpdefs/keycodes.qc for values activate() executed when the minigame is activated for the current client deactivate() executed when the minigame is deactivated for the current client network_receive(entity received,int flags) executed each time a networked entity is received note: when this is called self == ...(0,entity) You can use the MINIG_SF_ constants to check the send flags IMPORTANT: always read in client everything you send from the server!
menu_show(entity parent_menu_item) executed when the Current Game menu is shown, used to add custom entries Call HUD_MinigameMenu_CustomEntry to do so (pass ...(0,entity) as first argument) menu_click(string arg) executed when a custom menu entry is clicked Server events: start() executed when the minigame session is starting end() executed when the minigame session is shutting down join(entity player) executed when a player wants to join the session return the player team number to accept the new player, 0 to discard part(entity player) executed when a player is going to leave the session network_send(entity sent,int flags) executed each time a networked entity is sent note: when this is called self == ...(0,entity) You can use the MINIG_SF_ constants to check the send flags IMPORTANT: always read in client everything you send from the server! cmd(entity minigame_player, int argc, string command) self = client entity triggering this argv(n) = console token argc: number of console tokens command: full command string triggered when a player does "cmd minigame ..." with some unrecognized command return 1 if the minigame has handled the command impulse(entity minigame_player,int impulse) self = client entity triggering this triggered when a player does "impulse ..." return 1 if the minigame has handled the impulse
References entity().
Definition at line 121 of file minigames.qc.
References entity(), findentity(), NULL, and owner.
Referenced by bd_server_event(), c4_server_event(), pp_server_event(), ps_server_event(), and ttt_server_event().
Definition at line 5 of file minigames.qc.
References entity(), FOREACH, minigame_get_descriptor(), and NULL.
Referenced by HUD_MinigameBoard(), HUD_MinigameStatus(), minigame_get_descriptor(), NET_HANDLE(), and start_minigame().
Definition at line 65 of file minigames.qc.
Referenced by c4_move(), c4_server_event(), pp_move(), pp_server_event(), ttt_move(), and ttt_server_event().
Definition at line 71 of file minigames.qc.
Definition at line 40 of file minigames.qc.
References minigame_tile_buildname(), minigame_tile_letter(), minigame_tile_number(), and number.
Definition at line 78 of file minigames.qc.
References entity().
Referenced by bd_activate_editor(), bd_check_winner(), bd_close_editor(), bd_controller_update(), bd_do_next_match(), bd_editor_place(), bd_load_piece(), bd_move(), bd_move_dozer(), bd_reset_moves(), bd_restart_match(), c4_move(), pp_move(), pp_next_match(), pp_setup_pieces(), ps_move(), ps_move_piece(), ps_setup_pieces(), ttt_move(), and ttt_next_match().
Definition at line 34 of file minigames.qc.
References chr2str, ftos(), number, and strcat().
Referenced by bd_fill_recurse(), bd_move_dozer(), bd_save_controller_piece(), bd_unfill_recurse(), c4_get_lowest_tile(), c4_winning_piece(), minigame_relative_tile(), minigame_tile_name(), nmm_spawn_tile_square(), nmm_tile_build_hmill(), nmm_tile_build_vmill(), pp_setup_pieces(), pp_valid_move(), pp_winning_piece(), ps_move(), ps_move_piece(), ps_setup_pieces(), ps_winning_piece(), and ttt_winning_piece().
Definition at line 12 of file minigames.qc.
References str2chr, and substring().
Referenced by bd_do_fill(), bd_editor_place(), bd_load_piece(), bd_move_dozer(), bd_server_event(), bd_valid_tile(), c4_get_lowest_tile(), c4_valid_tile(), c4_winning_piece(), minigame_relative_tile(), minigame_tile_pos(), nmm_tile_adjacent(), nmm_tile_build_hmill(), nmm_tile_build_vmill(), pp_valid_move(), pp_valid_tile(), pp_winning_piece(), ps_move(), ps_tile_blacklisted(), ps_valid_tile(), ps_winning_piece(), ttt_valid_tile(), and ttt_winning_piece().
Definition at line 54 of file minigames.qc.
References floor(), minigame_tile_buildname(), number, and vector.
Definition at line 21 of file minigames.qc.
References stof(), and substring().
Referenced by bd_do_fill(), bd_editor_place(), bd_load_piece(), bd_move_dozer(), bd_server_event(), bd_valid_tile(), c4_valid_tile(), c4_winning_piece(), minigame_relative_tile(), minigame_tile_pos(), nmm_tile_adjacent(), nmm_tile_build_hmill(), nmm_tile_build_vmill(), pp_valid_move(), pp_valid_tile(), pp_winning_piece(), ps_move(), ps_tile_blacklisted(), ps_valid_tile(), ps_winning_piece(), ttt_valid_tile(), and ttt_winning_piece().
Definition at line 27 of file minigames.qc.
References minigame_tile_letter(), minigame_tile_number(), vec2, and vector.
Referenced by nmm_spawn_tile().
Definition at line 110 of file minigames.qc.
References MINIGAME_SIMPLELINKED_ENTITIES, and msle_base_id.
Referenced by NET_HANDLE().
Definition at line 99 of file minigames.qc.
References MINIGAME_SIMPLELINKED_ENTITIES, and msle_base_id.
Referenced by minigame_SendEntity().
Definition at line 87 of file minigames.qc.
References entity(), minigame_CheckSend(), minigame_SendEntity(), Net_LinkEntity(), and setcefc.
Referenced by bd_editor_place(), bd_load_piece(), c4_move(), nmm_server_event(), pong_ai_spawn(), pong_paddle_spawn(), pong_server_event(), pp_move(), pp_setup_pieces(), ps_setup_pieces(), and ttt_move().
| entity descriptor |
For minigame sessions: minigame descriptor object.
Definition at line 45 of file minigames.qh.
Referenced by minigame_SendEntity(), and NET_HANDLE().
| entity list_next |
Definition at line 6 of file minigames.qh.
Referenced by HUD_MinigameMenu_Click_ExpandCollapse().
| entity list_prev |
Definition at line 4 of file minigames.qh.
| const int MINIG_SF_ALL = 0xff |
Definition at line 112 of file minigames.qh.
Referenced by bd_load_piece(), c4_move(), minigame_resend(), pp_move(), pp_setup_pieces(), ps_move_piece(), ps_setup_pieces(), and ttt_move().
| const int MINIG_SF_CREATE = 0x01 |
Definition at line 108 of file minigames.qh.
Referenced by minigame_SendEntity(), and NET_HANDLE().
| const int MINIG_SF_CUSTOM = 0x10 |
Definition at line 110 of file minigames.qh.
| const int MINIG_SF_MAX = 0x80 |
Definition at line 111 of file minigames.qh.
| const int MINIG_SF_UPDATE = 0x02 |
Definition at line 109 of file minigames.qh.
Referenced by bd_activate_editor(), bd_check_winner(), bd_close_editor(), bd_do_next_match(), bd_editor_place(), bd_move(), bd_move_dozer(), bd_restart_match(), bd_server_event(), c4_move(), minigame_SendEntity(), NET_HANDLE(), nmm_server_event(), pong_ball_reset(), pong_ball_think(), pong_ball_throw(), pong_paddle_think(), pong_server_event(), pp_move(), pp_next_match(), pp_server_event(), pp_setup_pieces(), ps_move(), ps_setup_pieces(), ttt_move(), and ttt_next_match().
| bool minigame_autoclean |
Definition at line 100 of file minigames.qh.
| int minigame_flags |
Definition at line 103 of file minigames.qh.
Referenced by minigame_SendEntity(), and NET_HANDLE().