UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Get 130 Points while knifing in Insta-Kill

broken avatar :(
Created 7 years ago
by Tim Smith
0 Members and 1 Guest are viewing this topic.
2,681 views
broken avatar :(
×
broken avatar :(
Location: gbNewport
Date Registered: 2 November 2014
Last active: 2 years ago
Posts
1,265
Respect
Forum Rank
Zombie Colossus
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Embrace the Darkness
×
Tim Smith's Groups
Tim Smith's Contact & Social Linkstimsmith90THEREALBaDBoY17TimSmithMy clan Website
I take no credit for this Tut. However, make sure to credit "alaurenc9". Just wanted to share it with people.


First go open _zombiemode_spawner.gsc & Find :
Code Snippet
Plaintext
self thread maps\_zombiemode_powerups::check_for_instakill( player );
Replace with :
Code Snippet
Plaintext
self thread maps\_zombiemode_powerups::check_for_instakill( player, mod, hit_location );


Save and close the file, now go open _zombiemode_powerups.gsc Find & Replace the hole check_for_instakill() function with this :
Code Snippet
Plaintext
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" );
      }
   }
}


Save and close that file also. Now open _zombiemode_utility.gsc Paste this at the bottom of the file
Code Snippet
Plaintext
remove_mod_from_methodofdeath( mod )
{
   modStrings = StrTok( mod, "_" );
   modName = "";
   for( i = 1; i < modStrings.size; i ++ )
   {
      modName += modStrings[i];
   }
   return modName;
}


That's it enjoy.  :gusta:
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 7 May 2015
Last active: 1 month ago
Posts
312
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Signature
×
EmpGeneral's Groups
EmpGeneral's Contact & Social LinksldraweEletricStorm
Thanks for this! :D
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 June 2021
Last active: 1 year ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
frogkm's Groups
frogkm's Contact & Social Links
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?
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 20 September 2015
Last active: 3 months ago
Posts
8
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Tetration's Groups
Tetration's Contact & Social LinksTetrationTetration
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?
I know it's a bit late, but I've solved this bug. Apparently giving an empty string to strTok creates an infinite loop, which causes the thread to be killed after getting stuck for a few seconds. To fix this, change the remove_mod_from_methodofdeath function to the following:
 
Code Snippet
cpp
remove_mod_from_methodofdeath( mod )
{
   if (mod == "")
      return "";
   modStrings = strTok( mod, "_" );
   modName = "";
   for( i = 1; i < modStrings.size; i ++ )
   {
      modName += modStrings[i];
   }
   return modName;
}


 
Loading ...