forked from Mirrors/openclonk
remove Flame graphics and clean up script
parent
39d6cc2c2c
commit
d19f75a5b9
|
@ -8,7 +8,6 @@ Offset=-7,-10
|
|||
Vertices=3
|
||||
VertexX=0,5,-5
|
||||
VertexY=10,8,8
|
||||
VertexFriction=60, 60, 60
|
||||
VertexFriction=60,60,60
|
||||
NoGet=1
|
||||
StretchGrowth=1
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 106 B |
|
@ -1,32 +1,43 @@
|
|||
local Name = "$Name$";
|
||||
local Description = "$Description$";
|
||||
/**
|
||||
Flame
|
||||
Spreads fire.
|
||||
|
||||
@author Maikel
|
||||
*/
|
||||
|
||||
public func Initialize()
|
||||
|
||||
protected func Initialize()
|
||||
{
|
||||
Incinerate();
|
||||
AddTimer("Burning");
|
||||
return true;
|
||||
return;
|
||||
}
|
||||
|
||||
func Burning()
|
||||
public func Burning()
|
||||
{
|
||||
if(GetCon() > 50)
|
||||
if(!Random(3))
|
||||
// Split the flame if it is large enough.
|
||||
if (GetCon() > 50 && !Random(3))
|
||||
{
|
||||
var x = Random(15);
|
||||
var o = CreateObjectAbove(GetID(), 0, 0, GetOwner());
|
||||
o->SetSpeed(x, -7);
|
||||
o->SetCon(GetCon()/2);
|
||||
var new_flame = CreateObjectAbove(GetID(), 0, 0, GetOwner());
|
||||
new_flame->SetSpeed(x, -7);
|
||||
new_flame->SetCon(GetCon() / 2);
|
||||
SetSpeed(-x, -7);
|
||||
SetCon(GetCon()/2);
|
||||
|
||||
SetCon(GetCon() / 2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Don't incinerate twice in saved scenarios
|
||||
// Don't incinerate twice in saved scenarios.
|
||||
func SaveScenarioObject(props)
|
||||
{
|
||||
if (!inherited(props, ...)) return false;
|
||||
props->Remove("Fire");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/*-- Properties --*/
|
||||
|
||||
local Name = "$Name$";
|
||||
local Description = "$Description$";
|
Loading…
Reference in New Issue