This commit is contained in:
2024-02-13 13:20:49 +01:00
commit 872504afef
1761 changed files with 871764 additions and 0 deletions

View File

@ -0,0 +1,90 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
destructible_civilian_sedan_iw6( self.script_noteworthy );
}
#using_animtree("destructibles");
destructible_civilian_sedan_iw6( var_0 )
{
common_scripts\_destructible::destructible_create( "destructible_civilian_sedan_iw6", "tag_body", 250, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_hood_fx", "fx/smoke/car_damage_whitesmoke", 0.4 );
common_scripts\_destructible::destructible_state( undefined, undefined, 200, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_hood_fx", "fx/smoke/car_damage_blacksmoke", 0.4 );
common_scripts\_destructible::destructible_state( undefined, undefined, 100, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_hood_fx", "fx/smoke/car_damage_blacksmoke_fire", 0.4 );
common_scripts\_destructible::destructible_sound( "fire_vehicle_flareup_med" );
common_scripts\_destructible::destructible_loopsound( "fire_vehicle_med" );
common_scripts\_destructible::destructible_healthdrain( 12, 0.2, 210, "allies" );
common_scripts\_destructible::destructible_state( undefined, undefined, 300, "player_only", 32, "no_melee" );
common_scripts\_destructible::destructible_loopsound( "fire_vehicle_med" );
common_scripts\_destructible::destructible_state( undefined, undefined, 400, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_fx( "TAG_DEATH_FX", "fx/explosions/vehicle_explosion_medium", 0 );
common_scripts\_destructible::destructible_sound( "car_explode" );
common_scripts\_destructible::destructible_explode( 4000, 5000, 200, 250, 50, 300, undefined, undefined, 0.3, 500 );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_destroy, #animtree, "setanimknob", undefined, undefined, "vehicle_80s_sedan1_destroy" );
common_scripts\_destructible::destructible_state( undefined, "vehicle_civilian_sedan_" + var_0 + "_destroy_iw6", undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_part( "left_wheel_01_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_flattire_lf, #animtree, "setanim" );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "left_wheel_02_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_flattire_lb, #animtree, "setanim" );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "right_wheel_01_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_flattire_rf, #animtree, "setanim" );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "right_wheel_02_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_flattire_rb, #animtree, "setanim" );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
var_1 = "TAG_GLASS_FRONT";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1 + "_FX", "fx/props/car_glass_large" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "TAG_GLASS_BACK";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1 + "_FX", "fx/props/car_glass_large" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "TAG_GLASS_LEFT_FRONT";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1 + "_FX", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "TAG_GLASS_RIGHT_FRONT";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1 + "_FX", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "TAG_GLASS_LEFT_BACK";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1 + "_FX", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "TAG_GLASS_RIGHT_BACK";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1 + "_FX", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "TAG_LIGHT_LEFT_FRONT";
common_scripts\_destructible::destructible_part( var_1, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "TAG_LIGHT_RIGHT_FRONT";
common_scripts\_destructible::destructible_part( var_1, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( undefined );
}

View File

@ -0,0 +1,60 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
destructible_civilian_sedan_iw6( self.script_noteworthy );
}
destructible_civilian_sedan_iw6( var_0 )
{
common_scripts\_destructible::destructible_create( "destructible_civilian_sedan_water_iw6", "tag_body", 250, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_state( undefined, undefined, 200, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_state( undefined, undefined, 100, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_state( undefined, undefined, 300, "player_only", 32, "no_melee" );
common_scripts\_destructible::destructible_state( undefined, undefined, 400, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_part( "left_wheel_01_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "left_wheel_02_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "right_wheel_01_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "right_wheel_02_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
var_1 = "TAG_GLASS_FRONT";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1 + "_FX", "fx/props/car_glass_large" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "TAG_GLASS_BACK";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1 + "_FX", "fx/props/car_glass_large" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "TAG_GLASS_LEFT_FRONT";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1 + "_FX", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "TAG_GLASS_RIGHT_FRONT";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1 + "_FX", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "TAG_GLASS_LEFT_BACK";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1 + "_FX", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "TAG_GLASS_RIGHT_BACK";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_D", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_1 + "_FX", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
}

View File

@ -0,0 +1,92 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
destructible_van_iw6( self.model, self.script_noteworthy );
}
destructible_van_iw6( var_0, var_1 )
{
common_scripts\_destructible::destructible_create( "destructible_van_water_iw6", "tag_body", 250, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_state( undefined, undefined, 200, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_state( undefined, undefined, 100, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_state( undefined, undefined, 300, "player_only", 32, "no_melee" );
common_scripts\_destructible::destructible_state( undefined, undefined, 400, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_part( "left_wheel_01_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "left_wheel_02_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "right_wheel_01_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "right_wheel_02_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
var_2 = "tag_glass_front";
common_scripts\_destructible::destructible_part( var_2, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_2 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_2 + "_fx", "fx/props/car_glass_large" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_2 = "tag_glass_back";
common_scripts\_destructible::destructible_part( var_2, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_2 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_2 + "_fx", "fx/props/car_glass_large" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_2 = "tag_glass_left_front";
common_scripts\_destructible::destructible_part( var_2, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_2 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_2 + "_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_2 = "tag_glass_right_front";
common_scripts\_destructible::destructible_part( var_2, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_2 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_2 + "_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_2 = "TAG_GLASS_LEFT_MID";
common_scripts\_destructible::destructible_part( var_2, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_2 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_2 + "_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_2 = "TAG_GLASS_RIGHT_MID";
common_scripts\_destructible::destructible_part( var_2, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_2 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_2 + "_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_2 = "tag_glass_left_back_02";
common_scripts\_destructible::destructible_part( var_2, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_2 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_2 + "_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_2 = "tag_glass_right_back_02";
common_scripts\_destructible::destructible_part( var_2, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_2 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_2 + "_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_2 = "tag_glass_left_front_light";
common_scripts\_destructible::destructible_part( var_2, undefined, 60, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_2, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( undefined );
var_2 = "tag_glass_right_front_light";
common_scripts\_destructible::destructible_part( var_2, undefined, 60, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_2, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( undefined );
var_2 = "tag_glass_left_back_light";
common_scripts\_destructible::destructible_part( var_2, undefined, 60, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_2, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( undefined );
var_2 = "tag_glass_right_back_light";
common_scripts\_destructible::destructible_part( var_2, undefined, 60, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_2, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( undefined );
}

View File

@ -0,0 +1,86 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
destructible_vehicle_city_car();
}
destructible_vehicle_city_car()
{
common_scripts\_destructible::destructible_create( "destructible_vehicle_city_car_water", "tag_body", 250, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_state( undefined, undefined, 200, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_state( undefined, undefined, 100, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_state( undefined, undefined, 300, "player_only", 32, "no_melee" );
common_scripts\_destructible::destructible_state( undefined, undefined, 400, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_part( "left_wheel_01_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "left_wheel_02_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "right_wheel_01_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "right_wheel_02_jnt", undefined, 20, undefined, undefined, "no_melee", 1.0, 1.0 );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
var_0 = "tag_glass_front";
common_scripts\_destructible::destructible_part( var_0, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_0 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_0 + "_fx", "fx/props/car_glass_large" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "tag_glass_back";
common_scripts\_destructible::destructible_part( var_0, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_0 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_0 + "_fx", "fx/props/car_glass_large" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "tag_glass_left_front";
common_scripts\_destructible::destructible_part( var_0, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_0 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_0 + "_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "tag_glass_right_front";
common_scripts\_destructible::destructible_part( var_0, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_0 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_0 + "_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "TAG_GLASS_LEFT_MID";
common_scripts\_destructible::destructible_part( var_0, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_0 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_0 + "_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "TAG_GLASS_RIGHT_MID";
common_scripts\_destructible::destructible_part( var_0, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_0 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_0 + "_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "TAG_GLASS_SKY";
common_scripts\_destructible::destructible_part( var_0, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_0 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_0 + "_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "tag_glass_left_front_light";
common_scripts\_destructible::destructible_part( var_0, undefined, 60, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_0, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "tag_glass_right_front_light";
common_scripts\_destructible::destructible_part( var_0, undefined, 60, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_0, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "tag_glass_left_back_light";
common_scripts\_destructible::destructible_part( var_0, undefined, 60, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_0, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "tag_glass_right_back_light";
common_scripts\_destructible::destructible_part( var_0, undefined, 60, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( var_0, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( undefined );
}

View File

@ -0,0 +1,48 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
common_scripts\_destructible::destructible_create( "electrical_transformer_large", "tag_origin", 1500, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_splash_damage_scaler( 2 );
common_scripts\_destructible::destructible_loopsound( "electrical_transformer_sparks" );
common_scripts\_destructible::destructible_loopfx( "tag_fx", "fx/explosions/electrical_transformer_spark_runner", 0.8 );
common_scripts\_destructible::destructible_healthdrain( 12, 0.2, 210, "allies" );
common_scripts\_destructible::destructible_state( undefined, undefined, 500, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopsound( "electrical_transformer_sparks" );
common_scripts\_destructible::destructible_fx( "tag_fx_junction", "fx/explosions/generator_sparks_c", 0 );
common_scripts\_destructible::destructible_loopfx( "tag_fx_junction", "fx/fire/electrical_transformer_blacksmoke_fire", 0.4 );
common_scripts\_destructible::destructible_loopfx( "tag_fx", "fx/explosions/electrical_transformer_spark_runner", 0.8 );
common_scripts\_destructible::destructible_healthdrain( 12, 0.2, 210, "allies" );
common_scripts\_destructible::destructible_state( undefined, undefined, 300, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopsound( "electrical_transformer_sparks" );
common_scripts\_destructible::destructible_loopfx( "tag_fx_junction", "fx/fire/electrical_transformer_blacksmoke_fire", 0.4 );
common_scripts\_destructible::destructible_loopfx( "tag_fx", "fx/explosions/electrical_transformer_spark_runner", 0.8 );
common_scripts\_destructible::destructible_loopfx( "tag_fx_valve", "fx/explosions/generator_spark_runner", 0.6 );
common_scripts\_destructible::destructible_healthdrain( 12, 0.2, 210, "allies" );
common_scripts\_destructible::destructible_state( undefined, undefined, 500, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_fx( "tag_death_fx", "fx/explosions/electrical_transformer_explosion", 0 );
common_scripts\_destructible::destructible_sound( "electrical_transformer01_explode" );
common_scripts\_destructible::destructible_explode( 6000, 8000, 210, 300, 20, 300, undefined, undefined, 0.3, 500 );
common_scripts\_destructible::destructible_state( undefined, "com_electrical_transformer_large_des", undefined, undefined, "no_melee" );
common_scripts\_destructible::destructible_part( "tag_door1", "com_electrical_transformer_large_dam_door1", 1500, undefined, undefined, undefined, 0, 1.0, undefined, 1 );
common_scripts\_destructible::destructible_sound( "electrical_transformer01_explode_detail" );
common_scripts\_destructible::destructible_fx( "tag_door1", "fx/explosions/generator_explosion" );
common_scripts\_destructible::destructible_physics();
common_scripts\_destructible::destructible_part( "tag_door2", "com_electrical_transformer_large_dam_door2", 150, undefined, undefined, undefined, 0, 1.0, undefined, 1 );
common_scripts\_destructible::destructible_physics();
common_scripts\_destructible::destructible_part( "tag_door3", "com_electrical_transformer_large_dam_door3", 150, undefined, undefined, undefined, 0, 1.0, undefined, 1 );
common_scripts\_destructible::destructible_physics();
common_scripts\_destructible::destructible_part( "tag_door4", "com_electrical_transformer_large_dam_door4", 150, undefined, undefined, undefined, 0, 1.0, undefined, 1 );
common_scripts\_destructible::destructible_physics();
common_scripts\_destructible::destructible_part( "tag_door5", "com_electrical_transformer_large_dam_door5", 1500, undefined, undefined, undefined, 0, 1.0, undefined, 1 );
common_scripts\_destructible::destructible_sound( "electrical_transformer01_explode_detail" );
common_scripts\_destructible::destructible_fx( "tag_door5", "fx/explosions/generator_explosion" );
common_scripts\_destructible::destructible_physics();
common_scripts\_destructible::destructible_part( "tag_door6", "com_electrical_transformer_large_dam_door6", 150, undefined, undefined, undefined, 0, 1.0, undefined, 1 );
common_scripts\_destructible::destructible_physics();
common_scripts\_destructible::destructible_part( "tag_door7", "com_electrical_transformer_large_dam_door7", 150, undefined, undefined, undefined, 0, 1.0, undefined, 1 );
common_scripts\_destructible::destructible_loopsound( "electrical_transformer_sparks" );
common_scripts\_destructible::destructible_fx( "tag_door7", "fx/props/electricbox4_explode" );
common_scripts\_destructible::destructible_physics();
}

View File

@ -0,0 +1,16 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
common_scripts\_destructible::destructible_create( "explodable_barrel", "tag_origin", 55 );
common_scripts\_destructible::destructible_state( "tag_origin", undefined, 44, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_fx( "TAG_TOP", "fx/props/barrel_ignite", 1 );
common_scripts\_destructible::destructible_loopfx( "TAG_TOP", "fx/props/barrel_fire_top", 0.4 );
common_scripts\_destructible::destructible_healthdrain( 15, 0.05, 128 );
common_scripts\_destructible::destructible_state( "tag_origin", undefined, 100, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_fx( "tag_origin", "fx/props/barrelExp", 0 );
common_scripts\_destructible::destructible_sound( "barrel_mtl_explode" );
common_scripts\_destructible::destructible_explode( 4000, 5000, 210, 250, 50, 300, undefined, undefined, 0.3, 500 );
common_scripts\_destructible::destructible_state( undefined, "com_barrel_piece2_1" );
}

View File

@ -0,0 +1,7 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
destructible_scripts\toy_chicken_common::toy_chicken_common( "" );
}

View File

@ -0,0 +1,7 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
destructible_scripts\toy_chicken_common::toy_chicken_common( "_black_white" );
}

View File

@ -0,0 +1,18 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
#using_animtree("destructibles");
toy_chicken_common( var_0 )
{
common_scripts\_destructible::destructible_create( "toy_chicken" + var_0, "tag_origin", 0, undefined, 32 );
common_scripts\_destructible::destructible_anim( %chicken_cage_loop_01, #animtree, "setanimknob", undefined, 0, "chicken_cage_loop_01", 1.6 );
common_scripts\_destructible::destructible_anim( %chicken_cage_loop_02, #animtree, "setanimknob", undefined, 1, "chicken_cage_loop_02", 1.6 );
common_scripts\_destructible::destructible_loopsound( "animal_chicken_idle_loop" );
common_scripts\_destructible::destructible_state( "tag_origin", "chicken" + var_0, 25 );
common_scripts\_destructible::destructible_fx( "tag_origin", "fx/props/chicken_exp" + var_0 );
common_scripts\_destructible::destructible_anim( %chicken_cage_death, #animtree, "setanimknob", undefined, 0, "chicken_cage_death" );
common_scripts\_destructible::destructible_anim( %chicken_cage_death_02, #animtree, "setanimknob", undefined, 1, "chicken_cage_death_02" );
common_scripts\_destructible::destructible_sound( "animal_chicken_death" );
common_scripts\_destructible::destructible_state( undefined, "chicken" + var_0, undefined, undefined, "no_melee" );
}

View File

@ -0,0 +1,7 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
destructible_scripts\toy_tv_flatscreen::toy_tvs_flatscreen_cinematic( "computer_monitor_old", destructible_scripts\toy_tv_flatscreen::removetargetted );
}

View File

@ -0,0 +1,14 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
common_scripts\_destructible::destructible_create( "toy_electricbox2", "tag_origin", 150, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_splash_damage_scaler( 15 );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/props/electricbox4_explode", undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_sound( "exp_fusebox_sparks" );
common_scripts\_destructible::destructible_explode( 1000, 2000, 32, 32, 32, 48, undefined, 0 );
common_scripts\_destructible::destructible_state( undefined, "me_electricbox2_dest", undefined, undefined, "no_melee" );
common_scripts\_destructible::destructible_part( "tag_fx", "me_electricbox2_door", undefined, undefined, undefined, undefined, 1.0, 1.0 );
common_scripts\_destructible::destructible_part( "tag_door_upper", "me_electricbox2_door_upper", undefined, undefined, undefined, undefined, 1.0, 1.0 );
}

View File

@ -0,0 +1,15 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
common_scripts\_destructible::destructible_create( "toy_filecabinet", "tag_origin", 120 );
common_scripts\_destructible::destructible_fx( "tag_drawer_lower", "fx/props/filecabinet_dam", 1, common_scripts\_destructible::damage_not( "splash" ) );
common_scripts\_destructible::destructible_sound( "exp_filecabinet" );
common_scripts\_destructible::destructible_state( undefined, "com_filecabinetblackclosed_dam", 20, undefined, undefined, "splash" );
common_scripts\_destructible::destructible_fx( "tag_drawer_upper", "fx/props/filecabinet_des", 1, "splash" );
common_scripts\_destructible::destructible_sound( "exp_filecabinet" );
common_scripts\_destructible::destructible_physics( "tag_drawer_upper", ( 50, -10, 5 ) );
common_scripts\_destructible::destructible_state( undefined, "com_filecabinetblackclosed_des", undefined, undefined, undefined, undefined, undefined, 0 );
common_scripts\_destructible::destructible_part( "tag_drawer_upper", "com_filecabinetblackclosed_drawer", undefined, undefined, undefined, undefined, 1.0, 1.0 );
}

View File

@ -0,0 +1,10 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
common_scripts\_destructible::destructible_create( "toy_furniture_coffee_table_modern_02", "tag_origin", 50, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/props/furniture_coffee_table_modern_02", 1, undefined );
common_scripts\_destructible::destructible_explode( 600, 1651, 60, 60, 10, 20, undefined, 10 );
common_scripts\_destructible::destructible_state( undefined, "furniture_coffee_table_modern_02_dest", undefined, undefined, undefined, undefined, undefined, 0 );
}

View File

@ -0,0 +1,35 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
#using_animtree("destructibles");
main()
{
common_scripts\_destructible::destructible_create( "toy_generator_on", "tag_bounce", 0, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_splash_damage_scaler( 15 );
common_scripts\_destructible::destructible_loopfx( "tag_fx2", "fx/smoke/generator_exhaust", 0.4 );
common_scripts\_destructible::destructible_anim( %generator_vibration, #animtree, "setanimknob", undefined, undefined, "generator_vibration" );
common_scripts\_destructible::destructible_loopsound( "generator_running" );
common_scripts\_destructible::destructible_state( "tag_origin", "machinery_generator", 150 );
common_scripts\_destructible::destructible_loopfx( "tag_fx2", "fx/smoke/generator_damage_whitesmoke", 0.4 );
common_scripts\_destructible::destructible_loopsound( "generator_running" );
common_scripts\_destructible::destructible_state( undefined, undefined, 75, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_fx2", "fx/smoke/generator_damage_blacksmoke", 0.4 );
common_scripts\_destructible::destructible_loopsound( "generator_damage_loop" );
common_scripts\_destructible::destructible_state( undefined, undefined, 250, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_fx2", "fx/smoke/generator_damage_blacksmoke", 0.4 );
common_scripts\_destructible::destructible_loopfx( "tag_fx4", "fx/explosions/generator_spark_runner", 0.9 );
common_scripts\_destructible::destructible_loopfx( "tag_fx3", "fx/explosions/generator_spark_runner", 0.6123 );
common_scripts\_destructible::destructible_loopsound( "generator_spark_loop" );
common_scripts\_destructible::destructible_loopsound( "generator_damage_loop" );
common_scripts\_destructible::destructible_healthdrain( 24, 0.2, 64, "allies" );
common_scripts\_destructible::destructible_state( undefined, undefined, 400, undefined, 5, "no_melee" );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/explosions/generator_explosion", 0 );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/fire/generator_des_fire" );
common_scripts\_destructible::destructible_sound( "generator01_explode" );
common_scripts\_destructible::destructible_explode( 7000, 8000, 128, 128, 16, 50, undefined, 0 );
common_scripts\_destructible::destructible_anim( %generator_explode, #animtree, "setanimknob", undefined, 0, "generator_explode" );
common_scripts\_destructible::destructible_anim( %generator_explode_02, #animtree, "setanimknob", undefined, 0, "generator_explode_02" );
common_scripts\_destructible::destructible_anim( %generator_explode_03, #animtree, "setanimknob", undefined, 0, "generator_explode_03" );
common_scripts\_destructible::destructible_state( undefined, "machinery_generator_des", undefined, undefined, "no_melee" );
}

View File

@ -0,0 +1,22 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
#using_animtree("destructibles");
main()
{
common_scripts\_destructible::destructible_create( "toy_light_ceiling_fluorescent", "tag_origin", 150, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_splash_damage_scaler( 15 );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/misc/light_fluorescent_blowout_runner" );
common_scripts\_destructible::destructible_fx( "tag_swing_fx", "fx/misc/light_blowout_swinging_runner" );
common_scripts\_destructible::destructible_lights_out( 16 );
common_scripts\_destructible::destructible_explode( 20, 2000, 64, 64, 40, 80 );
common_scripts\_destructible::destructible_anim( %light_fluorescent_swing, #animtree, "setanimknob", undefined, 0, "light_fluorescent_swing" );
common_scripts\_destructible::destructible_sound( "fluorescent_light_fall", undefined, 0 );
common_scripts\_destructible::destructible_sound( "fluorescent_light_bulb", undefined, 0 );
common_scripts\_destructible::destructible_anim( %light_fluorescent_swing_02, #animtree, "setanimknob", undefined, 1, "light_fluorescent_swing_02" );
common_scripts\_destructible::destructible_sound( "fluorescent_light_fall", undefined, 1 );
common_scripts\_destructible::destructible_sound( "fluorescent_light_bulb", undefined, 1 );
common_scripts\_destructible::destructible_anim( %light_fluorescent_null, #animtree, "setanimknob", undefined, 2, "light_fluorescent_null" );
common_scripts\_destructible::destructible_state( undefined, "me_lightfluohang_double_destroyed", undefined, undefined, "no_melee" );
}

View File

@ -0,0 +1,24 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
if ( common_scripts\utility::issp() )
{
common_scripts\_destructible::destructible_create( "toy_lv_light_fixture_01", "tag_origin", 0 );
common_scripts\_destructible::destructible_function( maps\interactive_models\hanging_light_off::hanging_light_off );
common_scripts\_destructible::destructible_state( "tag_origin", undefined, 10 );
common_scripts\_destructible::destructible_fx( "tag_fx", "props/lv_light_fixture_01_smash" );
common_scripts\_destructible::destructible_sound( "dst_small_glass_wall_lights" );
common_scripts\_destructible::destructible_explode( 0, 0, 1, 1, 0, 0 );
common_scripts\_destructible::destructible_state( "tag_origin", "lv_light_fixture_01_d" );
}
else
{
common_scripts\_destructible::destructible_create( "toy_lv_light_fixture_01", "tag_origin", 10 );
common_scripts\_destructible::destructible_fx( "tag_fx", "props/lv_light_fixture_01_smash" );
common_scripts\_destructible::destructible_sound( "dst_small_glass_wall_lights" );
common_scripts\_destructible::destructible_explode( 0, 0, 1, 1, 0, 0 );
common_scripts\_destructible::destructible_state( "tag_origin", "lv_light_fixture_01_d" );
}
}

View File

@ -0,0 +1,165 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
toy_lv_slot_machine( 0 );
}
toy_lv_slot_machine( var_0 )
{
if ( var_0 )
{
var_1 = "toy_lv_slot_machine_flicker";
var_2 = ::toy_lv_slot_machine_flashlights;
var_3 = "fx/explosions/tv_flatscreen_explosion";
var_4 = "dst_slot_machine_sparks";
var_5 = "dst_slot_machine_sign_sparks";
}
else
{
var_1 = "toy_lv_slot_machine";
var_2 = ::toy_lv_slot_machine_switchlightsoff;
var_3 = "fx/explosions/tv_flatscreen_explosion_off";
var_4 = "dst_slot_machine";
var_5 = "dst_slot_machine_sign";
}
common_scripts\_destructible::destructible_create( var_1, "tag_origin", 0 );
common_scripts\_destructible::destructible_attachmodel( undefined, "lv_slot_machine_destroyed" );
common_scripts\_destructible::destructible_function( var_2 );
common_scripts\_destructible::destructible_state();
common_scripts\_destructible::destructible_part( "tag_origin_intact", undefined, 100 );
common_scripts\_destructible::destructible_damage_threshold( 100 );
common_scripts\_destructible::destructible_fx( "tag_tokens", "fx/props/lv_slot_machine_chips_fall" );
common_scripts\_destructible::destructible_state( "tag_origin_intact", undefined, 400, undefined, undefined, "splash" );
common_scripts\_destructible::destructible_damage_threshold( 400 );
common_scripts\_destructible::destructible_notify( "stop flashing" );
common_scripts\_destructible::destructible_state( "tag_origin_d" );
common_scripts\_destructible::destructible_part( "tag_screen", undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_notify( "stop flashing" );
common_scripts\_destructible::destructible_sound( var_4, undefined, 0 );
common_scripts\_destructible::destructible_sound( var_4, undefined, 1 );
common_scripts\_destructible::destructible_sound( "dst_slot_machine_coins", undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_screen", var_3, 1, undefined, 0 );
common_scripts\_destructible::destructible_fx( "tag_screen", var_3, 1, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_tokens", "fx/props/lv_slot_machine_chips_fall", 1, undefined, 1 );
common_scripts\_destructible::destructible_state( "tag_screen_d" );
common_scripts\_destructible::destructible_part( "tag_billboard", undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_notify( "stop flashing" );
common_scripts\_destructible::destructible_sound( var_5, undefined, 0 );
common_scripts\_destructible::destructible_sound( var_5, undefined, 1 );
common_scripts\_destructible::destructible_sound( "dst_slot_machine_coins", undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_billboard", var_3, 1, undefined, 0 );
common_scripts\_destructible::destructible_fx( "tag_billboard", var_3, 1, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_tokens", "fx/props/lv_slot_machine_chips_fall", 1, undefined, 1 );
common_scripts\_destructible::destructible_state( "tag_billboard_d" );
common_scripts\_destructible::destructible_part( "tag_light", undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_notify( "stop flashing" );
common_scripts\_destructible::destructible_fx( "tag_light", var_3 );
common_scripts\_destructible::destructible_sound( var_4 );
common_scripts\_destructible::destructible_state( "tag_light_d" );
level._interactive["lv_slot_machine_flashing_tags"] = [];
level._interactive["lv_slot_machine_flashing_tags"][0] = "tag_lit_billboard";
level._interactive["lv_slot_machine_flashing_tags"][1] = "tag_lit_buttons";
level._interactive["lv_slot_machine_flashing_tags"][2] = "tag_lit_light";
if ( var_0 )
thread toy_lv_slot_machine_lightstimer();
}
toy_lv_slot_machine_lightstimer()
{
level._interactive["lv_slot_machine_LightsTimer_running"] = 1;
var_0 = 1;
for (;;)
{
if ( var_0 )
var_0 = randomint( 100 ) < 50;
else
var_0 = randomint( 100 ) < 20;
if ( var_0 )
wait( randomfloatrange( 1, 4 ) );
else
wait( randomfloatrange( 0.4, 1 ) );
level notify( "toy_lv_slot_machine_LightsOn" );
wait( randomfloatrange( 0.05, 1 ) );
level notify( "toy_lv_slot_machine_LightsOff" );
}
}
toy_lv_slot_machine_flashlights()
{
self endon( "stop flashing" );
thread toy_lv_slot_machine_stopflashing();
var_0 = 50 + randomint( 50 );
common_scripts\_destructible::destructible_get_my_breakable_light( 128 );
for (;;)
{
var_1 = level common_scripts\utility::waittill_any_return( "toy_lv_slot_machine_LightsOn", "toy_lv_slot_machine_LightsOff" );
if ( isdefined( var_1 ) )
{
if ( var_1 == "toy_lv_slot_machine_LightsOn" )
{
toy_lv_slot_machine_switchlightson( var_0, self.breakable_light );
continue;
}
toy_lv_slot_machine_switchlightsoff( var_0, self.breakable_light );
}
}
}
toy_lv_slot_machine_stopflashing( var_0 )
{
self waittill( "stop flashing" );
foreach ( var_2 in level._interactive["lv_slot_machine_flashing_tags"] )
self hidepart( var_2 );
if ( isdefined( var_0 ) )
var_0 setlightintensity( 0 );
}
toy_lv_slot_machine_switchlightson( var_0, var_1 )
{
level endon( "toy_lv_slot_machine_LightsOff" );
if ( randomint( 100 ) > var_0 )
wait( randomfloat( 0.3 ) );
foreach ( var_3 in level._interactive["lv_slot_machine_flashing_tags"] )
self showpart( var_3 );
if ( isdefined( var_1 ) )
var_1 setlightintensity( 1 );
if ( common_scripts\utility::issp() )
self playsound( "dst_slot_machine_light_flkr_on", "lightsSound", 1 );
else
self playsound( "dst_slot_machine_light_flkr_on" );
}
toy_lv_slot_machine_switchlightsoff( var_0, var_1 )
{
level endon( "toy_lv_slot_machine_LightsOn" );
if ( isdefined( var_0 ) && randomint( 100 ) > var_0 )
wait( randomfloat( 0.1 ) );
foreach ( var_3 in level._interactive["lv_slot_machine_flashing_tags"] )
self hidepart( var_3 );
if ( isdefined( var_1 ) )
var_1 setlightintensity( 0 );
if ( common_scripts\utility::issp() )
self playsound( "dst_slot_machine_light_flkr_off", "lightsSound", 1 );
else
self playsound( "dst_slot_machine_light_flkr_off" );
}

View File

@ -0,0 +1,465 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
if ( common_scripts\utility::issp() )
{
common_scripts\_destructible::destructible_create( "toy_lv_trash_can_vegas", "tag_origin", 0 );
common_scripts\_destructible::destructible_function( ::lv_trash_can_vegas );
main_sp();
}
else
{
common_scripts\_destructible::destructible_create( "toy_lv_trash_can_vegas", "tag_origin", 0 );
common_scripts\_destructible::destructible_state( "tag_origin", undefined, 100 );
common_scripts\_destructible::destructible_part( "tag_lid", "lv_trash_can_vegas_lid", 50 );
common_scripts\_destructible::destructible_physics( "tag_lid", ( 20, 0, 0 ) );
common_scripts\_destructible::destructible_state( undefined );
}
}
attachlid()
{
self attach( "lv_trash_can_vegas_lid", "tag_lid" );
}
main_sp()
{
var_0 = spawnstruct();
var_0.parts = [];
var_0.parts[0] = spawnstruct();
var_0.parts[0].states = [];
var_0.parts[0].states[0] = spawnstruct();
var_0.parts[0].states[0].model = undefined;
var_0.parts[0].states[0].health = undefined;
var_0.parts[0].states[0].damagecallback[0] = ::serverphysicsobj;
var_0.parts[0].states[0].damagecallback[1] = ::lv_trash_can_vegas_hitfloor;
var_0.parts[0].states[1] = spawnstruct();
var_0.parts[0].states[1].model = undefined;
var_0.parts[0].states[1].health = undefined;
var_0.parts[0].states[1].fx = [];
var_0.parts[0].states[1].fxtags = [];
var_0.parts[0].states[1].fx[0] = loadfx( "fx/props/trash_bottles" );
var_0.parts[0].states[1].fxtags[0] = "tag_fx";
var_0.parts[0].states[1].fx[1] = loadfx( "fx/misc/trash_spiral_runner" );
var_0.parts[0].states[1].fxtags[1] = "tag_fx";
var_0.parts[0].states[1].sound = "exp_trashcan_sweet";
var_0.parts[0].states[1].soundtag = "tag_fx";
var_0.parts[1] = spawnstruct();
var_0.parts[1].tag = "tag_lid";
var_0.parts[1].parent = 0;
var_0.parts[1].alsodamageparent = 1;
var_0.parts[1].states = [];
var_0.parts[1].states[0] = spawnstruct();
var_0.parts[1].states[0].model = undefined;
var_0.parts[1].states[0].showtag = 1;
var_0.parts[1].states[0].health = 50;
var_0.parts[1].states[1] = spawnstruct();
var_0.parts[1].states[1].physicsmodel = "lv_trash_can_vegas_lid";
var_0.parts[1].states[1].physicspush = ( 0, 0, 2000 );
var_0.parts[1].states[1].physicsmultiply = 40;
var_0.parts[1].states[1].physicsdefaultdamagepush = ( 0, 0, 0 );
var_0.parts[1].states[1].health = undefined;
var_0.impacttag = "tag_lid";
var_0.impactradius = 15;
var_0.parts[0].hitfloorstate = 1;
var_0.parts[1].hitfloorstate = 1;
var_0.clipmovementtolerance = 8;
if ( !isdefined( level._interactive ) )
level._interactive = [];
level._interactive["lv_trash_can_vegas"] = var_0;
}
lv_trash_can_vegas()
{
var_0 = spawnstruct();
var_0.obj = self;
var_0.type = "lv_trash_can_vegas";
interactive_fall_and_break( var_0 );
}
interactive_fall_and_break( var_0 )
{
var_1 = level._interactive[var_0.type];
var_0.partstates = [];
var_0.parthealths = [];
for ( var_2 = 0; var_2 < var_1.parts.size; var_2++ )
{
var_0.partstates[var_2] = 0;
var_0.parthealths[var_2] = var_1.parts[var_2].states[0].health;
}
foreach ( var_4 in var_1.parts )
{
foreach ( var_6 in var_4.states )
{
if ( isdefined( var_6.model ) )
precachemodel( var_6.model );
if ( isdefined( var_6.physicsmodel ) )
precachemodel( var_6.physicsmodel );
}
}
foreach ( var_4 in var_1.parts )
{
if ( isdefined( var_4.alsodamageparent ) )
{
}
}
var_0 fandb_handles_collision_brushes();
for (;;)
{
var_0.obj waittill( "damage", var_11, var_12, var_13, var_14, var_15, var_16, var_17, var_18 );
var_15 = destructible_modifydamagetype( var_15 );
var_11 = destructible_modifydamageamount( var_11, var_15, var_12 );
if ( isdefined( var_18 ) )
var_19 = fandb_findpartindex( var_0.type, var_18 );
else
var_19 = 0;
fandb_dodamage( var_0, var_19, var_11, var_12, var_13, var_14, var_15 );
}
}
destructible_modifydamagetype( var_0 )
{
var_1 = common_scripts\_destructible::getdamagetype( var_0 );
return var_1;
}
destructible_modifydamageamount( var_0, var_1, var_2 )
{
if ( common_scripts\utility::issp() )
var_0 = var_0 * 0.5;
else
var_0 = var_0 * 1.0;
if ( common_scripts\_destructible::is_shotgun_damage( var_2, var_1 ) )
{
if ( common_scripts\utility::issp() )
var_0 = var_0 * 8.0;
else
var_0 = var_0 * 4.0;
}
if ( var_1 == "splash" )
{
if ( common_scripts\utility::issp() )
var_0 = var_0 * 9.0;
else
var_0 = var_0 * 13.0;
}
return var_0;
}
fandb_dodamage( var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7 )
{
if ( var_6 == "splash" )
{
var_8 = [];
for ( var_9 = 0; var_9 < level._interactive[var_0.type].parts.size; var_9++ )
var_8[var_9] = var_9;
}
else
{
var_8 = [];
var_8[0] = var_1;
}
foreach ( var_11 in var_8 )
{
var_12 = level._interactive[var_0.type].parts[var_11];
var_13 = var_2;
while ( var_13 > 0 && isdefined( var_12.states[var_0.partstates[var_11]] ) )
{
if ( isdefined( var_12.states[var_0.partstates[var_11]].damagecallback ) )
{
foreach ( var_15 in var_12.states[var_0.partstates[var_11]].damagecallback )
var_0 [[ var_15 ]]( var_2, var_3, var_4, var_5, var_6 );
}
if ( isdefined( var_0.parthealths[var_11] ) )
{
var_0.parthealths[var_11] = var_0.parthealths[var_11] - var_13;
if ( var_0.parthealths[var_11] < 0 )
{
var_13 = -1 * var_0.parthealths[var_11];
var_0 fandb_gotostate( var_11, var_0.partstates[var_11] + 1, var_2, var_3, var_5, var_4, var_6 );
}
else
var_13 = 0;
continue;
}
var_13 = 0;
}
if ( var_6 != "splash" && ( isdefined( var_12.alsodamageparent ) && var_12.alsodamageparent > 0 ) && ( !isdefined( var_7 ) || var_12.parent != var_7 ) )
fandb_dodamage( var_0, var_12.parent, var_2 * var_12.alsodamageparent, var_3, var_4, var_5, var_6, var_11 );
}
}
fandb_gotostate( var_0, var_1, var_2, var_3, var_4, var_5, var_6 )
{
var_7 = level._interactive[self.type].parts[var_0];
var_8 = self.partstates[var_0];
self.partstates[var_0] = var_1;
var_9 = var_8 != var_1;
if ( isdefined( var_7.states[self.partstates[var_0]] ) )
{
if ( var_9 )
{
self.parthealths[var_0] = var_7.states[self.partstates[var_0]].health;
var_10 = var_7.states[self.partstates[var_0]];
if ( isdefined( var_2 ) )
var_2 = var_2 * var_10.physicsmultiply;
self.obj fandb_throwphysicsmodel( var_10.physicsmodel, var_7.tag, var_10.physicspush, var_10.physicsdefaultdamagepush, var_2, var_4, var_5 );
self.obj fandb_fx( var_10.fx, var_10.fxtags );
self.obj fandb_playsound( var_10.sound, var_10.soundtag );
}
self.obj fandb_hideshowtag( var_7.states[self.partstates[var_0]].showtag, var_7.tag );
}
}
fandb_hideshowtag( var_0, var_1, var_2 )
{
if ( isdefined( var_1 ) )
{
if ( isdefined( var_0 ) && var_0 )
{
if ( isdefined( var_2 ) )
self showpart( var_1, var_2 );
else
self showpart( var_1 );
}
else if ( isdefined( var_2 ) )
self hidepart( var_1, var_2 );
else
self hidepart( var_1 );
}
}
fandb_throwphysicsmodel( var_0, var_1, var_2, var_3, var_4, var_5, var_6 )
{
if ( isdefined( var_0 ) )
{
var_7 = spawn( "script_model", self gettagorigin( var_1 ) );
var_7.angles = self gettagangles( var_1 );
var_7 setmodel( var_0 );
if ( isdefined( var_5 ) )
var_8 = var_5;
else
var_8 = var_7.origin;
if ( ( !isdefined( var_6 ) || !isdefined( var_4 ) ) && isdefined( var_3 ) )
var_9 = var_3;
else
var_9 = ( 0, 0, 0 );
if ( isdefined( var_2 ) )
{
var_9 = var_9 + var_2;
var_8 = ( var_8 + var_7.origin ) / 2;
}
var_10 = var_9[0] * anglestoforward( var_7.angles );
var_11 = var_9[1] * anglestoright( var_7.angles );
var_12 = var_9[2] * anglestoup( var_7.angles );
var_9 = var_10 + var_11 + var_12;
if ( isdefined( var_6 ) && isdefined( var_4 ) )
var_9 = var_9 + var_6 * var_4;
var_7 physicslaunchclient( var_8, var_9 );
}
}
fandb_fx( var_0, var_1 )
{
if ( isdefined( var_0 ) )
{
for ( var_2 = 0; var_2 < var_0.size; var_2++ )
{
var_3 = self gettagorigin( var_1[var_2] );
var_4 = self gettagangles( var_1[var_2] );
var_5 = anglestoforward( var_4 );
var_6 = anglestoup( var_4 );
playfx( var_0[var_2], var_3, var_5, var_6 );
}
}
}
fandb_playsound( var_0, var_1 )
{
if ( isdefined( var_0 ) )
thread common_scripts\_destructible::play_sound( var_0, var_1 );
}
fandb_findpartindex( var_0, var_1 )
{
var_2 = level._interactive[var_0];
for ( var_3 = 0; var_3 < var_2.parts.size; var_3++ )
{
if ( isdefined( var_2.parts[var_3].tag ) && var_2.parts[var_3].tag == var_1 )
return var_3;
}
return 0;
}
serverphysicsobj( var_0, var_1, var_2, var_3, var_4 )
{
var_5 = spawn( "script_model", self.obj.origin );
var_5.angles = self.obj.angles;
var_5 setmodel( self.obj.model );
var_2 = vectornormalize( var_2 );
if ( var_4 != "splash" )
var_0 = var_0 * 10;
else
var_0 = var_0 * 2;
var_5 physicslaunchserver( var_3, var_0 * var_2 );
self.obj delete();
self.obj = var_5;
self.obj setcandamage( 1 );
for ( var_6 = 0; var_6 < level._interactive[self.type].parts.size; var_6++ )
fandb_gotostate( var_6, self.partstates[var_6] );
}
fandb_handles_collision_brushes()
{
if ( !isdefined( self.obj.target ) )
return;
var_0 = getentarray( self.obj.target, "targetname" );
var_1 = [];
var_1["pre"] = common_scripts\_destructible::collision_brush_pre_explosion;
foreach ( var_3 in var_0 )
{
if ( !isdefined( var_3.script_destruct_collision ) )
continue;
self thread [[ var_1[var_3.script_destruct_collision] ]]( var_3 );
}
}
lv_trash_can_vegas_hitfloor( var_0, var_1, var_2, var_3, var_4 )
{
if ( !isdefined( self.startedfallmonitor ) )
{
self.startedfallmonitor = 1;
thread lv_trash_can_vegas_hitfloor_internal();
}
}
lv_trash_can_vegas_hitfloor_internal()
{
var_0 = level._interactive["lv_trash_can_vegas"];
if ( !isdefined( self.impacttagstartpos ) )
{
self.impacttagstartpos = self.obj gettagorigin( var_0.impacttag );
self.groundheight = self.obj.origin[2];
}
var_1 = self.impacttagstartpos;
var_2 = var_1;
var_3 = 0;
var_4 = 1;
var_5 = "intact";
var_6 = level.time;
while ( var_4 || var_5 != "deleted" )
{
wait 0.05;
var_1 = self.obj gettagorigin( var_0.impacttag );
if ( distancesquared( var_1, var_2 ) < 0.0625 )
{
var_3++;
if ( var_3 > 20 )
{
self.startedfallmonitor = undefined;
break;
}
}
else
var_3 = 0;
var_2 = var_1;
if ( var_4 && var_1[2] - self.groundheight < var_0.impactradius )
{
var_4 = 0;
lv_trash_can_vegas_throwlid();
var_5 = "deleted";
self notify( "exploded" );
}
if ( var_5 != "deleted" )
{
if ( distancesquared( var_1, self.impacttagstartpos ) > var_0.clipmovementtolerance * var_0.clipmovementtolerance )
{
if ( var_5 == "intact" )
{
var_5 = "pending";
var_6 = gettime();
}
else
{
if ( var_6 > gettime() )
var_6 = gettime() - 1000;
if ( gettime() - var_6 >= 1000 )
{
var_5 = "deleted";
self notify( "exploded" );
}
}
continue;
}
var_5 = "intact";
}
}
}
lv_trash_can_vegas_throwlid()
{
var_0 = level._interactive["lv_trash_can_vegas"];
var_1 = spawn( "script_model", self.obj.origin );
var_1.angles = self.obj.angles;
var_1 setmodel( self.obj.model );
var_1 physicslaunchclient();
self.obj delete();
self.obj = var_1;
self.obj setcandamage( 1 );
for ( var_2 = 0; var_2 < var_0.parts.size; var_2++ )
fandb_gotostate( var_2, var_0.parts[var_2].hitfloorstate );
}

View File

@ -0,0 +1,13 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
common_scripts\_destructible::destructible_create( "toy_sp_panel_box", "tag_origin", 15, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_splash_damage_scaler( 15 );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/props/electricbox4_explode", undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_sound( "exp_fusebox_sparks" );
common_scripts\_destructible::destructible_explode( 5, 2000, 132, 32, 1, 1, undefined, 0 );
common_scripts\_destructible::destructible_state( undefined, "me_electricbox4_dest", undefined, undefined, "no_melee" );
common_scripts\_destructible::destructible_part( "tag_fx", "me_electricbox4_door", undefined, undefined, undefined, undefined, 1.0, 1.0 );
}

View File

@ -0,0 +1,23 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
common_scripts\_destructible::destructible_create( "toy_statue_sphinx_small", "tag_origin", 1000, undefined, undefined, "splash" );
sphinx_part_setup( "beard" );
sphinx_part_setup( "forehead" );
sphinx_part_setup( "head_l" );
sphinx_part_setup( "leg_fl" );
sphinx_part_setup( "leg_fr" );
sphinx_part_setup( "leg_rl" );
sphinx_part_setup( "leg_rr" );
}
sphinx_part_setup( var_0 )
{
common_scripts\_destructible::destructible_part( "tag_" + var_0, "statue_sphinx_small_dest_" + var_0 + "_dust", 30 );
common_scripts\_destructible::destructible_physics( "tag_" + var_0, ( 20, 0, 0 ) );
common_scripts\_destructible::destructible_fx( "tag_" + var_0, "fx/props/statue_sphinx_small_impact" );
common_scripts\_destructible::destructible_sound( "dst_sphinx_statue" );
common_scripts\_destructible::destructible_state();
}

View File

@ -0,0 +1,27 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
common_scripts\_destructible::destructible_create( "toy_transformer_small01", "tag_origin", 75, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_splash_damage_scaler( 15 );
common_scripts\_destructible::destructible_loopfx( "tag_fx", "fx/smoke/car_damage_whitesmoke", 0.4 );
common_scripts\_destructible::destructible_state( undefined, undefined, 75, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_fx", "fx/smoke/car_damage_blacksmoke", 0.4 );
common_scripts\_destructible::destructible_state( undefined, undefined, 150, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_fx", "fx/explosions/transformer_spark_runner", 0.5 );
common_scripts\_destructible::destructible_loopsound( "transformer_spark_loop" );
common_scripts\_destructible::destructible_healthdrain( 24, 0.2 );
common_scripts\_destructible::destructible_state( undefined, undefined, 250, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_fx", "fx/explosions/transformer_spark_runner", 0.5 );
common_scripts\_destructible::destructible_loopfx( "tag_fx", "fx/fire/transformer_small_blacksmoke_fire", 0.4 );
common_scripts\_destructible::destructible_sound( "transformer01_flareup_med" );
common_scripts\_destructible::destructible_loopsound( "transformer_spark_loop" );
common_scripts\_destructible::destructible_healthdrain( 24, 0.2, 150, "allies" );
common_scripts\_destructible::destructible_state( undefined, undefined, 400, undefined, 5, "no_melee" );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/explosions/transformer_explosion", 0 );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/fire/firelp_small_pm" );
common_scripts\_destructible::destructible_sound( "transformer01_explode" );
common_scripts\_destructible::destructible_explode( 7000, 8000, 150, 256, 16, 100, undefined, 0 );
common_scripts\_destructible::destructible_state( undefined, "utility_transformer_small01_dest", undefined, undefined, "no_melee" );
}

View File

@ -0,0 +1,13 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
common_scripts\_destructible::destructible_create( "toy_trashcan_metal_closed", "tag_origin", 120, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/props/garbage_spew_des", 1, "splash" );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/props/garbage_spew", 1, common_scripts\_destructible::damage_not( "splash" ) );
common_scripts\_destructible::destructible_sound( "exp_trashcan_sweet" );
common_scripts\_destructible::destructible_explode( 600, 651, 1, 1, 10, 20 );
common_scripts\_destructible::destructible_state( undefined, "com_trashcan_metal_with_trash", undefined, undefined, undefined, undefined, undefined, 0 );
common_scripts\_destructible::destructible_part( "tag_fx", "com_trashcan_metalLID", undefined, undefined, undefined, undefined, 1.0, 1.0 );
}

View File

@ -0,0 +1,92 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
toy_tvs_flatscreen( var_0, var_1, var_2 )
{
if ( isdefined( self.script_noteworthy ) && self.script_noteworthy == "blackice_tv" )
{
common_scripts\_destructible::destructible_create( "toy_tv_flatscreen_" + var_1 + var_0, "tag_origin", 1, undefined, 32 );
common_scripts\_destructible::destructible_splash_damage_scaler( 1 );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/explosions/tv_flatscreen_explosion_quick" );
common_scripts\_destructible::destructible_sound( "tv_shot_burst" );
common_scripts\_destructible::destructible_explode( 20, 2000, 10, 10, 3, 3, undefined, 15 );
common_scripts\_destructible::destructible_state( undefined, "ma_flatscreen_tv_" + var_1 + "broken_" + var_0, 200, undefined, "no_melee" );
}
else
{
common_scripts\_destructible::destructible_create( "toy_tv_flatscreen_" + var_1 + var_0, "tag_origin", 1, undefined, 32 );
common_scripts\_destructible::destructible_splash_damage_scaler( 1 );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/explosions/tv_flatscreen_explosion" );
common_scripts\_destructible::destructible_sound( "tv_shot_burst" );
common_scripts\_destructible::destructible_explode( 20, 2000, 10, 10, 3, 3, undefined, 15 );
common_scripts\_destructible::destructible_state( undefined, "ma_flatscreen_tv_" + var_1 + "broken_" + var_0, 200, undefined, "no_melee" );
}
}
toy_tvs_flatscreen_sturdy( var_0, var_1, var_2 )
{
if ( isdefined( self.script_noteworthy ) && self.script_noteworthy == "blackice_tv" )
{
common_scripts\_destructible::destructible_create( "toy_tv_flatscreen_" + var_1 + var_0 + "_sturdy", "tag_origin", 1, undefined, 1280 );
common_scripts\_destructible::destructible_splash_damage_scaler( 0.5 );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/explosions/tv_flatscreen_explosion_quick" );
common_scripts\_destructible::destructible_sound( "tv_shot_burst" );
common_scripts\_destructible::destructible_explode( 20, 2000, 10, 10, 3, 3, undefined, 15 );
common_scripts\_destructible::destructible_state( undefined, "ma_flatscreen_tv_" + var_1 + "broken_" + var_0, 200, undefined, "no_melee" );
}
else
{
common_scripts\_destructible::destructible_create( "toy_tv_flatscreen_" + var_1 + var_0 + "_sturdy", "tag_origin", 1, undefined, 1280 );
common_scripts\_destructible::destructible_splash_damage_scaler( 0.5 );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/explosions/tv_flatscreen_explosion_cheap" );
common_scripts\_destructible::destructible_sound( "tv_shot_burst" );
common_scripts\_destructible::destructible_explode( 20, 2000, 10, 10, 3, 3, undefined, 15 );
common_scripts\_destructible::destructible_state( undefined, "ma_flatscreen_tv_" + var_1 + "broken_" + var_0, 200, undefined, "no_melee" );
}
}
toy_tvs_flatscreen_cinematic( var_0, var_1 )
{
if ( isdefined( self.script_noteworthy ) && self.script_noteworthy == "blackice_tv" )
{
common_scripts\_destructible::destructible_create( "toy_" + var_0, "tag_origin", 1, undefined, 32 );
common_scripts\_destructible::destructible_splash_damage_scaler( 1 );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/explosions/tv_flatscreen_explosion_quick" );
common_scripts\_destructible::destructible_sound( "tv_shot_burst" );
common_scripts\_destructible::destructible_explode( 20, 2000, 10, 10, 3, 3, undefined, 15 );
common_scripts\_destructible::destructible_function( var_1 );
common_scripts\_destructible::destructible_state( undefined, var_0 + "_d", 200, undefined, "no_melee" );
}
else
{
common_scripts\_destructible::destructible_create( "toy_" + var_0, "tag_origin", 1, undefined, 32 );
common_scripts\_destructible::destructible_splash_damage_scaler( 1 );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/explosions/tv_flatscreen_explosion" );
common_scripts\_destructible::destructible_sound( "tv_shot_burst" );
common_scripts\_destructible::destructible_explode( 20, 2000, 10, 10, 3, 3, undefined, 15 );
common_scripts\_destructible::destructible_function( var_1 );
common_scripts\_destructible::destructible_state( undefined, var_0 + "_d", 200, undefined, "no_melee" );
}
}
removetargetted()
{
if ( isdefined( self.target ) )
{
var_0 = getentarray( self.target, "targetname" );
if ( isdefined( var_0 ) )
{
foreach ( var_2 in var_0 )
{
if ( var_2.classname == "light_omni" || var_2.classname == "light_spot" )
{
var_2 setlightintensity( 0 );
continue;
}
var_2 delete();
}
}
}
}

View File

@ -0,0 +1,7 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
destructible_scripts\toy_tv_flatscreen::toy_tvs_flatscreen_cinematic( "tv_flatscreen_large", destructible_scripts\toy_tv_flatscreen::removetargetted );
}

View File

@ -0,0 +1,7 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
destructible_scripts\toy_tv_flatscreen::toy_tvs_flatscreen_cinematic( "tv_flatscreen_large_scale1pt5", destructible_scripts\toy_tv_flatscreen::removetargetted );
}

View File

@ -0,0 +1,7 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
destructible_scripts\toy_tv_flatscreen::toy_tvs_flatscreen( "02", "wallmount_" );
}

View File

@ -0,0 +1,7 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
destructible_scripts\toy_tv_flatscreen::toy_tvs_flatscreen_cinematic( "tv_video_monitor", destructible_scripts\toy_tv_flatscreen::removetargetted );
}

View File

@ -0,0 +1,12 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
common_scripts\_destructible::destructible_create( "toy_usa_gas_station_trash_bin_02", "tag_origin", 120, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_fx( "tag_fx_high", "fx/props/garbage_spew_des", 1, "splash" );
common_scripts\_destructible::destructible_fx( "tag_fx_high", "fx/props/garbage_spew", 1, common_scripts\_destructible::damage_not( "splash" ) );
common_scripts\_destructible::destructible_explode( 600, 651, 1, 1, 10, 20 );
common_scripts\_destructible::destructible_state( undefined, "usa_gas_station_trash_bin_02_base", undefined, undefined, undefined, undefined, undefined, 0 );
common_scripts\_destructible::destructible_part( "tag_fx_high", "usa_gas_station_trash_bin_02_lid", undefined, undefined, undefined, undefined, 1.0, 1.0 );
}

View File

@ -0,0 +1,19 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
#using_animtree("destructibles");
main()
{
common_scripts\_destructible::destructible_create( "toy_wall_fan", "tag_swivel", 0, undefined, 32 );
common_scripts\_destructible::destructible_anim( %wall_fan_rotate, #animtree, "setanimknob", undefined, undefined, "wall_fan_rotate" );
common_scripts\_destructible::destructible_loopsound( "wall_fan_fanning" );
common_scripts\_destructible::destructible_state( "tag_wobble", "cs_wallfan1", 150 );
common_scripts\_destructible::destructible_anim( %wall_fan_stop, #animtree, "setanimknob", undefined, undefined, "wall_fan_wobble" );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/explosions/wallfan_explosion_dmg" );
common_scripts\_destructible::destructible_sound( "wall_fan_sparks" );
common_scripts\_destructible::destructible_state( "tag_wobble", "cs_wallfan1", 150, undefined, "no_melee" );
common_scripts\_destructible::destructible_fx( "tag_fx", "fx/explosions/wallfan_explosion_des" );
common_scripts\_destructible::destructible_sound( "wall_fan_break" );
common_scripts\_destructible::destructible_state( undefined, "cs_wallfan1_dmg", undefined, undefined, "no_melee" );
}

View File

@ -0,0 +1,103 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
#using_animtree("destructibles");
main()
{
common_scripts\_destructible::destructible_create( "vehicle_pickup", "tag_body", 300, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_hood_fx", "fx/smoke/car_damage_whitesmoke", 0.4 );
common_scripts\_destructible::destructible_state( undefined, undefined, 200, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_hood_fx", "fx/smoke/car_damage_blacksmoke", 0.4 );
common_scripts\_destructible::destructible_state( undefined, undefined, 100, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_hood_fx", "fx/smoke/car_damage_blacksmoke_fire", 0.4 );
common_scripts\_destructible::destructible_sound( "fire_vehicle_flareup_med" );
common_scripts\_destructible::destructible_loopsound( "fire_vehicle_med" );
common_scripts\_destructible::destructible_healthdrain( 15, 0.25, 210, "allies" );
common_scripts\_destructible::destructible_state( undefined, undefined, 300, "player_only", 32, "no_melee" );
common_scripts\_destructible::destructible_loopsound( "fire_vehicle_med" );
common_scripts\_destructible::destructible_state( undefined, undefined, 400, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_fx( "tag_death_fx", "fx/explosions/small_vehicle_explosion", 0 );
common_scripts\_destructible::destructible_sound( "car_explode" );
common_scripts\_destructible::destructible_explode( 4000, 5000, 210, 250, 50, 300, undefined, undefined, 0.3, 500 );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_destroy, #animtree, "setanimknob", undefined, undefined, "vehicle_80s_sedan1_destroy" );
common_scripts\_destructible::destructible_state( undefined, "vehicle_pickup_destroyed", undefined, 32, "no_melee" );
var_0 = "tag_hood";
common_scripts\_destructible::destructible_part( var_0, "vehicle_pickup_hood", 800, undefined, undefined, undefined, 1.0, 2.5 );
common_scripts\_destructible::destructible_part( "left_wheel_01_jnt", undefined, 20, undefined, undefined, "no_melee" );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_flattire_lf, #animtree, "setanim" );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "left_wheel_02_jnt", undefined, 20, undefined, undefined, "no_melee" );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_flattire_lb, #animtree, "setanim" );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "right_wheel_01_jnt", undefined, 20, undefined, undefined, "no_melee" );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_flattire_rf, #animtree, "setanim" );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "right_wheel_02_jnt", undefined, 20, undefined, undefined, "no_melee" );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_flattire_rb, #animtree, "setanim" );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "tag_door_left_front", "vehicle_pickup_door_LF", undefined, undefined, undefined, undefined, 1.0, 1.0 );
common_scripts\_destructible::destructible_part( "tag_door_right_front", "vehicle_pickup_door_RF", undefined, undefined, undefined, undefined, 1.0, 1.0 );
var_0 = "tag_glass_front";
common_scripts\_destructible::destructible_part( var_0, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_0 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_glass_front_fx", "fx/props/car_glass_large" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "tag_glass_back";
common_scripts\_destructible::destructible_part( var_0, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_0 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_glass_back_fx", "fx/props/car_glass_large" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "tag_glass_left_front";
common_scripts\_destructible::destructible_part( var_0, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_0 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_glass_left_front_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "tag_glass_right_front";
common_scripts\_destructible::destructible_part( var_0, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_0 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_glass_right_front_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "tag_glass_left_back";
common_scripts\_destructible::destructible_part( var_0, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_0 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_glass_left_back_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "tag_glass_right_back";
common_scripts\_destructible::destructible_part( var_0, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_0 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_glass_right_back_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_0 = "tag_light_left_front";
common_scripts\_destructible::destructible_part( var_0, undefined, 20, undefined, undefined, undefined, 0.5 );
common_scripts\_destructible::destructible_fx( var_0, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( var_0 + "_d" );
var_0 = "tag_light_right_front";
common_scripts\_destructible::destructible_part( var_0, undefined, 20, undefined, undefined, undefined, 0.5 );
common_scripts\_destructible::destructible_fx( var_0, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( var_0 + "_d" );
var_0 = "tag_light_left_back";
common_scripts\_destructible::destructible_part( var_0, undefined, 20 );
common_scripts\_destructible::destructible_fx( var_0, "fx/props/car_glass_brakelight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( var_0 + "_d" );
var_0 = "tag_light_right_back";
common_scripts\_destructible::destructible_part( var_0, undefined, 20 );
common_scripts\_destructible::destructible_fx( var_0, "fx/props/car_glass_brakelight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( var_0 + "_d" );
common_scripts\_destructible::destructible_part( "tag_bumper_front", undefined, undefined, undefined, undefined, undefined, 1.0, 1.0 );
common_scripts\_destructible::destructible_part( "tag_bumper_back", undefined, undefined, undefined, undefined, undefined, undefined, 1.0 );
common_scripts\_destructible::destructible_part( "tag_mirror_left", "vehicle_pickup_mirror_L", 40, undefined, undefined, undefined, undefined, 1.0 );
common_scripts\_destructible::destructible_physics();
common_scripts\_destructible::destructible_part( "tag_mirror_right", "vehicle_pickup_mirror_R", 40, undefined, undefined, undefined, undefined, 1.0 );
common_scripts\_destructible::destructible_physics();
}

View File

@ -0,0 +1,103 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
#using_animtree("destructibles");
vehicle_small_hatch( var_0 )
{
common_scripts\_destructible::destructible_create( "vehicle_small_hatch_" + var_0, "tag_body", 250, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_hood_fx", "fx/smoke/car_damage_whitesmoke", 0.4 );
common_scripts\_destructible::destructible_state( undefined, undefined, 200, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_hood_fx", "fx/smoke/car_damage_blacksmoke", 0.4 );
common_scripts\_destructible::destructible_state( undefined, undefined, 100, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_loopfx( "tag_hood_fx", "fx/smoke/car_damage_blacksmoke_fire", 0.4 );
common_scripts\_destructible::destructible_sound( "fire_vehicle_flareup_med" );
common_scripts\_destructible::destructible_loopsound( "fire_vehicle_med" );
common_scripts\_destructible::destructible_healthdrain( 15, 0.25, 150, "allies" );
common_scripts\_destructible::destructible_state( undefined, undefined, 300, "player_only", 32, "no_melee" );
common_scripts\_destructible::destructible_loopsound( "fire_vehicle_med" );
common_scripts\_destructible::destructible_state( undefined, undefined, 400, undefined, 32, "no_melee" );
common_scripts\_destructible::destructible_fx( "tag_death_fx", "fx/explosions/small_vehicle_explosion", 0 );
common_scripts\_destructible::destructible_sound( "car_explode" );
common_scripts\_destructible::destructible_explode( 4000, 5000, 150, 250, 50, 300, undefined, undefined, 0.3, 500 );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_destroy, #animtree, "setanimknob", undefined, undefined, "vehicle_80s_sedan1_destroy" );
common_scripts\_destructible::destructible_state( undefined, "vehicle_small_hatch_" + var_0 + "_destroyed", undefined, 32, "no_melee" );
var_1 = "tag_hood";
common_scripts\_destructible::destructible_part( var_1, "vehicle_small_hatch_" + var_0 + "_hood", 800, undefined, undefined, undefined, 1.0, 1.5 );
common_scripts\_destructible::destructible_part( "left_wheel_01_jnt", undefined, 20, undefined, undefined, "no_melee" );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_flattire_lf, #animtree, "setanim" );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "left_wheel_02_jnt", undefined, 20, undefined, undefined, "no_melee" );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_flattire_lb, #animtree, "setanim" );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "right_wheel_01_jnt", undefined, 20, undefined, undefined, "no_melee" );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_flattire_rf, #animtree, "setanim" );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "right_wheel_02_jnt", undefined, 20, undefined, undefined, "no_melee" );
common_scripts\_destructible::destructible_anim( %vehicle_80s_sedan1_flattire_rb, #animtree, "setanim" );
common_scripts\_destructible::destructible_sound( "veh_tire_deflate", "bullet" );
common_scripts\_destructible::destructible_part( "tag_door_left_front", "vehicle_small_hatch_" + var_0 + "_door_LF", undefined, undefined, undefined, undefined, 1.0, 1.0 );
common_scripts\_destructible::destructible_part( "tag_door_right_front", "vehicle_small_hatch_" + var_0 + "_door_RF", undefined, undefined, undefined, undefined, 1.0, 1.0 );
var_1 = "tag_glass_front";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_glass_front_fx", "fx/props/car_glass_large" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "tag_glass_back";
common_scripts\_destructible::destructible_part( var_1, undefined, 40, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_glass_back_fx", "fx/props/car_glass_large" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "tag_glass_left_front";
common_scripts\_destructible::destructible_part( var_1, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_glass_left_front_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "tag_glass_right_front";
common_scripts\_destructible::destructible_part( var_1, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_glass_right_front_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "tag_glass_left_back";
common_scripts\_destructible::destructible_part( var_1, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_glass_left_back_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "tag_glass_right_back";
common_scripts\_destructible::destructible_part( var_1, undefined, 20, undefined, undefined, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_state( var_1 + "_d", undefined, 60, undefined, undefined, undefined, 1 );
common_scripts\_destructible::destructible_fx( "tag_glass_right_back_fx", "fx/props/car_glass_med" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_large" );
common_scripts\_destructible::destructible_state( undefined );
var_1 = "tag_light_left_front";
common_scripts\_destructible::destructible_part( var_1, undefined, 20, undefined, undefined, undefined, 0.5 );
common_scripts\_destructible::destructible_fx( var_1, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( var_1 + "_d" );
var_1 = "tag_light_right_front";
common_scripts\_destructible::destructible_part( var_1, undefined, 20, undefined, undefined, undefined, 0.5 );
common_scripts\_destructible::destructible_fx( var_1, "fx/props/car_glass_headlight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( var_1 + "_d" );
var_1 = "tag_light_left_back";
common_scripts\_destructible::destructible_part( var_1, undefined, 20, undefined, undefined, undefined, 0.5 );
common_scripts\_destructible::destructible_fx( var_1, "fx/props/car_glass_brakelight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( var_1 + "_d" );
var_1 = "tag_light_right_back";
common_scripts\_destructible::destructible_part( var_1, undefined, 20, undefined, undefined, undefined, 0.5 );
common_scripts\_destructible::destructible_fx( var_1, "fx/props/car_glass_brakelight" );
common_scripts\_destructible::destructible_sound( "veh_glass_break_small" );
common_scripts\_destructible::destructible_state( var_1 + "_d" );
common_scripts\_destructible::destructible_part( "tag_bumper_front", undefined, undefined, undefined, undefined, undefined, 1.0 );
common_scripts\_destructible::destructible_part( "tag_bumper_back", undefined, undefined, undefined, undefined, undefined, 0.5 );
common_scripts\_destructible::destructible_part( "tag_mirror_left", "vehicle_small_hatch_" + var_0 + "_mirror_L", 40, undefined, undefined, undefined, undefined, 1.0 );
common_scripts\_destructible::destructible_physics();
common_scripts\_destructible::destructible_part( "tag_mirror_right", "vehicle_small_hatch_" + var_0 + "_mirror_R", 40, undefined, undefined, undefined, undefined, 1.0 );
common_scripts\_destructible::destructible_physics();
}

View File

@ -0,0 +1,7 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
destructible_scripts\vehicle_small_hatch::vehicle_small_hatch( "blue" );
}

View File

@ -0,0 +1,7 @@
// IW6 GSC SOURCE
// Generated by https://github.com/xensik/gsc-tool
main()
{
destructible_scripts\vehicle_small_hatch::vehicle_small_hatch( "white" );
}