This commit is contained in:
parent
233f82f307
commit
b436643901
8 changed files with 26 additions and 12 deletions
|
@ -310,7 +310,8 @@ triggers_src := trigger \
|
|||
tgstop \
|
||||
thazard \
|
||||
tbgeyser \
|
||||
thazwalk
|
||||
thazwalk \
|
||||
tsemit
|
||||
|
||||
utils_src := utils \
|
||||
sincos \
|
||||
|
|
|
@ -140,16 +140,8 @@ void CNpcSteerableBarrelPlatform::processMovement( int _frames )
|
|||
m_currentSpeed = 0;
|
||||
}
|
||||
|
||||
if ( moveX > 0 )
|
||||
{
|
||||
m_rotation += 30 * _frames;
|
||||
m_rotation += ( m_currentSpeed * 30 * _frames ) >> 10;
|
||||
m_rotation &= 4095;
|
||||
}
|
||||
else if ( moveX < 0 )
|
||||
{
|
||||
m_rotation -= 30 * _frames;
|
||||
m_rotation &= 4095;
|
||||
}
|
||||
|
||||
if ( m_contact )
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*=========================================================================
|
||||
|
||||
tbemit.h
|
||||
tbemit.cpp
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
|
|
|
@ -79,6 +79,10 @@
|
|||
#include "triggers\tbgeyser.h"
|
||||
#endif
|
||||
|
||||
#ifndef __TRIGGERS_TSEMIT_H__
|
||||
#include "triggers\tsemit.h"
|
||||
#endif
|
||||
|
||||
#ifndef __GAME_GAME_H__
|
||||
#include "game\game.h"
|
||||
#endif
|
||||
|
@ -162,6 +166,11 @@ CTrigger *trigger;
|
|||
trigger=(CBubbleGeyserEmitterTrigger*)new( "BubbleGeyserEmitterTrigger") CBubbleGeyserEmitterTrigger();
|
||||
break;
|
||||
|
||||
// Steam emitter
|
||||
case TRIGGER_STEAM_EMITTER:
|
||||
trigger=(CSteamEmitterTrigger*)new("SteamEmitterTrigger") CSteamEmitterTrigger();
|
||||
break;
|
||||
|
||||
case TRIGGER_PLATFORM:
|
||||
trigger = (CPlatformTrigger*)new ("PlatformTrigger") CPlatformTrigger();
|
||||
break;
|
||||
|
|
|
@ -39,6 +39,7 @@ enum TRIGGER_TYPE
|
|||
TRIGGER_INTERMITTENT_LEFT_FLAME_EMITTER,
|
||||
TRIGGER_INTERMITTENT_DOWN_FLAME_EMITTER,
|
||||
TRIGGER_BUBBLE_GEYSER_EMITTER,
|
||||
TRIGGER_STEAM_EMITTER,
|
||||
|
||||
// Code based triggers
|
||||
TRIGGER_PLATFORM,
|
||||
|
|
|
@ -141,6 +141,7 @@ BubbleEmitter=12
|
|||
IntermittentLeftFlameEmitter=13
|
||||
IntermittentDownFlameEmitter=14
|
||||
StreamGeyser=15
|
||||
SteamEmitter=16
|
||||
|
||||
################################################
|
||||
# FX
|
||||
|
|
|
@ -31,6 +31,8 @@ HasBox=1
|
|||
|
||||
[BubbleEmitter]
|
||||
|
||||
[SteamEmitter]
|
||||
|
||||
[StreamGeyser]
|
||||
|
||||
[GaryStop]
|
||||
|
|
|
@ -2165,6 +2165,14 @@ SOURCE=..\..\..\source\triggers\trigger.h
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\source\triggers\tsemit.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\source\triggers\tsemit.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\source\triggers\tteleprt.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue