This commit is contained in:
Charles 2001-06-14 21:27:25 +00:00
parent 100e11e98b
commit 1e03a74618
7 changed files with 76 additions and 2 deletions

View File

@ -161,7 +161,9 @@ hazard_src := hazard \
hrckshrd \
hinert \
hcswitch \
hbrock
hbrock \
hlog \
hsrdfish
fx_src := fx \
fxbaseanim \

View File

@ -123,6 +123,14 @@
#include "hazard\hbrock.h"
#endif
#ifndef __HAZARD_HSRDFISH_H__
#include "hazard\hsrdfish.h"
#endif
#ifndef __HAZARD_HLOG_H__
#include "hazard\hlog.h"
#endif
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -151,6 +159,8 @@ CNpcHazard::NPC_HAZARD_UNIT_TYPE CNpcHazard::mapEditConvertTable[NPC_HAZARD_TYPE
NPC_INERT_HAZARD,
NPC_CONVEYOR_SWITCH_HAZARD,
NPC_BOUNCING_ROCK_HAZARD,
NPC_SWORDFISH_HAZARD,
NPC_LOG_HAZARD,
};
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -301,6 +311,18 @@ CNpcHazard *hazard;
break;
}
case NPC_SWORDFISH_HAZARD:
{
hazard = new ("swordfish hazard") CNpcSwordfishHazard;
break;
}
case NPC_LOG_HAZARD:
{
hazard = new ("log hazard") CNpcLogHazard;
break;
}
default:
{
hazard = NULL;

View File

@ -62,6 +62,8 @@ public:
NPC_INERT_HAZARD,
NPC_CONVEYOR_SWITCH_HAZARD,
NPC_BOUNCING_ROCK_HAZARD,
NPC_SWORDFISH_HAZARD,
NPC_LOG_HAZARD,
NPC_HAZARD_TYPE_MAX,
};

View File

@ -68,6 +68,16 @@ void CNpcFireballHazard::setWaypoints( sThingHazard *ThisHazard )
m_width = maxX - minX;
m_npcPath.getPathYExtents( &minY, &maxY );
m_height = maxY - minY;
if ( ThisHazard->PointCount > 1 )
{
newXPos = (u16) *PntList;
if ( ( ( newXPos << 4 ) + 8 ) < startPos.vx )
{
m_width = -m_width;
}
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

View File

@ -193,4 +193,6 @@ SingleSpike=19
CheckPoint=20
WaterBucket=20
ConveyorSwitch=21
ExitMarker=20
ExitMarker=20
Swordfish=23
Log=24

View File

@ -279,3 +279,23 @@ Collision=0
Health=0
AttackStrength=0
Respawn=1
[Swordfish]
Gfx=..\..\graphics\hazards\swordfish\swordfish.gin
WayPoints=2
Speed=0
TurnRate=0
Collision=0
Health=0
AttackStrength=0
Respawn=1
[Log]
Gfx=..\..\graphics\hazards\log\log.gin
WayPoints=2
Speed=0
TurnRate=0
Collision=0
Health=0
AttackStrength=0
Respawn=1

View File

@ -1017,6 +1017,14 @@ SOURCE=..\..\..\source\hazard\hinert.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\hazard\hlog.cpp
# End Source File
# Begin Source File
SOURCE=..\..\..\source\hazard\hlog.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\hazard\hmasher.cpp
# End Source File
# Begin Source File
@ -1097,6 +1105,14 @@ SOURCE=..\..\..\source\hazard\hspikes.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\hazard\hsrdfish.cpp
# End Source File
# Begin Source File
SOURCE=..\..\..\source\hazard\hsrdfish.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\hazard\hstatic.h
# End Source File
# End Group