X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fdefs.qh;h=0ed30571f8eefc9ccbdc8a162198fbe773b9aa98;hp=1fbc8d09a50587b2c30094d4fabe2bf8bde001b5;hb=a8cc9eb71b0d0e44e9a968a9cf5554f6226cc838;hpb=98e1375c9938f3d86d6f8e28f44cd6af74d2fc0e diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 1fbc8d09a..0ed30571f 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 @@ -110,6 +108,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 +145,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 +162,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)