cod5-sdk/raw/maps/_sdk.gsc
2008-11-20 00:00:00 +00:00

100 lines
3.6 KiB
Text

// _sdk.gsc
// Sets up the behavior for the SDKFZ.
#include maps\_vehicle_aianim;
#include maps\_vehicle;
main(model,type, do_build_death)
{
build_template( "sdk", model, type );
build_localinit( ::init_local );
build_deathmodel( "vehicle_german_armored_car", "vehicle_ger_wheeled_sdk222_d", undefined, do_build_death );
build_deathmodel( "vehicle_ger_wheeled_sdk222", "vehicle_ger_wheeled_sdk222_d", undefined, do_build_death );
build_deathmodel( "vehicle_ger_wheeled_sdk222_cammo", "vehicle_ger_wheeled_sdk222_d", undefined, do_build_death );
build_deathmodel( "vehicle_ger_wheeled_sdk222_winter", "vehicle_ger_wheeled_sdk222_d", undefined, do_build_death );
//build_shoot_shock( "tankblast" );
//build_drive( %abrams_movement, %abrams_movement_backwards, 10 );
build_exhaust( "vehicle/exhaust/fx_exhaust_sherman" );
//build_deckdust( "dust/abrams_desk_dust" );
build_deathfx( "vehicle/vexplosion/fx_vexplode_ger_sdkfz222", "tag_origin", "explo_metal_rand" );
build_deathquake( 0.6, 1.0, 600 );
build_treadfx( type );
build_life( 999, 500, 1500 );
build_rumble( "tank_rumble", 0.15, 4.5, 600, 1, 1 );
build_team( "axis" );
build_mainturret();
build_compassicon();
build_aianims( ::setanims , ::set_vehicle_anims );
//build_frontarmor( .33 ); //regens this much of the damage from attacks to the front
}
// Anthing specific to this vehicle, used globally.
init_local()
{
}
// Animtion set up for vehicle anims
#using_animtree ("tank");
set_vehicle_anims(positions)
{
return positions;
}
// Animation set up for AI on the tank
// 2/21/07 - THESE ARE TEMP ANIMS
#using_animtree ("generic_human");
setanims ()
{
positions = [];
for(i=0;i<10;i++)
positions[i] = spawnstruct();
positions[0].sittag = "tag_guy1";
positions[1].sittag = "tag_guy2";
positions[2].sittag = "tag_guy3";
positions[3].sittag = "tag_guy4";
positions[4].sittag = "tag_guy5";
positions[5].sittag = "tag_guy6";
positions[6].sittag = "tag_guy7";
positions[7].sittag = "tag_guy8";
positions[8].sittag = "tag_guy9";
positions[9].sittag = "tag_guy10";
//
// positions[0].idle = %humvee_passenger_idle_R;
// positions[1].idle = %humvee_passenger_idle_R;
// positions[2].idle = %humvee_passenger_idle_R;
// positions[3].idle = %humvee_passenger_idle_R;
// positions[4].idle = %humvee_passenger_idle_R;
// positions[5].idle = %humvee_passenger_idle_R;
// positions[6].idle = %humvee_passenger_idle_R;
// positions[7].idle = %humvee_passenger_idle_R;
// positions[8].idle = %humvee_passenger_idle_R;
// positions[9].idle = %humvee_passenger_idle_R;
//
// positions[0].getout = %humvee_passenger_out_R;
// positions[1].getout = %humvee_passenger_out_R;
// positions[2].getout = %humvee_passenger_out_R;
// positions[3].getout = %humvee_passenger_out_R;
// positions[4].getout = %humvee_passenger_out_R;
// positions[5].getout = %humvee_passenger_out_R;
// positions[6].getout = %humvee_passenger_out_R;
// positions[7].getout = %humvee_passenger_out_R;
// positions[8].getout = %humvee_passenger_out_R;
// positions[9].getout = %humvee_passenger_out_R;
//
// positions[0].getin = %humvee_passenger_in_R;
// positions[1].getin = %humvee_passenger_in_R;
// positions[2].getin = %humvee_passenger_in_R;
// positions[3].getin = %humvee_passenger_in_R;
// positions[4].getin = %humvee_passenger_in_R;
// positions[5].getin = %humvee_passenger_in_R;
// positions[6].getin = %humvee_passenger_in_R;
// positions[7].getin = %humvee_passenger_in_R;
// positions[8].getin = %humvee_passenger_in_R;
// positions[9].getin = %humvee_passenger_in_R;
//
return positions;
}