if(ent.move_watertype)
if(ent.move_watertype != nativecontents)
{
+ //print(sprintf("_Movetype_CheckWater(): Original: '%d', New: '%d'\n", ent.move_watertype, nativecontents));
if(ent.contentstransition)
ent.contentstransition(ent.move_watertype, nativecontents);
}
}
else if(ent.move_watertype != contents)
{
+ //print(sprintf("_Movetype_CheckWaterTransition(): Origin: %s, Direct: '%d', Original: '%d', New: '%d'\n", vtos(ent.move_origin), pointcontents(ent.move_origin), ent.move_watertype, contents));
if(ent.contentstransition)
ent.contentstransition(ent.move_watertype, contents);
}
}
}
-void W_Grenade_ContentsTransition(float originalcont, float newcont)
-{
- //pointparticles(particleeffectnum("grenadelauncher_muzzleflash"), self.origin, self.velocity, 1);
- pointparticles(particleeffectnum("grenade_explode"), self.origin, '0 0 0', 1);
- print(sprintf("W_Grenade_ContentsTransition(): Original: '%d', New: '%d'\n", originalcont, newcont));
-}
-
void W_Grenade_Attack (void)
{
entity gren;
gren.damageforcescale = autocvar_g_balance_grenadelauncher_primary_damageforcescale;
gren.event_damage = W_Grenade_Damage;
gren.damagedbycontents = TRUE;
- gren.contentstransition = W_Grenade_ContentsTransition;
gren.missile_flags = MIF_SPLASH | MIF_ARC;
W_SETUPPROJECTILEVELOCITY_UP(gren, g_balance_grenadelauncher_primary);