66 lines
1.3 KiB
Plaintext
66 lines
1.3 KiB
Plaintext
|
#include maps\_vehicle;
|
||
|
#using_animtree( "vehicles" );
|
||
|
main( model, type, no_death )
|
||
|
{
|
||
|
build_template( "ambulance", model, type );
|
||
|
build_localinit( ::init_local );
|
||
|
build_deathmodel( "vehicle_ambulance_russian" );
|
||
|
build_radiusdamage( ( 0, 0, 32 ), 300, 200, 100, false );
|
||
|
build_drive( %uaz_driving_idle_forward, %uaz_driving_idle_backward, 10 );
|
||
|
build_deathquake( 1, 1.6, 500 );
|
||
|
build_treadfx();
|
||
|
build_life( 999, 500, 1500 );
|
||
|
build_team( "axis" );
|
||
|
build_aianims( ::setanims, ::set_vehicle_anims );
|
||
|
build_compassicon( "automobile", false );
|
||
|
}
|
||
|
|
||
|
init_local()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
set_vehicle_anims( positions )
|
||
|
{
|
||
|
return positions;
|
||
|
}
|
||
|
|
||
|
#using_animtree( "generic_human" );
|
||
|
|
||
|
setanims()
|
||
|
{
|
||
|
positions = [];
|
||
|
for ( i = 0;i < 2;i++ )
|
||
|
positions[ i ] = spawnstruct();
|
||
|
|
||
|
positions[ 0 ].sittag = "TAG_DRIVER";
|
||
|
positions[ 1 ].sittag = "TAG_PASSENGER";
|
||
|
|
||
|
positions[ 0 ].idle = %uaz_driver_idle_drive;
|
||
|
positions[ 1 ].idle = %uaz_passenger_idle_drive;
|
||
|
|
||
|
return positions;
|
||
|
}
|
||
|
|
||
|
/*QUAKED script_vehicle_ambulance_russian (1 0 0) (-16 -16 -24) (16 16 32) USABLE SPAWNER
|
||
|
|
||
|
put this in your GSC:
|
||
|
maps\_ambulance::main( "vehicle_ambulance_russian" );
|
||
|
|
||
|
and these lines in your CSV:
|
||
|
include,vehicle_ambulance_russian
|
||
|
sound,vehicle_ambulance,vehicle_standard,all_sp
|
||
|
|
||
|
defaultmdl="vehicle_ambulance_russian"
|
||
|
default:"vehicletype" "ambulance"
|
||
|
*/
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|