15 proj.traileffect = EFFECT_FIREBALL.m_id;
22 if (trail.eent_eff_name) proj.traileffect = trail.m_id;
28 if (!mut_is_active(MUT_NADES))
return;
35 proj.mins =
'-16 -16 -16';
36 proj.maxs =
'16 16 16';
40 if (nade_type == NADE_TYPE_Null)
return;
44 proj.mins =
'-8 -8 -8';
49 proj.mins =
'-16 -16 -16';
50 proj.maxs =
'16 16 16';
52 proj.colormod = nade_type.m_color;
57 proj.alphamod = nade_type.m_alpha;
59 if (nade_type == NADE_TYPE_TRANSLOCATE
60 || nade_type == NADE_TYPE_SPAWN
61 || nade_type == NADE_TYPE_MONSTER)
69 if (mut_is_active(MUT_NADES))
71 string key =
getcommandkey(_(
"drop weapon / throw nade"),
"dropweapon");
73 "\n", sprintf(_(
"^3nades^8 are enabled, press ^3%s^8 to use them"), key),
"\n");
83 float bonusNades =
STAT(NADE_BONUS);
84 float bonusProgress =
STAT(NADE_BONUS_SCORE);
85 float bonusType =
STAT(NADE_BONUS_TYPE);
87 string nadeIcon = def.
m_icon;
103 iconPos = myPos +
eX * 2 * mySize.y;
109 textPos = myPos +
eX * mySize.y;
112 if(bonusNades > 0 || bonusProgress > 0)
#define REGISTER_MUTATOR(...)
#define MUTATOR_HOOKFUNCTION(...)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void DrawAmmoNades(vector myPos, vector mySize, bool draw_expanding, float expand_time)
bool Projectile_isnade(int p)
void drawstring_aspect(vector pos, string text, vector sz, vector color, float theAlpha, float drawflag)
void drawpic_aspect_skin_expanding(vector position, string pic, vector theScale, vector rgb, float theAlpha, float flag, float fadelerp)
#define drawpic_aspect_skin(pos, pic, sz, color, theAlpha, drawflag)
void DrawNadeProgressBar(vector myPos, vector mySize, float progress, vector color)
bool autocvar_hud_panel_ammo_text
bool autocvar_hud_panel_ammo_iconalign
#define getcommandkey(cmd_name, command)
ERASEABLE vector hsv_to_rgb(vector hsv)
#define setmodel(this, m)
const float DRAWFLAG_NORMAL
float DPCONTENTS_PLAYERCLIP
void set_movetype(entity this, int mt)
const int MOVETYPE_BOUNCE
entity Nade_TrailEffect(int proj, int nade_team)
Nade Nade_FromProjectile(int proj)
const int PROJECTILE_NAPALM_FOUNTAIN
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
void loopsound(entity e, int ch, Sound samp, float vol, float attn)
#define REGISTRY_GET(id, i)
const int CH_SHOTS_SINGLE
#define SND_NADE_NAPALM_FLY