X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fdefs.qh;h=43e1eb59993aa93bc28f4a5275d8a527c9bbc400;hb=57fd65c473599b6f069e15fe1e539f205141018b;hp=8b1726a0a6ee978911e2afea1ef1349e7442c4bc;hpb=52c2ac211c688794caa63ff56ceb7c817d9a55a3;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 8b1726a0a..43e1eb599 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) @@ -159,7 +159,6 @@ bool nJoinAllowed(entity this, entity ignore); .float noalign; // if set to 1, the item or spawnpoint won't be dropped to the floor .vector death_origin; -.vector killer_origin; float default_player_alpha; float default_weapon_alpha; @@ -209,7 +208,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; @@ -260,7 +259,7 @@ bool independent_players; string clientstuff; .float phase; -.int pressedkeys = _STAT(PRESSED_KEYS); +.int pressedkeys; .string fog; @@ -417,12 +416,6 @@ const int MIF_GUIDED_CONFUSABLE = MIF_GUIDED_HEAT | MIF_GUIDED_AI; //// -.entity player_stats; -//.float playerid; -.string playernick; -.float elos; -.float ranks; - .string cvar_cl_physics; .void(entity this, entity player) init_for_player; @@ -471,3 +464,6 @@ STATIC_INIT(g_bot_targets) { g_bot_targets = IL_NEW(); } IntrusiveList g_bot_dodge; STATIC_INIT(g_bot_dodge) { g_bot_dodge = IL_NEW(); } + +IntrusiveList g_damagedbycontents; +STATIC_INIT(g_damagedbycontents) { g_damagedbycontents = IL_NEW(); }