Modme Forums
Menu:

Disable Zombie Collision With Other Zombies

Game Asset Reversing | Releases


ConvictioNDR:

You've probably noticed zombies get stuck on each other when going through small doorways, around corners, up stairs, on crawlers, etc. This will disable the collision of zombies with other zombies so they can get through tighter gaps without getting stuck on each other without editing any stock scritps.

Add this in the main function of your mapname.gsc after zm_usermap::main();

level thread zombs_no_collide();

Then add this to the bottom of the script
function zombs_no_collide()
{
    level flag::wait_till( "initial_blackscreen_passed" );
    while(1)
    {
        zombies = GetAiSpeciesArray("axis");
        for(k=0;k<zombies.size;k++)
        {
            zombies[k] PushActors( false );
        }
        wait(0.25);
    }
}

Link your map and you're done.

If you'd like to disable zombie gibs you can add this line after the pushactors line
zombies[k].no_gib = 1;
Disabling gibs means no crawlers can be created, but also heads don't explode and arms don't fall off. Useful if you don't want crawlers in your map.


mabifield:

Much appreciated man!


mrlednor:

thanks for this just what i needed