mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-25 03:40:26 +01:00
80 lines
2.5 KiB
Erlang
80 lines
2.5 KiB
Erlang
|
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
||
|
|
||
|
102
|
||
|
%{
|
||
|
#include "StdH.h"
|
||
|
%}
|
||
|
|
||
|
uses "EntitiesMP/Marker";
|
||
|
|
||
|
class CMovingBrushMarker: CMarker {
|
||
|
name "Moving Brush Marker";
|
||
|
thumbnail "Thumbnails\\MovingBrushMarker.tbn";
|
||
|
|
||
|
properties:
|
||
|
|
||
|
1 BOOL m_bInverseRotate "Inverse Rotate" 'R' = FALSE,
|
||
|
2 FLOAT m_fSpeed "Speed" 'S' = -1.0f,
|
||
|
3 FLOAT m_fWaitTime "Wait time" 'W' = -1.0f,
|
||
|
4 BOOL m_bStopMoving "Stop moving" 'O' = FALSE,
|
||
|
6 enum BoolEType m_betMoveOnTouch "Move on touch" 'M' = BET_IGNORE,
|
||
|
7 FLOAT m_fBlockDamage "Block damage" 'D' = -1.0f,
|
||
|
8 FLOAT m_tmBankingRotation "Banking rotation speed" = -1.0f,
|
||
|
9 BOOL m_bBankingClockwise "Banking rotation clockwise" = TRUE,
|
||
|
14 BOOL m_bNoRotation "Don't use marker orientation" = FALSE,
|
||
|
|
||
|
// send event on marker
|
||
|
10 enum EventEType m_eetMarkerEvent "Marker Event - Type" 'J' = EET_IGNORE, // type of event to send
|
||
|
11 CEntityPointer m_penMarkerEvent "Marker Event - Target" 'K', // target to send event to
|
||
|
|
||
|
// send event on touch
|
||
|
16 enum EventEType m_eetTouchEvent "Touch Event - Type" 'U' = EET_IGNORE, // type of event to send
|
||
|
17 CEntityPointer m_penTouchEvent "Touch Event - Target" 'I', // target to send event to
|
||
|
|
||
|
// sound target
|
||
|
20 CEntityPointer m_penSoundStart "Sound start entity" 'Q', // sound start entity
|
||
|
21 CEntityPointer m_penSoundStop "Sound stop entity" 'Z', // sound stop entity
|
||
|
22 CEntityPointer m_penSoundFollow "Sound follow entity" 'F', // sound follow entity
|
||
|
|
||
|
|
||
|
components:
|
||
|
|
||
|
1 model MODEL_MARKER "Models\\Editor\\MovingBrushMarker.mdl",
|
||
|
2 texture TEXTURE_MARKER "Models\\Editor\\GravityMarker.tex"
|
||
|
|
||
|
|
||
|
functions:
|
||
|
|
||
|
/* Check if entity can drop marker for making linked route. */
|
||
|
BOOL DropsMarker(CTFileName &fnmMarkerClass, CTString &strTargetProperty) const {
|
||
|
fnmMarkerClass = CTFILENAME("Classes\\MovingBrushMarker.ecl");
|
||
|
strTargetProperty = "Target";
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
|
||
|
// returns bytes of memory used by this object
|
||
|
SLONG GetUsedMemory(void)
|
||
|
{
|
||
|
return( sizeof(CMovingBrushMarker) - sizeof(CMarker) + CMarker::GetUsedMemory());
|
||
|
}
|
||
|
|
||
|
|
||
|
procedures:
|
||
|
|
||
|
|
||
|
Main()
|
||
|
{
|
||
|
InitAsEditorModel();
|
||
|
SetPhysicsFlags(EPF_MODEL_IMMATERIAL);
|
||
|
SetCollisionFlags(ECF_IMMATERIAL);
|
||
|
|
||
|
// set appearance
|
||
|
SetModel(MODEL_MARKER);
|
||
|
SetModelMainTexture(TEXTURE_MARKER);
|
||
|
|
||
|
return;
|
||
|
}
|
||
|
};
|
||
|
|