X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_damage.qh;h=617eca1985108e4ca82fc2b31167a8b23c69ff9b;hb=3514dfab68ace0fd00b3df1993b8773868b1a6a3;hp=4f68c2ea00a4d55ff06fa50c6a3d71e8df6c863e;hpb=6e4c0c69ce16c05cdc8ce97c5287c848acfc3b1f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_damage.qh b/qcsrc/server/g_damage.qh index 4f68c2ea0..617eca198 100644 --- a/qcsrc/server/g_damage.qh +++ b/qcsrc/server/g_damage.qh @@ -19,7 +19,7 @@ #include "defs.qh" #include #include - #include "mutators/_mod.qh" + #include #include #include #include @@ -49,7 +49,7 @@ float damage_gooddamage; .float teamkill_soundtime; .entity teamkill_soundsource; .entity pusher; -.float istypefrag; +.bool istypefrag; .float taunt_soundtime; float IsFlying(entity a); @@ -58,7 +58,6 @@ void UpdateFrags(entity player, int f); // NOTE: f=0 means still count as a (positive) kill, but count no frags for it void W_SwitchWeapon_Force(Player this, Weapon w, .entity weaponentity); -entity GiveFrags_randomweapons; void GiveFrags (entity attacker, entity targ, float f, int deathtype, .entity weaponentity); string AppendItemcodes(string s, entity player); @@ -84,7 +83,7 @@ void Obituary(entity attacker, entity inflictor, entity targ, int deathtype, .en void Ice_Think(entity this); -void Freeze (entity targ, float freeze_time, float frozen_type, float show_waypoint); +void Freeze(entity targ, float freeze_time, int frozen_type, bool show_waypoint); void Unfreeze (entity targ); @@ -97,6 +96,10 @@ float RadiusDamageForSource (entity inflictor, vector inflictororigin, vector in float RadiusDamage (entity inflictor, entity attacker, float coredamage, float edgedamage, float rad, entity cantbe, entity mustbe, float forceintensity, int deathtype, .entity weaponentity, entity directhitentity); +// Calls .event_heal on the target so that they can handle healing themselves +// a limit of RESOURCE_LIMIT_NONE should be handled by the entity as its max health (if applicable) +bool Heal(entity targ, entity inflictor, float amount, float limit); + .float fire_damagepersec; .float fire_endtime; .float fire_deathtype;