X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fdefs.qh;h=c66ad28fe3e190a1b3582cb2e227b6d3ca025d4a;hp=90bc1fb200a4cd3a2eaca29eae32b7a2983fe4f4;hb=f785b8a76c2336cb00e78fe9e738d55512a086f5;hpb=b9ed1a38cd897084d0ed8beb6033a761e095d64d diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 90bc1fb20..c66ad28fe 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -50,7 +50,7 @@ float server_is_dedicated; .float pain_frame; //" .float crouch; // Crouching or not? -.float superweapons_finished = _STAT(SUPERWEAPONS_FINISHED); +const .float superweapons_finished = _STAT(SUPERWEAPONS_FINISHED); .float cnt; // used in too many places .float count; @@ -169,6 +169,8 @@ float default_weapon_alpha; .float cvar_cl_movement_track_canjump; .float cvar_cl_newusekeysupported; .float cvar_cl_cts_noautoswitch; +.bool cvar_cl_weapon_switch_reload; +.bool cvar_cl_weapon_switch_fallback_to_impulse; .string cvar_g_xonoticversion; .string cvar_cl_weaponpriority; @@ -202,10 +204,7 @@ float bot_waypoints_for_items; #else #define ATTACK_FINISHED_FOR(ent, w, slot) ((ent).attack_finished_single[slot]) #endif -#define ATTACK_FINISHED(ent, slot) ATTACK_FINISHED_FOR(ent, ent.(weaponentity).m_weapon.m_id, slot) - -// assault game mode: Which team is attacking in this round? -float assault_attacker_team; +#define ATTACK_FINISHED(ent, w) ATTACK_FINISHED_FOR(ent, ent.(w).m_weapon.m_id, weaponslot(w)) // speedrun: when 1, player auto teleports back when capture timeout happens .float speedrunning;