forked from Mirrors/openclonk
Shorter firestone fuse sound. Also avoid playing if the firestone explodes directly after hit.
parent
ecdcb58bf6
commit
b730a045f7
|
@ -5,17 +5,25 @@ protected func Construction()
|
|||
var graphic = Random(3);
|
||||
if(graphic)
|
||||
SetGraphics(Format("%d",graphic));
|
||||
return true;
|
||||
}
|
||||
|
||||
func Hit()
|
||||
{
|
||||
Sound("Fuse");
|
||||
ScheduleCall(this, this.Fuse, 1, 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
func Fuse()
|
||||
{
|
||||
Sound("FuseShort");
|
||||
CreateParticle("Fire", 0, 0, PV_Random(-5, 5), PV_Random(-15, 5), PV_Random(10, 40), Particles_Glimmer(), 5);
|
||||
return true;
|
||||
}
|
||||
|
||||
func Hit2()
|
||||
{
|
||||
Explode(18);
|
||||
return Explode(18);
|
||||
}
|
||||
|
||||
local Collectible = 1;
|
||||
|
|
Binary file not shown.
|
@ -53,7 +53,7 @@ thecheeseman - Hurt*, Die (http://www.freesound.org/people/thecheeseman/)
|
|||
schluppipuppie
|
||||
Oddworld - LiquidBlast1 (http://www.freesound.org/people/Oddworld/sounds/75328/)
|
||||
mbezzola - RockHit* (http://www.freesound.org/people/mbezzola/sounds/105282/)
|
||||
RytmenPinnen - Fuse/FuseLoop (http://www.freesound.org/people/RytmenPinnen/sounds/102264/)
|
||||
RytmenPinnen - Fuse/FuseLoop/FuseShort (http://www.freesound.org/people/RytmenPinnen/sounds/102264/)
|
||||
kibibu - LightMetalHit2 (http://www.freesound.org/people/kibibu/sounds/22435/)
|
||||
prozaciswack - Earthquake (http://www.freesound.org/people/prozaciswack/sounds/82722/)
|
||||
alienistcog - WoodCreak* (http://freesound.org/people/alienistcog/sounds/123712/)
|
||||
|
|
Loading…
Reference in New Issue