43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
|
// Destructible initialization script
|
||
|
#include maps\_destructible;
|
||
|
#using_animtree( "vehicles" );
|
||
|
|
||
|
init()
|
||
|
{
|
||
|
set_function_pointer( "explosion_anim", "dest_mercedesw136b", ::get_explosion_animation );
|
||
|
set_function_pointer( "flattire_anim", "dest_mercedesw136b", ::get_flattire_animation );
|
||
|
|
||
|
build_destructible_radiusdamage( "dest_mercedesw136b", undefined, 240, 210, 60, true );
|
||
|
build_destructible_deathquake( "dest_mercedesw136b", 0.4, 1.0, 500 );
|
||
|
|
||
|
set_pre_explosion( "dest_mercedesw136b", "destructibles/fx_dest_fire_car_fade_40" );
|
||
|
}
|
||
|
|
||
|
get_explosion_animation()
|
||
|
{
|
||
|
return %v_mercedesw136_explode;
|
||
|
}
|
||
|
|
||
|
get_flattire_animation( broken_notify )
|
||
|
{
|
||
|
if( broken_notify == "flat_tire_left_rear" )
|
||
|
{
|
||
|
return %v_mercedesw136_flattire_lb;
|
||
|
}
|
||
|
else if( broken_notify == "flat_tire_right_rear" )
|
||
|
{
|
||
|
return %v_mercedesw136_flattire_rb;
|
||
|
}
|
||
|
else if( broken_notify == "flat_tire_left_front" )
|
||
|
{
|
||
|
return %v_mercedesw136_flattire_lf;
|
||
|
}
|
||
|
else if( broken_notify == "flat_tire_right_front" )
|
||
|
{
|
||
|
return %v_mercedesw136_flattire_rf;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
empty()
|
||
|
{
|
||
|
}
|