indicate which items are explosive

alut-include-path
Maikel de Vries 2017-02-02 21:17:03 +01:00
parent 0dbfa2dd91
commit 2807f36319
7 changed files with 16 additions and 6 deletions

View File

@ -28,6 +28,8 @@ func Hit2()
public func HasExplosionOnImpact() { return true; }
public func IsExplosive() { return true; }
local Collectible = 1;
local Name = "$Name$";
local Description = "$Description$";

View File

@ -254,6 +254,8 @@ func DoFireworks()
Explode(30);
}
public func IsExplosive() { return true; }
public func SetFuel(int new)
{
fuel = new;

View File

@ -229,6 +229,8 @@ public func DoExplode()
Explode(26);
}
public func IsExplosive() { return true; }
/*-- Scenario saving --*/
// Do not save within dynamite box - will be handled by box

View File

@ -183,6 +183,7 @@ public func OnCannonShot(object cannon)
Incinerate(nil, cannon->GetController());
}
public func IsExplosive() { return true; }
/*-- Usage --*/

View File

@ -101,14 +101,13 @@ public func Incineration(int caused_by)
public func FxFuseTimer(object target, effect, int timer)
{
CreateParticle("Fire", 0, 0, PV_Random(-10, 10), PV_Random(-20, 10), PV_Random(10, 40), Particles_Glimmer(), 6);
if(timer > 90)
{
//17-32 explosion radius
var radius = Sqrt(64 * (4 + count));
Explode(radius);
}
if (timer > 90)
Explode(GetExplosionStrength());
}
// Powderkeg explosion strength ranges from 17-32.
public func GetExplosionStrength() { return Sqrt(64 * (4 + count)); }
public func IsProjectileTarget()
{
return true;
@ -139,6 +138,7 @@ public func SaveScenarioObject(props)
func IsChemicalProduct() { return true; }
func AlchemyProcessTime() { return 100; }
public func IsExplosive() { return true; }
/*-- Properties --*/

View File

@ -33,6 +33,8 @@ public func ArrowStrength() { return 3; }
public func HasExplosionOnImpact() { return !!GetEffect("InFlight", this); }
public func IsExplosive() { return true; }
/*-- Properties --*/

View File

@ -116,6 +116,7 @@ public func HasExplosionOnImpact() { return armed; }
public func IsWeapon() { return true; }
public func IsArmoryProduct() { return true; }
public func IsGrenadeLauncherAmmo() { return true; }
public func IsExplosive() { return true; }
/*-- Properties --*/