This commit is contained in:
Charles 2001-06-06 14:14:47 +00:00
parent ed42b035d1
commit 3713a14b54
7 changed files with 37 additions and 1 deletions

View File

@ -131,7 +131,8 @@ platform_src := platform \
pplayer \
pcbubble \
pdrop \
psswitch
psswitch \
plift
hazard_src := hazard \
hfalling \

View File

@ -490,6 +490,18 @@ CNpcPlatform::NPC_PLATFORM_DATA CNpcPlatform::m_data[NPC_PLATFORM_TYPE_MAX] =
0,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_LIFT_PLATFORM
2,
128,
true,
DAMAGE__NONE,
0,
2,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
};
CNpcPlatform::NPC_PLATFORM_UNIT_TYPE CNpcPlatform::mapEditConvertTable[NPC_PLATFORM_TYPE_MAX] =
@ -528,6 +540,7 @@ CNpcPlatform::NPC_PLATFORM_UNIT_TYPE CNpcPlatform::mapEditConvertTable[NPC_PLATF
NPC_COLLAPSING_ACRID_PLATFORM,
NPC_DROP_PLATFORM,
NPC_STEAM_SWITCH_PLATFORM,
NPC_LIFT_PLATFORM,
NPC_CONVEYOR_PLATFORM,
NPC_PLAYER_BUBBLE_PLATFORM,
NPC_CLAM_PLATFORM,

View File

@ -179,6 +179,10 @@
#include "platform\psswitch.h"
#endif
#ifndef __PLATFORM_PLIFT_H__
#include "platform\plift.h"
#endif
#include "fx\fx.h"
#include "fx\fxjfish.h"
@ -411,6 +415,12 @@ CNpcPlatform *CNpcPlatform::Create(int Type)
break;
}
case NPC_LIFT_PLATFORM:
{
platform = new ("lift platform") CNpcLiftPlatform;
break;
}
default:
{
ASSERT( 0 );

View File

@ -91,6 +91,7 @@ public:
NPC_COLLAPSING_ACRID_PLATFORM,
NPC_DROP_PLATFORM,
NPC_STEAM_SWITCH_PLATFORM,
NPC_LIFT_PLATFORM,
NPC_PLATFORM_TYPE_MAX,
};
enum

View File

@ -123,6 +123,7 @@ LeafRaft=19
OilRigPlatform=1
RockBridge=32
SteamSwitch=33
LiftPlatform=34
################################################
# Triggers

View File

@ -142,3 +142,5 @@ Gfx=..\..\Graphics\platforms\rockbridge\rockbridge.gin
[SteamSwitch]
Gfx=..\..\Graphics\platforms\steam_switch\steam_switch.gin
[LiftPlatform]
Gfx=..\..\Graphics\platforms\Industrial\Industrial.gin

View File

@ -1565,6 +1565,14 @@ SOURCE=..\..\..\source\platform\pleaf.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\platform\plift.cpp
# End Source File
# Begin Source File
SOURCE=..\..\..\source\platform\plift.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\platform\plinear.cpp
# End Source File
# Begin Source File