tutorial 3: fix wind and fine-tune intro

shapetextures
Maikel de Vries 2015-12-27 17:05:31 +01:00
parent d063e02a3c
commit 537f7c5f82
3 changed files with 5 additions and 4 deletions

View File

@ -20,4 +20,4 @@ SkyScrollMode=2
Climate=0,0,0,100
StartSeason=0,0,0,100
YearSpeed=0,0,0,100
Wind=1,100,-100,100
Wind=60,20,40,80

View File

@ -70,6 +70,7 @@ private func InitVillageEntrance()
// A wooden cabin ruin on fire.
var cabin = CreateObjectAbove(Ruin_WoodenCabin, 370, 352);
cabin.Plane = -400;
for (var x = -20; x <= 20; x += 10)
CreateObjectAbove(Flame, cabin->GetX() + x, cabin->GetY());
cabin->AddScorch(-30, 15, 45, 32, 1200);

View File

@ -58,18 +58,18 @@ public func FxIntFiremanStart(object target, proplist effect, bool temp)
public func FxIntFiremanTimer(object target, proplist effect, int time)
{
if (time == 20)
target->SetCommand("MoveTo", nil, 320, 348);
target->SetCommand("MoveTo", nil, 300, 364);
if (effect.kill_time == nil && !target->GetCommand() && time > 50)
{
target->SetDir(DIR_Right);
target->Contents(0)->ControlUse(target, 10, -2);
target->Contents(0)->ControlUse(target, 10, -12);
effect.kill_time = time + 20;
}
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_OK;