7 #include "../dpdefs/progsdefs.qh"
8 #include "../dpdefs/dpextensions.qh"
9 #include "../warpzonelib/common.qh"
10 #include "../common/constants.qh"
11 #include "../common/teams.qh"
12 #include "../common/util.qh"
13 #include "../common/weapons/weapons.qh"
14 #include "weapons/accuracy.qh"
15 #include "weapons/csqcprojectile.qh"
16 #include "weapons/selection.qh"
18 #include "autocvars.qh"
19 #include "constants.qh"
21 #include "../common/notifications.qh"
22 #include "../common/deathtypes.qh"
23 #include "mutators/mutators_include.qh"
24 #include "tturrets/include/turrets_early.qh"
25 #include "vehicles/vehicles_def.qh"
26 #include "../csqcmodellib/sv_model.qh"
27 #include "../common/playerstats.qh"
30 #include "spawnpoints.qh"
38 float Damage_DamageInfo_SendEntity(entity to, float sf);
40 void Damage_DamageInfo(vector org, float coredamage, float edgedamage, float rad, vector force, float deathtype, float bloodtype, entity dmgowner);
42 float checkrules_firstblood;
45 float damage_goodhits;
46 float damage_gooddamage;
49 .float teamkill_complain;
50 .float teamkill_soundtime;
51 .entity teamkill_soundsource;
54 .float taunt_soundtime;
56 float IsFlying(entity a);
58 void UpdateFrags(entity player, float f);
60 // NOTE: f=0 means still count as a (positive) kill, but count no frags for it
61 void W_SwitchWeapon_Force(entity e, float w);
62 entity GiveFrags_randomweapons;
63 void GiveFrags (entity attacker, entity targ, float f, float deathtype);
65 string AppendItemcodes(string s, entity player);
67 void LogDeath(string mode, float deathtype, entity killer, entity killed);
69 void Obituary_SpecialDeath(
73 string s1, string s2, string s3,
74 float f1, float f2, float f3);
77 float Obituary_WeaponDeath(
81 string s1, string s2, string s3,
84 void Obituary(entity attacker, entity inflictor, entity targ, float deathtype);
88 void Freeze (entity targ, float freeze_time, float frozen_type, float show_waypoint);
90 void Unfreeze (entity targ);
92 // these are updated by each Damage call for use in button triggering and such
94 entity damage_inflictor;
95 entity damage_attacker;
97 void Damage (entity targ, entity inflictor, entity attacker, float damage, float deathtype, vector hitloc, vector force);
99 float RadiusDamage_running;
100 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 deathtype, entity directhitentity);
101 // Returns total damage applies to creatures
103 float RadiusDamage (entity inflictor, entity attacker, float coredamage, float edgedamage, float rad, entity cantbe, entity mustbe, float forceintensity, float deathtype, entity directhitentity);
105 .float fire_damagepersec;
107 .float fire_deathtype;
109 .float fire_hitsound;
112 void fireburner_think();
114 float Fire_IsBurning(entity e);
116 float Fire_AddDamage(entity e, entity o, float d, float t, float dt);
118 void Fire_ApplyDamage(entity e);
120 void Fire_ApplyEffect(entity e);
122 void fireburner_think();