etqw-sdk/base/script/projectiles/ssm.script

30 lines
760 B
Text
Raw Permalink Normal View History

2008-05-29 00:00:00 +00:00
/***********************************************************************
projectile_ssm.script
***********************************************************************/
object projectile_ssm : projectile_missile {
void DoExplodeEffect_ssm( entity collisionEnt );
void DoExplodeEffect( entity collisionEnt ) {
DoExplodeEffect_ssm( collisionEnt );
}
void Idle();
}
void projectile_ssm::Idle() {
startSound( "snd_launch", SND_ANY );
playEffect( "fx_trail", "", 1 );
}
void projectile_ssm::DoExplodeEffect_ssm( entity collisionEnt ) {
float removeDelay;
SetRadiusDamageIgnoreEntity( collisionEnt );
DoRadiusDamage();
removeDelay = getFloatKeyWithDefault( "removedelay", 0.5 );
ScheduleRemoval( removeDelay );
}