cod4-sdk/raw/maps/_humvee.gsc
2008-01-19 00:00:00 +00:00

72 lines
2.2 KiB
Text

#include maps\_vehicle;
#include maps\_vehicle_aianim;
main( model, type )
{
build_template( "humvee", model, type );
build_localinit( ::init_local );
build_deathmodel( "vehicle_humvee_camo" );
build_deathmodel( "vehicle_humvee_camo_50cal_doors" );
build_deathmodel( "vehicle_humvee_camo_50cal_nodoors" );
build_deathfx( "explosions/large_vehicle_explosion", undefined, "car_explode" );
build_treadfx();
build_life( 999, 500, 1500 );
build_team( "allies" );
build_aianims( ::setanims , ::set_vehicle_anims );
}
init_local()
{
}
#using_animtree( "vehicles" );
set_vehicle_anims( positions )
{
positions[ 0 ].vehicle_getoutanim = %uaz_driver_exit_into_run_door;
positions[ 1 ].vehicle_getoutanim = %uaz_rear_driver_exit_into_run_door;
positions[ 2 ].vehicle_getoutanim = %uaz_passenger_exit_into_run_door;
positions[ 3 ].vehicle_getoutanim = %uaz_passenger2_exit_into_run_door;
positions[ 0 ].vehicle_getinanim = %uaz_driver_enter_from_huntedrun_door;
positions[ 1 ].vehicle_getinanim = %uaz_rear_driver_enter_from_huntedrun_door;
positions[ 2 ].vehicle_getinanim = %uaz_passenger_enter_from_huntedrun_door;
positions[ 3 ].vehicle_getinanim = %uaz_passenger2_enter_from_huntedrun_door;
return positions;
}
#using_animtree( "generic_human" );
setanims()
{
positions = [];
for( i=0;i<4;i++ )
positions[ i ] = spawnstruct();
positions[ 0 ].sittag = "body_animate_jnt";
positions[ 1 ].sittag = "body_animate_jnt";
positions[ 2 ].sittag = "tag_passenger";
positions[ 3 ].sittag = "body_animate_jnt";
positions[ 0 ].idle = %humvee_driver_climb_idle;
positions[ 1 ].idle = %humvee_passenger_idle_L;
positions[ 2 ].idle = %humvee_passenger_idle_R;
positions[ 3 ].idle = %humvee_passenger_idle_R;
positions[ 0 ].getout = %humvee_driver_climb_out;
positions[ 1 ].getout = %humvee_passenger_out_L;
positions[ 2 ].getout = %humvee_passenger_out_R;
positions[ 3 ].getout = %humvee_passenger_out_R;
positions[ 0 ].getin = %humvee_driver_climb_in;
positions[ 1 ].getin = %humvee_passenger_in_L;
positions[ 2 ].getin = %humvee_passenger_in_R;
positions[ 3 ].getin = %humvee_passenger_in_R;
return positions;
}