



Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!self thread maps\_zombiemode_powerups::check_for_instakill( player );
self thread maps\_zombiemode_powerups::check_for_instakill( player, mod, hit_location );
check_for_instakill( player, mod )
{
if( IsDefined( player ) && IsAlive( player ) && level.zombie_vars[ "zombie_insta_kill" ] )
{
if( is_magic_bullet_shield_enabled( self ) )
{
return;
}
if( self.animname == "boss_zombie" )
{
return;
}
if( player.use_weapon_type == "MOD_MELEE" )
{
player.last_kill_method = "MOD_MELEE";
}
else
{
player.last_kill_method = "MOD_UNKNOWN";
}
modName = remove_mod_from_methodofdeath( mod );
if( flag( "dog_round" ) )
{
self DoDamage( self.health + 666, self.origin, player, undefined, modName );
player notify( "zombie_killed" );
}
else
{
self maps\_zombiemode_spawner::zombie_head_gib();
self DoDamage( self.health + 666, self.origin, player, undefined, modName );
player notify( "zombie_killed" );
}
}
}
remove_mod_from_methodofdeath( mod )
{
modStrings = StrTok( mod, "_" );
modName = "";
for( i = 1; i < modStrings.size; i ++ )
{
modName += modStrings[i];
}
return modName;
}
This tut worked for knifing, but now for some reason the game freezes when I aim down sights and shoot a zombie during instakill. After the long freeze of about 5 seconds, the shot disappears and doesn't kill the zombie. This issue is only when I have instakill and when I aim down the sights and shoot at a zombie. I've reversed the steps in this tut and my issue is fixed, but I'm wondering if you noticed the same issue?
remove_mod_from_methodofdeath( mod )
{
if (mod == "")
return "";
modStrings = strTok( mod, "_" );
modName = "";
for( i = 1; i < modStrings.size; i ++ )
{
modName += modStrings[i];
}
return modName;
}