• Welcome Guest, The new Modme forums are here! Please visit here for all recommended information.

Disable Zombie Collision With Other Zombies

ConvictioNDR

New member
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();
Code:
level thread zombs_no_collide();
Then add this to the bottom of the script
Code:
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.

 
Top