6 #include <lib/warpzone/common.qh>
7 #include <common/constants.qh>
8 #include <common/teams.qh>
9 #include <common/util.qh>
10 #include <common/weapons/all.qh>
11 #include "weapons/accuracy.qh"
12 #include "weapons/csqcprojectile.qh"
13 #include "weapons/selection.qh"
14 #include <common/t_items.qh>
15 #include "autocvars.qh"
16 #include "constants.qh"
18 #include <common/notifications/all.qh>
19 #include <common/deathtypes/all.qh>
20 #include "mutators/all.qh"
21 #include <common/turrets/sv_turrets.qh>
22 #include <common/vehicles/all.qh>
23 #include <lib/csqcmodel/sv_model.qh>
24 #include <common/playerstats.qh>
27 #include "spawnpoints.qh"
35 bool Damage_DamageInfo_SendEntity(entity this, entity to, int sf);
37 void Damage_DamageInfo(vector org, float coredamage, float edgedamage, float rad, vector force, int deathtype, float bloodtype, entity dmgowner);
39 float checkrules_firstblood;
42 float damage_goodhits;
43 float damage_gooddamage;
46 .float teamkill_complain;
47 .float teamkill_soundtime;
48 .entity teamkill_soundsource;
51 .float taunt_soundtime;
53 float IsFlying(entity a);
55 void UpdateFrags(entity player, float f);
57 // NOTE: f=0 means still count as a (positive) kill, but count no frags for it
58 void W_SwitchWeapon_Force(Player this, Weapon w);
59 entity GiveFrags_randomweapons;
60 void GiveFrags (entity attacker, entity targ, float f, int deathtype);
62 string AppendItemcodes(string s, entity player);
64 void LogDeath(string mode, int deathtype, entity killer, entity killed);
66 void Obituary_SpecialDeath(
70 string s1, string s2, string s3,
71 float f1, float f2, float f3);
74 float Obituary_WeaponDeath(
78 string s1, string s2, string s3,
81 void Obituary(entity attacker, entity inflictor, entity targ, int deathtype);
83 void Ice_Think(entity this);
85 void Freeze (entity targ, float freeze_time, float frozen_type, float show_waypoint);
87 void Unfreeze (entity targ);
89 // these are updated by each Damage call for use in button triggering and such
91 entity damage_inflictor;
92 entity damage_attacker;
94 void Damage (entity targ, entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force);
96 float RadiusDamage_running;
97 float RadiusDamageForSource (entity inflictor, vector inflictororigin, vector inflictorvelocity, entity attacker, float coredamage, float edgedamage, float rad, entity cantbe, entity mustbe, float inflictorselfdamage, float forceintensity, int deathtype, entity directhitentity);
98 // Returns total damage applies to creatures
100 float RadiusDamage (entity inflictor, entity attacker, float coredamage, float edgedamage, float rad, entity cantbe, entity mustbe, float forceintensity, int deathtype, entity directhitentity);
102 .float fire_damagepersec;
104 .float fire_deathtype;
106 .float fire_hitsound;
109 void fireburner_think(entity this);
111 float Fire_IsBurning(entity e);
113 float Fire_AddDamage(entity e, entity o, float d, float t, float dt);
115 void Fire_ApplyDamage(entity e);
117 void Fire_ApplyEffect(entity e);