X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fdefs.qh;h=102309a0813a6d5063a8d82f2e25e27171753be3;hb=13719cec41a5a1b20d0fff3fe1b6df449bc2a884;hp=9637cc67c8496dd02032e99d3b5a864dfd9211e2;hpb=d9b16a719396d1afe1a767dd35e8cc5de779a22d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 9637cc67c..102309a08 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -5,8 +5,6 @@ #define INDEPENDENT_ATTACK_FINISHED -noref float require_spawnfunc_prefix; // if this float exists, only functions with spawnfunc_ name prefix qualify as spawn functions - #define BUTTON_ATCK button0 #define BUTTON_JUMP button2 #define BUTTON_ATCK2 button3 @@ -47,7 +45,6 @@ float sv_clones; float sv_foginterval; float player_count; -float currentbots; float bots_would_leave; void UpdateFrags(entity player, float f); @@ -110,6 +107,7 @@ void setanim(entity e, vector anim, float looping, float override, float restart .float species; +.float scheduledrespawntime; .float respawntime; .float respawntimejitter; //.float chasecam; @@ -146,7 +144,9 @@ const float MAX_DAMAGEEXTRARADIUS = 16; .float pauserothealth_finished; .float pauserotarmor_finished; .float pauserotfuel_finished; +// string overrides entity .string item_pickupsound; +.entity item_pickupsound_ent; // definitions for weaponsystem // more WEAPONTODO: move these to their proper files @@ -161,13 +161,12 @@ const float MAX_DAMAGEEXTRARADIUS = 16; // WEAPONTODO .float autoswitch; -//float WEP_ACTION(float wpn, float wrequest); float client_hasweapon(entity cl, float wpn, float andammo, float complain); -void w_clear(); -void w_ready(); +void w_clear(Weapon thiswep, entity actor, bool fire1, bool fire2); +void w_ready(Weapon thiswep, entity actor, bool fire1, bool fire2); // VorteX: standalone think for weapons, so normal think on weaponentity can be reserved by weaponflashes (which needs update even player dies) .float weapon_nextthink; -.void() weapon_think; +.void(Weapon thiswep, entity actor, bool fire1, bool fire2) weapon_think; // weapon states (self.weaponentity.state) @@ -255,11 +254,13 @@ void FixClientCvars(entity e); // WEAPONTODO: remove this WepSet weaponsInMap; +.WepSet weaponsinmap; + .float respawn_countdown; // next number to count float bot_waypoints_for_items; -.float attack_finished_for[WEP_MAXCOUNT]; +.float attack_finished_for[Weapons_MAX]; .float attack_finished_single; #ifdef INDEPENDENT_ATTACK_FINISHED #define ATTACK_FINISHED_FOR(ent,w) ((ent).(attack_finished_for[(w) - WEP_FIRST])) @@ -300,10 +301,6 @@ float tracebox_hits_trigger_hurt(vector start, vector mi, vector ma, vector end) float next_pingtime; -.float Version; -.int SendFlags; -.bool(entity to, int sendflags) SendEntity; - // player sounds, voice messages // TODO implemented fall and falling #define ALLPLAYERSOUNDS \ @@ -348,6 +345,7 @@ ALLVOICEMSGS // _VOICEMSG(droppedflag) \ // _VOICEMSG(negative) \ // _VOICEMSG(seenenemy) \ +// /**/ string globalsound_fall; string globalsound_metalfall; @@ -466,7 +464,7 @@ float client_cefc_accumulator; float client_cefc_accumulatortime; #endif -.float weapon_load[WEP_MAXCOUNT]; +.float weapon_load[Weapons_MAX]; .int ammo_none; // used by the reloading system, must always be 0 .float clip_load; .float old_clip_load;