
Posts
560
Respect
430Add +1
Forum Rank
Zombie Enslaver
Primary Group
Mapper
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!
![]() | Has released one or more maps to the UGX-Mods community. |
pick_zombie_melee_anim( zombie_guy )
{
melee_anim = undefined;
if ( zombie_guy.has_legs && !zombie_guy.boss ) // boss is the zombie with the custom attack animation
{
switch(zombie_guy.zombie_move_speed)
{
case "walk":
anims = array_combine(level._zombie_melee[zombie_guy.animname],level._zombie_walk_melee[zombie_guy.animname]);
melee_anim = random(anims);
break;
case "run":
case "sprint":
anims = array_combine(level._zombie_melee[zombie_guy.animname],level._zombie_run_melee[zombie_guy.animname]);
melee_anim = random(anims);
break;
}
}
else if( isdefined(zombie_guy.boss) && zombie_guy.boss )
{
melee_anim = level._brutus_attack["brutus_attack"]; // my custom zombie attack animation
}
else if(zombie_guy.a.gib_ref == "no_legs")
{
// if zombie have no legs whatsoever.
melee_anim = random(level._zombie_stumpy_melee[zombie_guy.animname]);
}
else
{
melee_anim = random(level._zombie_melee_crawl[zombie_guy.animname]);
}
return melee_anim;
}level._brutus_attack["brutus_attack"] = %brutus_attack;



![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
![]() | Has released one or more maps to the UGX-Mods community. |
