Made airplane touchable (#1663).

Made it untouchable in all missions.
ipv6
Clonkonaut 2017-01-03 22:03:25 +01:00
parent 2ac4f2aa97
commit c423ec5de2
4 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ func Intro_Init()
this.plane->FaceRight(); this.plane->FaceRight();
this.plane->PlaneMount(this.pilot); this.plane->PlaneMount(this.pilot);
this.plane.Touchable = 0;
} }
func Intro_Start(object hero) func Intro_Start(object hero)

View File

@ -10,6 +10,7 @@ func Initialize(...)
var closest_clonk = FindObject(Find_ID(Clonk), Find_Not(Find_Owner(NO_OWNER)), Sort_Distance()); var closest_clonk = FindObject(Find_ID(Clonk), Find_Not(Find_Owner(NO_OWNER)), Sort_Distance());
SetColor(0xa04000); // Make sure it has the same color in all missions SetColor(0xa04000); // Make sure it has the same color in all missions
Dialogue->MessageBoxAll("$PlaneBuilt$", closest_clonk, true); Dialogue->MessageBoxAll("$PlaneBuilt$", closest_clonk, true);
this.Touchable = 0;
} }
return _inherited(...); return _inherited(...);
} }

View File

@ -15,6 +15,7 @@ func Intro_Init(object flagpole)
this.plane_cat = this.plane->GetCategory(); this.plane_cat = this.plane->GetCategory();
this.plane->SetCategory(C4D_StaticBack); this.plane->SetCategory(C4D_StaticBack);
this.plane->MakeInvincible(); this.plane->MakeInvincible();
this.plane.Touchable = 0;
// Pyrit the pilot // Pyrit the pilot
this.pilot = npc_pyrit = CreateObjectAbove(Clonk, 100, 100, NO_OWNER); this.pilot = npc_pyrit = CreateObjectAbove(Clonk, 100, 100, NO_OWNER);

View File

@ -1119,3 +1119,4 @@ local HitPoints = 50;
local MaxContentsCount = 20; local MaxContentsCount = 20;
local MaxPassengerCount = 3; local MaxPassengerCount = 3;
local Components = {Metal = 6, Wood = 4}; local Components = {Metal = 6, Wood = 4};
local Touchable = 1;