6 #include <server/defs.qh>
7 #include <server/items/items.qh>
8 #include <server/miscfunctions.qh>
9 #include <lib/warpzone/common.qh>
10 #include <common/constants.qh>
11 #include <common/teams.qh>
12 #include <common/util.qh>
13 #include <common/weapons/_all.qh>
14 #include "weapons/accuracy.qh"
15 #include "weapons/csqcprojectile.qh"
16 #include "weapons/selection.qh"
17 #include "autocvars.qh"
18 #include "constants.qh"
20 #include <common/notifications/all.qh>
21 #include <common/deathtypes/all.qh>
22 #include <server/mutators/_mod.qh>
23 #include <common/turrets/sv_turrets.qh>
24 #include <common/vehicles/all.qh>
25 #include <lib/csqcmodel/sv_model.qh>
26 #include <common/playerstats.qh>
29 #include "spawnpoints.qh"
37 bool Damage_DamageInfo_SendEntity(entity this, entity to, int sf);
39 void Damage_DamageInfo(vector org, float coredamage, float edgedamage, float rad, vector force, int deathtype, float bloodtype, entity dmgowner);
41 float checkrules_firstblood;
44 float damage_goodhits;
45 float damage_gooddamage;
48 .float teamkill_complain;
49 .float teamkill_soundtime;
50 .entity teamkill_soundsource;
53 .float taunt_soundtime;
55 float IsFlying(entity a);
57 void UpdateFrags(entity player, int f);
59 // NOTE: f=0 means still count as a (positive) kill, but count no frags for it
60 void W_SwitchWeapon_Force(Player this, Weapon w, .entity weaponentity);
61 void GiveFrags (entity attacker, entity targ, float f, int deathtype, .entity weaponentity);
63 string AppendItemcodes(string s, entity player);
65 void LogDeath(string mode, int deathtype, entity killer, entity killed);
67 void Obituary_SpecialDeath(
71 string s1, string s2, string s3,
72 float f1, float f2, float f3);
75 float Obituary_WeaponDeath(
79 string s1, string s2, string s3,
82 void Obituary(entity attacker, entity inflictor, entity targ, int deathtype, .entity weaponentity);
84 void Ice_Think(entity this);
86 void Freeze(entity targ, float freeze_time, int frozen_type, bool show_waypoint);
88 void Unfreeze(entity targ, bool reset_health);
90 // NOTE: the .weaponentity parameter can be set to DMG_NOWEP if the attack wasn't caused by a weapon or player
91 void Damage (entity targ, entity inflictor, entity attacker, float damage, int deathtype, .entity weaponentity, vector hitloc, vector force);
93 float RadiusDamage_running;
94 float RadiusDamageForSource (entity inflictor, vector inflictororigin, vector inflictorvelocity, entity attacker, float coredamage, float edgedamage, float rad, entity cantbe, entity mustbe, float inflictorselfdamage, float forceintensity, float forcezscale, int deathtype, .entity weaponentity, entity directhitentity);
95 // Returns total damage applies to creatures
97 float RadiusDamage (entity inflictor, entity attacker, float coredamage, float edgedamage, float rad, entity cantbe, entity mustbe, float forceintensity, int deathtype, .entity weaponentity, entity directhitentity);
99 // Calls .event_heal on the target so that they can handle healing themselves
100 // a limit of RES_LIMIT_NONE should be handled by the entity as its max health (if applicable)
101 bool Heal(entity targ, entity inflictor, float amount, float limit);
103 .float fire_damagepersec;
105 .float fire_deathtype;
107 .float fire_hitsound;
110 void fireburner_think(entity this);
112 float Fire_IsBurning(entity e);
114 float Fire_AddDamage(entity e, entity o, float d, float t, float dt);
116 void Fire_ApplyDamage(entity e);
118 void Fire_ApplyEffect(entity e);