IW4-Dump-Files/animscripts/traverse/crouch_jump_down_40.gsc

27 lines
863 B
Plaintext

// crouch_jump_down_40.gsc
// Makes the character roll down off a ledge at no higher than 32 units. Designed for 40 units but should work for 44-70 or so.
#using_animtree( "generic_human" );
main()
{
// do not do code prone in this script
self.desired_anim_pose = "crouch";
animscripts\utility::UpdateAnimPose();
self endon( "killanimscript" );
self.a.movement = "walk";
self traverseMode( "nogravity" );
// orient to the Negotiation start node
startnode = self getnegotiationstartnode();
assert( isdefined( startnode ) );
self OrientMode( "face angle", startnode.angles[ 1 ] );
//crouch_jump_down_40
self setFlaggedAnimKnoballRestart( "stepanim", %jump_across_72, %body, 1, .1, 1 );
wait .15;
// self waittillmatch("stepanim", "gravity on");
self traverseMode( "gravity" );
self animscripts\shared::DoNoteTracks( "stepanim" );
}