This commit is contained in:
Charles 2001-05-29 15:29:56 +00:00
parent 7ed15bcf97
commit 4c1f906c80
9 changed files with 65 additions and 4 deletions

View File

@ -126,7 +126,8 @@ platform_src := platform \
pfishhk3 \
prbridge \
pbaloon \
ptrpdoor
ptrpdoor \
pconveyr
hazard_src := hazard \
hfalling \

View File

@ -60,7 +60,7 @@ void CNpcFallingNoRespawnPlatform::processMovement( int _frames )
if ( groundHeight < moveY )
{
if ( ( CGameScene::getCollision()->getCollisionBlock( Pos.vx, Pos.vy + groundHeight + 8 ) & COLLISION_TYPE_MASK ) != (7<<COLLISION_TYPE_FLAG_SHIFT) )
if ( ( CGameScene::getCollision()->getCollisionBlock( Pos.vx, Pos.vy + groundHeight + 8 ) & COLLISION_TYPE_MASK ) != COLLISION_TYPE_FLAG_DEATH )
{
moveY = groundHeight;
moveX = 2 * _frames;

View File

@ -1,6 +1,6 @@
/*=========================================================================
pfgen.h
pfgen.cpp
Author: CRB
Created:

View File

@ -407,6 +407,30 @@ CNpcPlatform::NPC_PLATFORM_DATA CNpcPlatform::m_data[NPC_PLATFORM_TYPE_MAX] =
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_CONVEYOR_GENERATOR
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
10,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_CONVEYOR_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_PLAYER_BUBBLE_PLATFORM
3,
128,
@ -464,6 +488,8 @@ CNpcPlatform::NPC_PLATFORM_UNIT_TYPE CNpcPlatform::mapEditConvertTable[NPC_PLATF
NPC_RISING_BRIDGE_PLATFORM,
NPC_BALLOON_BRIDGE_PLATFORM,
NPC_TRAPDOOR_PLATFORM,
NPC_CONVEYOR_GENERATOR,
NPC_CONVEYOR_PLATFORM,
NPC_PLAYER_BUBBLE_PLATFORM,
NPC_CLAM_PLATFORM,
};

View File

@ -163,6 +163,14 @@
#include "platform\ptrpdoor.h"
#endif
#ifndef __PLATFORM_PCONVEYR_H__
#include "platform\pconveyr.h"
#endif
#ifndef __PLATFORM_PFALLNOR_H__
#include "platform\pfallnor.h"
#endif
#include "fx\fx.h"
#include "fx\fxjfish.h"
@ -229,7 +237,7 @@ CNpcPlatform *CNpcPlatform::Create(int Type)
case NPC_CRATE_PLATFORM:
case NPC_FALLING_PLATFORM:
{
platform = new ("falling platform") CNpcFallingPlatform;
platform = new ("falling platform") CNpcFallingNoRespawnPlatform;
break;
}
@ -365,6 +373,18 @@ CNpcPlatform *CNpcPlatform::Create(int Type)
break;
}
case NPC_CONVEYOR_GENERATOR:
{
platform = new ("conveyor generator") CNpcConveyorPlatformGenerator;
break;
}
case NPC_CONVEYOR_PLATFORM:
{
platform = new ("conveyor platform") CNpcConveyorPlatform;
break;
}
default:
{
ASSERT( 0 );

View File

@ -84,6 +84,8 @@ public:
NPC_RISING_BRIDGE_PLATFORM,
NPC_BALLOON_BRIDGE_PLATFORM,
NPC_TRAPDOOR_PLATFORM,
NPC_CONVEYOR_GENERATOR,
NPC_CONVEYOR_PLATFORM,
NPC_PLAYER_BUBBLE_PLATFORM,
NPC_CLAM_PLATFORM,
NPC_PLATFORM_TYPE_MAX,

View File

@ -115,6 +115,7 @@ BalloonBridge=28
TrapdoorLeft=29
TrapdoorRight=29
SinkingCrate=8
ConveyorCrateGenerator=30
################################################
# Triggers

View File

@ -120,3 +120,6 @@ Gfx=..\..\Graphics\platforms\trapdoor_wooden\trapdoor_woodenr.gin
[SinkingCrate]
Gfx=..\..\Graphics\platforms\Crate\Crate.gin
[ConveyorCrateGenerator]
Gfx=..\..\Graphics\platforms\wooden_Crate\wooden_Crate.gin

View File

@ -1321,6 +1321,14 @@ SOURCE=..\..\..\source\platform\pclam.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\platform\pconveyr.cpp
# End Source File
# Begin Source File
SOURCE=..\..\..\source\platform\pconveyr.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\platform\pdual.cpp
# End Source File
# Begin Source File