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

Boss zombie run/sprint fix!

broken avatar :(
Created 6 years ago
by gympie6
0 Members and 1 Guest are viewing this topic.
1,336 views
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 3 days ago
Posts
645
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
No code is bug free
Signature
My published cod maps:

Subzero
Djinncaves
Enclosed (a.k.a baconcube)
Bayern
Snowblind
Furtrelock

Black Ops Perks: https://www.ugx-mods.com/forum/scripts/55/call-of-duty-world-at-war-black-ops-perks/22180/
×
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 LinksTheRevenantSkullTeffrieTeffrieGympie5#5971
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.

change this:
Code Snippet
Plaintext
if( level.round_number > 3 )
    {
        zombies = getaiarray( "axis" );
        while( zombies.size > 0 )
        {
            if( zombies.size == 1 && zombies[0].has_legs == true )
            {
                var = randomintrange(1, 4);
                zombies[0] set_run_anim( "sprint" + var );                      
                zombies[0].run_combatanim = level.scr_anim[zombies[0].animname]["sprint" + var];
            }
            wait(0.5);
            zombies = getaiarray("axis");
        }

    }
in to this:
Code Snippet
Plaintext
if( level.round_number > 3 )
    {
        zombies = getaiarray( "axis" );
        while( zombies.size > 0 )
        {
            if( zombies.size == 1 && zombies[0].has_legs == true && zombies[0].boss == false)
            {
                var = randomintrange(1, 4);
                zombies[0] set_run_anim( "sprint" + var );                      
                zombies[0].run_combatanim = level.scr_anim[zombies[0].animname]["sprint" + var];
            }
            wait(0.5);
            zombies = getaiarray("axis");
        }

    }
In the boss script when the boss is spawned at this somewhere:
Code Snippet
Plaintext
self.boss = true;
Last Edit: November 02, 2020, 06:32:22 pm by gympie6

 
Loading ...