X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_damage.qh;h=019c8fc9a8efc92bc5d280f2352d796acd99f574;hp=9dce060cc453e4fdbb98bacb60db727cf5d96694;hb=79eebf87e68861e205a8754d6551bd0aa2229c44;hpb=fc62dfa34fa5b13d63660d5249633af1222d6476 diff --git a/qcsrc/server/g_damage.qh b/qcsrc/server/g_damage.qh index 9dce060cc..019c8fc9a 100644 --- a/qcsrc/server/g_damage.qh +++ b/qcsrc/server/g_damage.qh @@ -1,30 +1,27 @@ -#ifndef G_DAMAGE_H -#define G_DAMAGE_H +#pragma once #if defined(CSQC) #elif defined(MENUQC) #elif defined(SVQC) - #include "../dpdefs/progsdefs.qh" - #include "../dpdefs/dpextensions.qh" - #include "../warpzonelib/common.qh" - #include "../common/constants.qh" - #include "../common/teams.qh" - #include "../common/util.qh" - #include "../common/weapons/all.qh" + #include + #include + #include + #include + #include #include "weapons/accuracy.qh" #include "weapons/csqcprojectile.qh" #include "weapons/selection.qh" - #include "t_items.qh" + #include #include "autocvars.qh" #include "constants.qh" #include "defs.qh" - #include "../common/notifications.qh" - #include "../common/deathtypes.qh" - #include "mutators/mutators_include.qh" - #include "tturrets/include/turrets_early.qh" - #include "vehicles/vehicle.qh" - #include "../csqcmodellib/sv_model.qh" - #include "../common/playerstats.qh" + #include + #include + #include "mutators/_mod.qh" + #include + #include + #include + #include #include "g_hook.qh" #include "scores.qh" #include "spawnpoints.qh" @@ -35,7 +32,7 @@ .float dmg_force; .float dmg_radius; -float Damage_DamageInfo_SendEntity(entity to, int sf); +bool Damage_DamageInfo_SendEntity(entity this, entity to, int sf); void Damage_DamageInfo(vector org, float coredamage, float edgedamage, float rad, vector force, int deathtype, float bloodtype, entity dmgowner); @@ -55,10 +52,10 @@ float damage_gooddamage; float IsFlying(entity a); -void UpdateFrags(entity player, float f); +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(entity e, float w); +void W_SwitchWeapon_Force(Player this, Weapon w); entity GiveFrags_randomweapons; void GiveFrags (entity attacker, entity targ, float f, int deathtype); @@ -83,7 +80,7 @@ float Obituary_WeaponDeath( void Obituary(entity attacker, entity inflictor, entity targ, int deathtype); -void Ice_Think(); +void Ice_Think(entity this); void Freeze (entity targ, float freeze_time, float frozen_type, float show_waypoint); @@ -109,7 +106,7 @@ float RadiusDamage (entity inflictor, entity attacker, float coredamage, float e .float fire_hitsound; .entity fire_burner; -void fireburner_think(); +void fireburner_think(entity this); float Fire_IsBurning(entity e); @@ -118,6 +115,3 @@ float Fire_AddDamage(entity e, entity o, float d, float t, float dt); void Fire_ApplyDamage(entity e); void Fire_ApplyEffect(entity e); - -void fireburner_think(); -#endif