mirror of
https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer.git
synced 2025-06-10 18:57:58 -05:00
40 lines
737 B
Plaintext
40 lines
737 B
Plaintext
// T6 GSC SOURCE
|
|
// Decompiled by https://github.com/xensik/gsc-tool
|
|
|
|
main()
|
|
{
|
|
destructibles = getentarray( "destructible", "targetname" );
|
|
|
|
foreach ( dest in destructibles )
|
|
{
|
|
if ( dest.destructibledef == "veh_t6_dlc_electric_cart_destructible" )
|
|
{
|
|
dest thread cart_fire_think();
|
|
dest thread cart_death_think();
|
|
}
|
|
}
|
|
}
|
|
|
|
cart_fire_think()
|
|
{
|
|
self endon( "car_dead" );
|
|
|
|
for (;;)
|
|
{
|
|
self waittill( "broken", event );
|
|
|
|
if ( event == "destructible_car_fire" )
|
|
{
|
|
self playloopsound( "amb_fire_med" );
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
cart_death_think()
|
|
{
|
|
self waittill( "car_dead" );
|
|
|
|
self playsound( "exp_barrel" );
|
|
}
|