This commit is contained in:
Charles 2001-06-05 20:21:11 +00:00
parent 233f82f307
commit b436643901
8 changed files with 26 additions and 12 deletions

View File

@ -310,7 +310,8 @@ triggers_src := trigger \
tgstop \ tgstop \
thazard \ thazard \
tbgeyser \ tbgeyser \
thazwalk thazwalk \
tsemit
utils_src := utils \ utils_src := utils \
sincos \ sincos \

View File

@ -140,16 +140,8 @@ void CNpcSteerableBarrelPlatform::processMovement( int _frames )
m_currentSpeed = 0; m_currentSpeed = 0;
} }
if ( moveX > 0 ) m_rotation += ( m_currentSpeed * 30 * _frames ) >> 10;
{ m_rotation &= 4095;
m_rotation += 30 * _frames;
m_rotation &= 4095;
}
else if ( moveX < 0 )
{
m_rotation -= 30 * _frames;
m_rotation &= 4095;
}
if ( m_contact ) if ( m_contact )
{ {

View File

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

View File

@ -79,6 +79,10 @@
#include "triggers\tbgeyser.h" #include "triggers\tbgeyser.h"
#endif #endif
#ifndef __TRIGGERS_TSEMIT_H__
#include "triggers\tsemit.h"
#endif
#ifndef __GAME_GAME_H__ #ifndef __GAME_GAME_H__
#include "game\game.h" #include "game\game.h"
#endif #endif
@ -162,6 +166,11 @@ CTrigger *trigger;
trigger=(CBubbleGeyserEmitterTrigger*)new( "BubbleGeyserEmitterTrigger") CBubbleGeyserEmitterTrigger(); trigger=(CBubbleGeyserEmitterTrigger*)new( "BubbleGeyserEmitterTrigger") CBubbleGeyserEmitterTrigger();
break; break;
// Steam emitter
case TRIGGER_STEAM_EMITTER:
trigger=(CSteamEmitterTrigger*)new("SteamEmitterTrigger") CSteamEmitterTrigger();
break;
case TRIGGER_PLATFORM: case TRIGGER_PLATFORM:
trigger = (CPlatformTrigger*)new ("PlatformTrigger") CPlatformTrigger(); trigger = (CPlatformTrigger*)new ("PlatformTrigger") CPlatformTrigger();
break; break;

View File

@ -39,6 +39,7 @@ enum TRIGGER_TYPE
TRIGGER_INTERMITTENT_LEFT_FLAME_EMITTER, TRIGGER_INTERMITTENT_LEFT_FLAME_EMITTER,
TRIGGER_INTERMITTENT_DOWN_FLAME_EMITTER, TRIGGER_INTERMITTENT_DOWN_FLAME_EMITTER,
TRIGGER_BUBBLE_GEYSER_EMITTER, TRIGGER_BUBBLE_GEYSER_EMITTER,
TRIGGER_STEAM_EMITTER,
// Code based triggers // Code based triggers
TRIGGER_PLATFORM, TRIGGER_PLATFORM,

View File

@ -141,6 +141,7 @@ BubbleEmitter=12
IntermittentLeftFlameEmitter=13 IntermittentLeftFlameEmitter=13
IntermittentDownFlameEmitter=14 IntermittentDownFlameEmitter=14
StreamGeyser=15 StreamGeyser=15
SteamEmitter=16
################################################ ################################################
# FX # FX

View File

@ -31,6 +31,8 @@ HasBox=1
[BubbleEmitter] [BubbleEmitter]
[SteamEmitter]
[StreamGeyser] [StreamGeyser]
[GaryStop] [GaryStop]

View File

@ -2165,6 +2165,14 @@ SOURCE=..\..\..\source\triggers\trigger.h
# End Source File # End Source File
# Begin 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 SOURCE=..\..\..\source\triggers\tteleprt.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File