This commit is contained in:
parent
100e11e98b
commit
1e03a74618
7 changed files with 76 additions and 2 deletions
|
@ -161,7 +161,9 @@ hazard_src := hazard \
|
||||||
hrckshrd \
|
hrckshrd \
|
||||||
hinert \
|
hinert \
|
||||||
hcswitch \
|
hcswitch \
|
||||||
hbrock
|
hbrock \
|
||||||
|
hlog \
|
||||||
|
hsrdfish
|
||||||
|
|
||||||
fx_src := fx \
|
fx_src := fx \
|
||||||
fxbaseanim \
|
fxbaseanim \
|
||||||
|
|
|
@ -123,6 +123,14 @@
|
||||||
#include "hazard\hbrock.h"
|
#include "hazard\hbrock.h"
|
||||||
#endif
|
#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_INERT_HAZARD,
|
||||||
NPC_CONVEYOR_SWITCH_HAZARD,
|
NPC_CONVEYOR_SWITCH_HAZARD,
|
||||||
NPC_BOUNCING_ROCK_HAZARD,
|
NPC_BOUNCING_ROCK_HAZARD,
|
||||||
|
NPC_SWORDFISH_HAZARD,
|
||||||
|
NPC_LOG_HAZARD,
|
||||||
};
|
};
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -301,6 +311,18 @@ CNpcHazard *hazard;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case NPC_SWORDFISH_HAZARD:
|
||||||
|
{
|
||||||
|
hazard = new ("swordfish hazard") CNpcSwordfishHazard;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case NPC_LOG_HAZARD:
|
||||||
|
{
|
||||||
|
hazard = new ("log hazard") CNpcLogHazard;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
hazard = NULL;
|
hazard = NULL;
|
||||||
|
|
|
@ -62,6 +62,8 @@ public:
|
||||||
NPC_INERT_HAZARD,
|
NPC_INERT_HAZARD,
|
||||||
NPC_CONVEYOR_SWITCH_HAZARD,
|
NPC_CONVEYOR_SWITCH_HAZARD,
|
||||||
NPC_BOUNCING_ROCK_HAZARD,
|
NPC_BOUNCING_ROCK_HAZARD,
|
||||||
|
NPC_SWORDFISH_HAZARD,
|
||||||
|
NPC_LOG_HAZARD,
|
||||||
|
|
||||||
NPC_HAZARD_TYPE_MAX,
|
NPC_HAZARD_TYPE_MAX,
|
||||||
};
|
};
|
||||||
|
|
|
@ -68,6 +68,16 @@ void CNpcFireballHazard::setWaypoints( sThingHazard *ThisHazard )
|
||||||
m_width = maxX - minX;
|
m_width = maxX - minX;
|
||||||
m_npcPath.getPathYExtents( &minY, &maxY );
|
m_npcPath.getPathYExtents( &minY, &maxY );
|
||||||
m_height = maxY - minY;
|
m_height = maxY - minY;
|
||||||
|
|
||||||
|
if ( ThisHazard->PointCount > 1 )
|
||||||
|
{
|
||||||
|
newXPos = (u16) *PntList;
|
||||||
|
|
||||||
|
if ( ( ( newXPos << 4 ) + 8 ) < startPos.vx )
|
||||||
|
{
|
||||||
|
m_width = -m_width;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -193,4 +193,6 @@ SingleSpike=19
|
||||||
CheckPoint=20
|
CheckPoint=20
|
||||||
WaterBucket=20
|
WaterBucket=20
|
||||||
ConveyorSwitch=21
|
ConveyorSwitch=21
|
||||||
ExitMarker=20
|
ExitMarker=20
|
||||||
|
Swordfish=23
|
||||||
|
Log=24
|
|
@ -279,3 +279,23 @@ Collision=0
|
||||||
Health=0
|
Health=0
|
||||||
AttackStrength=0
|
AttackStrength=0
|
||||||
Respawn=1
|
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
|
||||||
|
|
|
@ -1017,6 +1017,14 @@ SOURCE=..\..\..\source\hazard\hinert.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin 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
|
SOURCE=..\..\..\source\hazard\hmasher.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
@ -1097,6 +1105,14 @@ SOURCE=..\..\..\source\hazard\hspikes.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin 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
|
SOURCE=..\..\..\source\hazard\hstatic.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Group
|
# End Group
|
||||||
|
|
Loading…
Add table
Reference in a new issue