TUTORIAL: Adding juke behavior to zombies

Channel:
Subscribers:
549
Published on ● Video Link: https://www.youtube.com/watch?v=PZfx_EDxeLU



Call of Duty: Black Ops 4
Category:
Tutorial
Duration: 4:43
486 views
22


WARNING: THE PATH FOR THE USING GSH IS WRONG. The right one is: scriptparsetree,scripts/shared/ai/zombie.gsh

SCRIPT:
#using scripts\shared\ai_shared;
#using scripts\zm\_zm_spawner;

zm_spawner::add_custom_zombie_spawn_logic( &juke_stuff );

function juke_stuff()
{
self endon( "death" );

while ( isDefined( self ) && isAlive( self ) )
{
b_attribute_active = self ai::get_behavior_attribute( "can_juke" );

if ( !IS_TRUE( b_attribute_active ) )
ai::set_behavior_attribute( "can_juke", true );

b_attribute_active = self ai::get_behavior_attribute( "spark_behavior" );

if ( !IS_TRUE( b_attribute_active ) )
ai::set_behavior_attribute( "spark_behavior", true );

WAIT_SERVER_FRAME;
}
}


CREDIT: Harrybo21







Tags:
tutorial
juke
custom
zombie
modtools



Other Statistics

Call of Duty: Black Ops 4 Statistics For Symbo

There are 913 views in 2 videos for Call of Duty: Black Ops 4. Less than an hour worth of Call of Duty: Black Ops 4 videos were uploaded to his channel, making up less than 0.57% of the total overall content on Symbo's YouTube channel.