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 \
|
tgstop \
|
||||||
thazard \
|
thazard \
|
||||||
tbgeyser \
|
tbgeyser \
|
||||||
thazwalk
|
thazwalk \
|
||||||
|
tsemit
|
||||||
|
|
||||||
utils_src := utils \
|
utils_src := utils \
|
||||||
sincos \
|
sincos \
|
||||||
|
|
|
@ -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 += 30 * _frames;
|
|
||||||
m_rotation &= 4095;
|
m_rotation &= 4095;
|
||||||
}
|
|
||||||
else if ( moveX < 0 )
|
|
||||||
{
|
|
||||||
m_rotation -= 30 * _frames;
|
|
||||||
m_rotation &= 4095;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( m_contact )
|
if ( m_contact )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*=========================================================================
|
/*=========================================================================
|
||||||
|
|
||||||
tbemit.h
|
tbemit.cpp
|
||||||
|
|
||||||
Author: CRB
|
Author: CRB
|
||||||
Created:
|
Created:
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -141,6 +141,7 @@ BubbleEmitter=12
|
||||||
IntermittentLeftFlameEmitter=13
|
IntermittentLeftFlameEmitter=13
|
||||||
IntermittentDownFlameEmitter=14
|
IntermittentDownFlameEmitter=14
|
||||||
StreamGeyser=15
|
StreamGeyser=15
|
||||||
|
SteamEmitter=16
|
||||||
|
|
||||||
################################################
|
################################################
|
||||||
# FX
|
# FX
|
||||||
|
|
|
@ -31,6 +31,8 @@ HasBox=1
|
||||||
|
|
||||||
[BubbleEmitter]
|
[BubbleEmitter]
|
||||||
|
|
||||||
|
[SteamEmitter]
|
||||||
|
|
||||||
[StreamGeyser]
|
[StreamGeyser]
|
||||||
|
|
||||||
[GaryStop]
|
[GaryStop]
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue