forked from Mirrors/openclonk
tutorial 3: fix wind and fine-tune intro
parent
d063e02a3c
commit
537f7c5f82
|
@ -20,4 +20,4 @@ SkyScrollMode=2
|
||||||
Climate=0,0,0,100
|
Climate=0,0,0,100
|
||||||
StartSeason=0,0,0,100
|
StartSeason=0,0,0,100
|
||||||
YearSpeed=0,0,0,100
|
YearSpeed=0,0,0,100
|
||||||
Wind=1,100,-100,100
|
Wind=60,20,40,80
|
||||||
|
|
|
@ -70,6 +70,7 @@ private func InitVillageEntrance()
|
||||||
|
|
||||||
// A wooden cabin ruin on fire.
|
// A wooden cabin ruin on fire.
|
||||||
var cabin = CreateObjectAbove(Ruin_WoodenCabin, 370, 352);
|
var cabin = CreateObjectAbove(Ruin_WoodenCabin, 370, 352);
|
||||||
|
cabin.Plane = -400;
|
||||||
for (var x = -20; x <= 20; x += 10)
|
for (var x = -20; x <= 20; x += 10)
|
||||||
CreateObjectAbove(Flame, cabin->GetX() + x, cabin->GetY());
|
CreateObjectAbove(Flame, cabin->GetX() + x, cabin->GetY());
|
||||||
cabin->AddScorch(-30, 15, 45, 32, 1200);
|
cabin->AddScorch(-30, 15, 45, 32, 1200);
|
||||||
|
|
|
@ -58,18 +58,18 @@ public func FxIntFiremanStart(object target, proplist effect, bool temp)
|
||||||
public func FxIntFiremanTimer(object target, proplist effect, int time)
|
public func FxIntFiremanTimer(object target, proplist effect, int time)
|
||||||
{
|
{
|
||||||
if (time == 20)
|
if (time == 20)
|
||||||
target->SetCommand("MoveTo", nil, 320, 348);
|
target->SetCommand("MoveTo", nil, 300, 364);
|
||||||
|
|
||||||
if (effect.kill_time == nil && !target->GetCommand() && time > 50)
|
if (effect.kill_time == nil && !target->GetCommand() && time > 50)
|
||||||
{
|
{
|
||||||
target->SetDir(DIR_Right);
|
target->SetDir(DIR_Right);
|
||||||
target->Contents(0)->ControlUse(target, 10, -2);
|
target->Contents(0)->ControlUse(target, 10, -12);
|
||||||
effect.kill_time = time + 20;
|
effect.kill_time = time + 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (effect.kill_time != nil && time > effect.kill_time)
|
if (effect.kill_time != nil && time > effect.kill_time)
|
||||||
{
|
{
|
||||||
RemoveAll(Find_ID(Flame), Find_AtRect(AbsX(300), AbsY(300), 100, 100));
|
RemoveAll(Find_ID(Flame), Find_AtRect(AbsX(300), AbsY(300), 140, 100));
|
||||||
return FX_Execute_Kill;
|
return FX_Execute_Kill;
|
||||||
}
|
}
|
||||||
return FX_OK;
|
return FX_OK;
|
||||||
|
|
Loading…
Reference in New Issue