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

107 lines
3.7 KiB
Text

#include maps\_vehicle_aianim;
#include maps\_vehicle;
main( model, type, no_mantle )
{
build_template( "tiger", model, type );
build_localinit( ::init_local );
build_deathmodel( "vehicle_ger_tracked_king_tiger", "vehicle_ger_tracked_king_tiger_d" );
build_deathmodel( "vehicle_ger_tracked_king_tiger_winter", "vehicle_ger_tracked_king_tiger_winter" );
build_shoot_shock( "tankblast" );
build_shoot_rumble( "tank_fire" );
//build_drive( %abrams_movement, %abrams_movement_backwards, 10 );
build_exhaust( "vehicle/exhaust/fx_exhaust_tiger" );
//build_deckdust( "dust/abrams_desk_dust" );
build_deathfx( "vehicle/vexplosion/fx_vexplode_ger_kingtiger", "tag_origin", "explo_metal_rand" );
build_deathquake( 0.8, 1.0, 600 );
build_turret( "tiger_coaxial_mg", "front_turretgun", "weapon_machinegun_tiger", false );
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
// MikeD (1/17/2008): Tank mantling support
if( !IsDefined( no_mantle ) || !no_mantle )
{
level thread maps\_tankmantle::build_tank_mantle( model, type );
}
}
// Anthing specific to this vehicle, used globally.
init_local()
{
if( !IsDefined( self.script_nomantle ) || !self.script_nomantle )
{
self maps\_tankmantle::init();
}
}
// 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;
}