Napalm zombie run/sprint fix!

broken avatar :(
Created 260 days ago
by gympie6
0 Members and 1 Guest are viewing this topic.
386 views
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 2 hours ago
Posts
269
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
gympie6's Contact & Social LinksDistenc5Teffrie
If a zombie is shot near another zombie there is a chance he gets mad.
When it happens he goes running/sprinting.

To fix this issue there is one line of code needed to fix that.

Go to your napalm-zombie.gsc file and add this line after he is spawned.
Example:

napalm_spawn()
{
     ai = spawn_zombie( use_spawn_point );
     if (isdefined(ai) )
     {
           wait .05;
           ai.boss = true;
           // Add this line here!
           
ai.zombie_move_speed = "sprint";
           // Add this line here!
           ai DetachAll();
           ai setModel(napalm_model);
           ai thread maps\_zombiemode_spawner::zombie_setup_attack_properties();
     }
}

Don't be confused with this line of code because it's only a check, you can still change the run animations of the zombie.
Last Edit: August 08, 2018, 09:51:06 pm by gympie6

 

Login

or login with an authentication provider below
Twitter
Discord
Steam
Twitch
Google
Loading ...