X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fcommon%2Fnades.qh;h=ba189c9bf8dc38cb416107cf24682f67e89eea05;hb=3da2597f3c6edc7a99855778400b265074c6142d;hp=50f2e57e8067c212e34239305d6e513fa7ec685b;hpb=919c48e2ad5873bf1efb041be2e23e2e60903baf;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/nades.qh b/qcsrc/common/nades.qh index 50f2e57e8..ba189c9bf 100644 --- a/qcsrc/common/nades.qh +++ b/qcsrc/common/nades.qh @@ -1,8 +1,6 @@ #ifndef NADES_H #define NADES_H -#include "oo.qh" -#include "registry.qh" #include "teams.qh" .float healer_lifetime; @@ -42,7 +40,7 @@ CLASS(Nade, Object) } ENDCLASS(Nade) -REGISTER_NADE(NULL); +REGISTER_NADE(Null); #define NADE_PROJECTILE(i, projectile, trail) do { \ this.m_projectile[i] = projectile; \ @@ -111,7 +109,7 @@ entity Nade_FromProjectile(float proj) if (it.m_projectile[j] == proj) return it; } )); - return NADE_TYPE_NULL; + return NADE_TYPE_Null; } string Nade_TrailEffect(float proj, float nade_team) @@ -129,8 +127,8 @@ string Nade_TrailEffect(float proj, float nade_team) )); switch (proj) { - case PROJECTILE_NADE: return strcat("nade_", Static_Team_ColorName_Lower(nade_team)); - case PROJECTILE_NADE_BURN: return strcat("nade_", Static_Team_ColorName_Lower(nade_team), "_burn"); + case PROJECTILE_NADE: return EFFECT_NADE_TRAIL(nade_team).eent_eff_name; + case PROJECTILE_NADE_BURN: return EFFECT_NADE_TRAIL_BURN(nade_team).eent_eff_name; } return ""; }