X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_damage.qh;h=ca5c45b9efd3c01282d965cd812abd15b64c8cb2;hb=f00146a481475e0fb4516f421fc471739cee3d29;hp=cee65e1643ad76bb00787468eeccb980d7115f14;hpb=317ec3eb27ada1c4668876e9499136125acb7984;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_damage.qh b/qcsrc/server/g_damage.qh index cee65e164..ca5c45b9e 100644 --- a/qcsrc/server/g_damage.qh +++ b/qcsrc/server/g_damage.qh @@ -1,28 +1,27 @@ -#ifndef G_DAMAGE_H -#define G_DAMAGE_H +#pragma once #if defined(CSQC) #elif defined(MENUQC) #elif defined(SVQC) - #include "../lib/warpzone/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/all.qh" + #include + #include #include "mutators/all.qh" - #include "../common/turrets/sv_turrets.qh" - #include "../common/vehicles/all.qh" - #include "../lib/csqcmodel/sv_model.qh" - #include "../common/playerstats.qh" + #include + #include + #include + #include #include "g_hook.qh" #include "scores.qh" #include "spawnpoints.qh" @@ -56,7 +55,7 @@ float IsFlying(entity a); void UpdateFrags(entity player, float 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); @@ -118,4 +117,3 @@ void Fire_ApplyDamage(entity e); void Fire_ApplyEffect(entity e); void fireburner_think(); -#endif