// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool

#using_animtree("generic_human");

main()
{
    self.desired_anim_pose = "crouch";
    animscripts\utility::updateanimpose();
    self endon( "killanimscript" );
    self traversemode( "nogravity" );
    self traversemode( "noclip" );
    var_0 = self getnegotiationendnode();
    var_1 = var_0.origin;
    var_2 = self getnegotiationstartnode();
    self orientmode( "face angle", var_2.angles[1] );
    var_3 = 1;

    if ( isdefined( self.moveplaybackrate ) )
        var_3 = self.moveplaybackrate;

    self setflaggedanimknoballrestart( "climbanim", %ladder_climbon, %body, 1, 0.1, var_3 );
    animscripts\shared::donotetracks( "climbanim" );
    var_4 = %ladder_climbdown;
    self setflaggedanimknoballrestart( "climbanim", var_4, %body, 1, 0.1, var_3 );
    var_5 = getmovedelta( var_4, 0, 1 );
    var_6 = var_5[2] * var_3 / getanimlength( var_4 );
    var_7 = ( var_1[2] - self.origin[2] ) / var_6;
    animscripts\notetracks::donotetracksfortime( var_7, "climbanim" );
    self traversemode( "gravity" );
    self.a.movement = "stop";
    self.a.pose = "stand";
}
