X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fdefs.qh;h=5b67aeb39408d0fbcf1e8a49450761d05ff24c8a;hb=3cc1e9c4a52d70b4d7097a0a584cbb391570c6e2;hp=e2e73c58d88ca53080800d423f88af2ffdf98a3a;hpb=a3a702a1a9fdd00ead6d0b88a55a9299c8d39707;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index e2e73c58d..5b67aeb39 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -116,7 +116,7 @@ const float MAX_DAMAGEEXTRARADIUS = 16; // WEAPONTODO .float autoswitch; -bool client_hasweapon(entity this, Weapon wpn, float andammo, bool complain); +bool client_hasweapon(entity this, Weapon wpn, .entity weaponentity, float andammo, bool complain); void w_clear(Weapon thiswep, entity actor, .entity weaponentity, int fire); void w_ready(Weapon thiswep, entity actor, .entity weaponentity, int fire); // VorteX: standalone think for weapons, so normal think on weaponentity can be reserved by weaponflashes (which needs update even player dies) @@ -210,7 +210,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, PS(ent).m_weapon.m_id, slot) +#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; @@ -261,7 +261,7 @@ bool independent_players; string clientstuff; .float phase; -.int pressedkeys = _STAT(PRESSED_KEYS); +.int pressedkeys; .string fog; @@ -426,7 +426,6 @@ const int MIF_GUIDED_CONFUSABLE = MIF_GUIDED_HEAT | MIF_GUIDED_AI; .string cvar_cl_physics; -.bool init_for_player_needed; .void(entity this, entity player) init_for_player; IntrusiveList g_monsters; @@ -449,3 +448,27 @@ STATIC_INIT(g_projectiles) { g_projectiles = IL_NEW(); } IntrusiveList g_items; STATIC_INIT(g_items) { g_items = IL_NEW(); } + +IntrusiveList g_initforplayer; +STATIC_INIT(g_initforplayer) { g_initforplayer = IL_NEW(); } + +IntrusiveList g_clones; +STATIC_INIT(g_clones) { g_clones = IL_NEW(); } + +IntrusiveList g_assault_destructibles; +STATIC_INIT(g_assault_destructibles) { g_assault_destructibles = IL_NEW(); } + +IntrusiveList g_assault_objectivedecreasers; +STATIC_INIT(g_assault_objectivedecreasers) { g_assault_objectivedecreasers = IL_NEW(); } + +IntrusiveList g_assault_objectives; +STATIC_INIT(g_assault_objectives) { g_assault_objectives = IL_NEW(); } + +IntrusiveList g_spawnpoints; +STATIC_INIT(g_spawnpoints) { g_spawnpoints = IL_NEW(); } + +IntrusiveList g_bot_targets; +STATIC_INIT(g_bot_targets) { g_bot_targets = IL_NEW(); } + +IntrusiveList g_bot_dodge; +STATIC_INIT(g_bot_dodge) { g_bot_dodge = IL_NEW(); }