]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/weapons/weaponsystem.qh
Makefile: use `-I.`
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / weaponsystem.qh
1 #ifndef WEAPONSYSTEM_H
2 #define WEAPONSYSTEM_H
3
4
5 float internalteam;
6 float weaponswapping;
7 entity weapon_dropevent_item;
8
9 void CL_SpawnWeaponentity(entity e, .entity weaponentity);
10
11 vector CL_Weapon_GetShotOrg(float wpn);
12
13 float forbidWeaponUse(entity player);
14
15 void W_AttachToShotorg(entity actor, entity flash, vector offset);
16
17 void W_DecreaseAmmo(Weapon wep, entity actor, float ammo_use);
18
19 void W_DropEvent(.void(Weapon) event, entity player, float weapon_type, entity weapon_item);
20
21 void W_Reload(entity actor, float sent_ammo_min, string sent_sound);
22
23 void W_WeaponFrame(entity actor);
24
25 float W_WeaponRateFactor();
26
27 float W_WeaponSpeedFactor();
28
29 bool weapon_prepareattack(Weapon thiswep, entity actor, .entity weaponentity, bool secondary, float attacktime);
30
31 bool weapon_prepareattack_check(Weapon thiswep, entity actor, .entity weaponentity, float secondary, float attacktime);
32
33 void weapon_prepareattack_do(entity actor, .entity weaponentity, float secondary, float attacktime);
34
35 void weapon_thinkf(entity actor, .entity weaponentity, WFRAME fr, float t, void(Weapon thiswep, entity actor, .entity weaponentity, int fire) func);
36
37 #endif