X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fweapons%2Fweaponsystem.qh;h=e466449e6e841f2d93a3fa2d86540d508652a2c6;hb=ae2c1407ec9a05e4f501a6604a7cce8e1030df9f;hp=47ae74b422a34ca6841017db3c388d10af557a55;hpb=bf825a0dada529d1288564e23223061429d01f31;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/weaponsystem.qh b/qcsrc/server/weapons/weaponsystem.qh index 47ae74b42..e466449e6 100644 --- a/qcsrc/server/weapons/weaponsystem.qh +++ b/qcsrc/server/weapons/weaponsystem.qh @@ -1,2 +1,45 @@ -float weaponswapping; +#ifndef WEAPONSYSTEM_H +#define WEAPONSYSTEM_H + +.float wframe; + float internalteam; +float weaponswapping; +entity weapon_dropevent_item; + +// VorteX: static frame globals +const float WFRAME_DONTCHANGE = -1; +const float WFRAME_FIRE1 = 0; +const float WFRAME_FIRE2 = 1; +const float WFRAME_IDLE = 2; +const float WFRAME_RELOAD = 3; + +void CL_SpawnWeaponentity(); + +vector CL_Weapon_GetShotOrg(float wpn); + +float forbidWeaponUse(entity player); + +void W_AttachToShotorg(entity flash, vector offset); + +void W_DecreaseAmmo(float ammo_use); + +void W_DropEvent(float event, entity player, float weapon_type, entity weapon_item); + +void W_Reload(float sent_ammo_min, string sent_sound); + +void W_WeaponFrame(); + +float W_WeaponRateFactor(); + +float W_WeaponSpeedFactor(); + +float weapon_prepareattack(float secondary, float attacktime); + +float weapon_prepareattack_check(float secondary, float attacktime); + +float weapon_prepareattack_do(float secondary, float attacktime); + +void weapon_thinkf(float fr, float t, void() func); + +#endif