GS-EntBase: Fix formatting in a few class definitions
This commit is contained in:
parent
530f25667b
commit
6f2115c45f
67 changed files with 434 additions and 416 deletions
|
@ -48,10 +48,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
env_explosion:NSPointTrigger
|
||||
{
|
||||
int m_iMagnitude;
|
||||
float m_flMaxDelay;
|
||||
bool m_bEnabled;
|
||||
|
||||
public:
|
||||
void env_explosion(void);
|
||||
|
||||
|
@ -62,6 +58,10 @@ public:
|
|||
virtual void SpawnKey(string,string);
|
||||
virtual void Respawn(void);
|
||||
|
||||
private:
|
||||
int m_iMagnitude;
|
||||
float m_flMaxDelay;
|
||||
bool m_bEnabled;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -45,9 +45,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
env_fade:NSRenderableEntity
|
||||
{
|
||||
float m_flFadeDuration;
|
||||
float m_flFadeHold;
|
||||
|
||||
public:
|
||||
void env_fade(void);
|
||||
|
||||
|
@ -56,6 +53,10 @@ public:
|
|||
virtual void Restore(string,string);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
virtual void SpawnKey(string,string);
|
||||
|
||||
private:
|
||||
float m_flFadeDuration;
|
||||
float m_flFadeHold;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -36,10 +36,7 @@ This entity was introduced in Half-Life (1998).
|
|||
*/
|
||||
class
|
||||
env_global:NSPointTrigger
|
||||
{
|
||||
int m_iTriggerMode;
|
||||
int m_iInitialState;
|
||||
|
||||
{
|
||||
public:
|
||||
void env_global(void);
|
||||
|
||||
|
@ -54,6 +51,9 @@ public:
|
|||
nonvirtual void AddNewGlobal(string, globalstate_t);
|
||||
nonvirtual void SetGlobal(string, globalstate_t);
|
||||
|
||||
private:
|
||||
int m_iTriggerMode;
|
||||
int m_iInitialState;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -43,8 +43,6 @@ This entity was introduced in Half-Life 2 (2004).
|
|||
class
|
||||
env_hudhint:NSPointTrigger
|
||||
{
|
||||
string m_strMessage;
|
||||
|
||||
public:
|
||||
void env_hudhint(void);
|
||||
|
||||
|
@ -53,6 +51,8 @@ public:
|
|||
virtual void SpawnKey(string,string);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
|
||||
private:
|
||||
string m_strMessage;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -43,10 +43,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
env_message:NSPointTrigger
|
||||
{
|
||||
string m_strSound;
|
||||
float m_flVolume;
|
||||
int m_iAttenuation; /* FIXME: change this to a proper attenuation type */
|
||||
|
||||
public:
|
||||
void env_message(void);
|
||||
|
||||
|
@ -57,6 +53,10 @@ public:
|
|||
|
||||
nonvirtual void Play(entity, triggermode_t);
|
||||
|
||||
private:
|
||||
string m_strSound;
|
||||
float m_flVolume;
|
||||
int m_iAttenuation; /* FIXME: change this to a proper attenuation type */
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -38,11 +38,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
env_shake:NSPointTrigger
|
||||
{
|
||||
float m_flRadius;
|
||||
float m_flAmplitude;
|
||||
float m_flDuration;
|
||||
float m_flFrequency;
|
||||
|
||||
public:
|
||||
void env_shake(void);
|
||||
|
||||
|
@ -51,6 +46,11 @@ public:
|
|||
virtual void SpawnKey(string,string);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
|
||||
private:
|
||||
float m_flRadius;
|
||||
float m_flAmplitude;
|
||||
float m_flDuration;
|
||||
float m_flFrequency;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -50,8 +50,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
env_spark:NSPointTrigger
|
||||
{
|
||||
float m_flMaxDelay;
|
||||
|
||||
public:
|
||||
void env_spark(void);
|
||||
|
||||
|
@ -64,6 +62,8 @@ public:
|
|||
nonvirtual void CreateSpark(void);
|
||||
nonvirtual void TimedSpark(void);
|
||||
|
||||
private:
|
||||
float m_flMaxDelay;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -34,11 +34,6 @@ This entity was introduced in Quake II (1997).
|
|||
class
|
||||
func_areaportal:NSEntity
|
||||
{
|
||||
bool m_bPortalState;
|
||||
bool m_bStartOpen;
|
||||
int m_iPortalNumber; /* Source Engine only */
|
||||
bool m_bSourcePortal;
|
||||
|
||||
public:
|
||||
void func_areaportal(void);
|
||||
|
||||
|
@ -52,6 +47,12 @@ public:
|
|||
|
||||
nonvirtual void PortalOpen(void);
|
||||
nonvirtual void PortalClose(void);
|
||||
|
||||
private:
|
||||
bool m_bPortalState;
|
||||
bool m_bStartOpen;
|
||||
int m_iPortalNumber; /* Source Engine only */
|
||||
bool m_bSourcePortal;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -118,16 +118,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
func_breakable:NSSurfacePropEntity
|
||||
{
|
||||
float m_flDelay;
|
||||
float m_flExplodeMag;
|
||||
float m_flExplodeRad;
|
||||
string m_strBreakSpawn;
|
||||
bool m_bCanTouch;
|
||||
|
||||
/*entity m_pressAttacker;
|
||||
int m_pressType;
|
||||
int m_pressDamage;*/
|
||||
|
||||
public:
|
||||
void func_breakable(void);
|
||||
|
||||
|
@ -145,6 +135,17 @@ public:
|
|||
virtual void Touch(entity);
|
||||
|
||||
/*virtual void(void) PressureDeath;*/
|
||||
|
||||
private:
|
||||
float m_flDelay;
|
||||
float m_flExplodeMag;
|
||||
float m_flExplodeRad;
|
||||
string m_strBreakSpawn;
|
||||
bool m_bCanTouch;
|
||||
|
||||
/*entity m_pressAttacker;
|
||||
int m_pressType;
|
||||
int m_pressDamage;*/
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -41,9 +41,6 @@ This entity was introduced in Half-Life 2 (2004).
|
|||
class
|
||||
func_brush:NSRenderableEntity
|
||||
{
|
||||
int m_iSolidity;
|
||||
int m_iStartOff;
|
||||
|
||||
public:
|
||||
void func_brush(void);
|
||||
|
||||
|
@ -53,6 +50,9 @@ public:
|
|||
virtual void Trigger(entity, triggermode_t);
|
||||
virtual void SpawnKey(string,string);
|
||||
|
||||
private:
|
||||
int m_iSolidity;
|
||||
int m_iStartOff;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -73,6 +73,24 @@ This entity was introduced in Quake (1996).
|
|||
class
|
||||
func_button:NSMoverEntity
|
||||
{
|
||||
public:
|
||||
void func_button(void);
|
||||
|
||||
virtual void Save(float);
|
||||
virtual void Restore(string,string);
|
||||
virtual void SpawnKey(string,string);
|
||||
virtual void Spawned(void);
|
||||
virtual void Respawn(void);
|
||||
virtual void Touch(entity);
|
||||
virtual void Blocked(entity);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
nonvirtual void DeathTrigger(void);
|
||||
virtual void PlayerUse(void);
|
||||
|
||||
virtual void MoverStartsMoving(void);
|
||||
virtual void MoverFinishesMoving(void);
|
||||
|
||||
private:
|
||||
moverState_t m_moverState;
|
||||
float m_flSpeed;
|
||||
float m_flLip;
|
||||
|
@ -90,23 +108,6 @@ func_button:NSMoverEntity
|
|||
string m_strOnUseLocked;
|
||||
string m_strOnIn;
|
||||
string m_strOnOut;
|
||||
|
||||
public:
|
||||
void func_button(void);
|
||||
|
||||
virtual void Save(float);
|
||||
virtual void Restore(string,string);
|
||||
virtual void SpawnKey(string,string);
|
||||
virtual void Spawned(void);
|
||||
virtual void Respawn(void);
|
||||
virtual void Touch(entity);
|
||||
virtual void Blocked(entity);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
nonvirtual void DeathTrigger(void);
|
||||
virtual void PlayerUse(void);
|
||||
|
||||
virtual void MoverStartsMoving(void);
|
||||
virtual void MoverFinishesMoving(void);
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -33,10 +33,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
func_guntarget:NSSurfacePropEntity
|
||||
{
|
||||
float m_flSpeed;
|
||||
string m_strOnDeath;
|
||||
string m_strOnDeathLegacy;
|
||||
|
||||
public:
|
||||
void func_guntarget(void);
|
||||
|
||||
|
@ -56,6 +52,10 @@ public:
|
|||
|
||||
virtual void Input(entity, string, string);
|
||||
|
||||
private:
|
||||
float m_flSpeed;
|
||||
string m_strOnDeath;
|
||||
string m_strOnDeathLegacy;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -32,14 +32,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
func_healthcharger:NSRenderableEntity
|
||||
{
|
||||
entity m_eUser;
|
||||
float m_flDelay;
|
||||
float m_flCheck;
|
||||
|
||||
string m_strSndFirst;
|
||||
string m_strSndCharging;
|
||||
string m_strSndDone;
|
||||
|
||||
public:
|
||||
void func_healthcharger(void);
|
||||
|
||||
|
@ -54,6 +46,14 @@ public:
|
|||
virtual void OnPlayerUse(void);
|
||||
nonvirtual void ResetHealth(void);
|
||||
|
||||
private:
|
||||
entity m_eUser;
|
||||
float m_flDelay;
|
||||
float m_flCheck;
|
||||
|
||||
string m_strSndFirst;
|
||||
string m_strSndCharging;
|
||||
string m_strSndDone;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -45,12 +45,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
func_mortar_field:NSBrushTrigger
|
||||
{
|
||||
int m_iType;
|
||||
int m_iCount;
|
||||
float m_flSpread;
|
||||
string m_strXController;
|
||||
string m_strYController;
|
||||
|
||||
public:
|
||||
void func_mortar_field(void);
|
||||
|
||||
|
@ -65,6 +59,13 @@ public:
|
|||
nonvirtual void FireRandom(void);
|
||||
nonvirtual void FireTarget(entity);
|
||||
nonvirtual void FireControlled(void);
|
||||
|
||||
private:
|
||||
int m_iType;
|
||||
int m_iCount;
|
||||
float m_flSpread;
|
||||
string m_strXController;
|
||||
string m_strYController;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -52,11 +52,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
func_pendulum:NSRenderableEntity
|
||||
{
|
||||
int m_iActive;
|
||||
float m_flProgress;
|
||||
float m_flDampening;
|
||||
float m_flDistance;
|
||||
|
||||
public:
|
||||
void func_pendulum(void);
|
||||
|
||||
|
@ -67,6 +62,11 @@ public:
|
|||
virtual void Trigger(entity, triggermode_t);
|
||||
virtual void customphysics(void);
|
||||
|
||||
private:
|
||||
int m_iActive;
|
||||
float m_flProgress;
|
||||
float m_flDampening;
|
||||
float m_flDistance;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -49,13 +49,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
func_platrot:NSRenderableEntity
|
||||
{
|
||||
int m_iState;
|
||||
float m_flSpeed;
|
||||
float m_flHeight;
|
||||
string m_strNoise1;
|
||||
string m_strNoise2;
|
||||
float m_flRotation;
|
||||
|
||||
public:
|
||||
void func_platrot(void);
|
||||
|
||||
|
@ -70,6 +63,14 @@ public:
|
|||
nonvirtual void ArrivedUp(void);
|
||||
nonvirtual void ArrivedDown(void);
|
||||
nonvirtual void MoveToggle(void);
|
||||
|
||||
private:
|
||||
int m_iState;
|
||||
float m_flSpeed;
|
||||
float m_flHeight;
|
||||
string m_strNoise1;
|
||||
string m_strNoise2;
|
||||
float m_flRotation;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -32,14 +32,7 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
func_recharge:NSRenderableEntity
|
||||
{
|
||||
entity m_eUser;
|
||||
float m_flDelay;
|
||||
float m_flCheck;
|
||||
|
||||
string m_strSndFirst;
|
||||
string m_strSndCharging;
|
||||
string m_strSndDone;
|
||||
|
||||
public:
|
||||
void func_recharge(void);
|
||||
|
||||
/* overrides */
|
||||
|
@ -53,6 +46,14 @@ func_recharge:NSRenderableEntity
|
|||
virtual void OnPlayerUse(void);
|
||||
nonvirtual void ResetHealth(void);
|
||||
|
||||
private:
|
||||
entity m_eUser;
|
||||
float m_flDelay;
|
||||
float m_flCheck;
|
||||
|
||||
string m_strSndFirst;
|
||||
string m_strSndCharging;
|
||||
string m_strSndDone;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -63,13 +63,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
func_rot_button:NSSurfacePropEntity
|
||||
{
|
||||
vector m_vecMoveAngle;
|
||||
int m_iState;
|
||||
|
||||
float m_flSpeed;
|
||||
float m_flDistance;
|
||||
float m_flReturnTime;
|
||||
|
||||
public:
|
||||
void func_rot_button(void);
|
||||
|
||||
|
@ -88,6 +81,12 @@ public:
|
|||
nonvirtual void Rotate(vector, void());
|
||||
nonvirtual void TurnToggle(void);
|
||||
|
||||
private:
|
||||
vector m_vecMoveAngle;
|
||||
int m_iState;
|
||||
float m_flSpeed;
|
||||
float m_flDistance;
|
||||
float m_flReturnTime;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -66,11 +66,6 @@ This entity was introduced in Quake II (1997).
|
|||
class
|
||||
func_rotating:NSRenderableEntity
|
||||
{
|
||||
vector m_vecMoveDir;
|
||||
float m_flSpeed;
|
||||
float m_flDamage;
|
||||
float m_flDir;
|
||||
|
||||
public:
|
||||
void func_rotating(void);
|
||||
|
||||
|
@ -86,6 +81,11 @@ public:
|
|||
virtual void Touch(entity);
|
||||
virtual void SetMovementDirection(void);
|
||||
|
||||
private:
|
||||
vector m_vecMoveDir;
|
||||
float m_flSpeed;
|
||||
float m_flDamage;
|
||||
float m_flDir;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -69,6 +69,20 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
func_tank:NSVehicle
|
||||
{
|
||||
public:
|
||||
void func_tank(void);
|
||||
|
||||
virtual void Spawned(void);
|
||||
virtual void Save(float);
|
||||
virtual void Restore(string,string);
|
||||
virtual void customphysics(void);
|
||||
virtual void PlayerInput(void);
|
||||
virtual void Respawn(void);
|
||||
virtual void SpawnKey(string,string);
|
||||
nonvirtual void SpriteSmoke(vector);
|
||||
nonvirtual void SpriteFlash(vector);
|
||||
|
||||
private:
|
||||
/* attributes */
|
||||
float m_flYawRate; /* TODO */
|
||||
float m_flYawRange; /* TODO */
|
||||
|
@ -85,22 +99,7 @@ func_tank:NSVehicle
|
|||
float m_flPersistance; /* TODO */
|
||||
float m_flMinRange; /* TODO */
|
||||
float m_flMaxRange; /* TODO */
|
||||
|
||||
float m_flFireTime;
|
||||
|
||||
public:
|
||||
void func_tank(void);
|
||||
|
||||
virtual void Spawned(void);
|
||||
virtual void Save(float);
|
||||
virtual void Restore(string,string);
|
||||
virtual void customphysics(void);
|
||||
virtual void PlayerInput(void);
|
||||
virtual void Respawn(void);
|
||||
virtual void SpawnKey(string,string);
|
||||
nonvirtual void SpriteSmoke(vector);
|
||||
nonvirtual void SpriteFlash(vector);
|
||||
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -35,9 +35,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
func_wall_toggle:NSRenderableEntity
|
||||
{
|
||||
int m_oldmodelindex;
|
||||
int m_iVisible;
|
||||
|
||||
public:
|
||||
void func_wall_toggle(void);
|
||||
|
||||
|
@ -47,6 +44,9 @@ public:
|
|||
virtual void Trigger(entity, triggermode_t);
|
||||
virtual void Input(entity,string,string);
|
||||
|
||||
private:
|
||||
int m_oldmodelindex;
|
||||
int m_iVisible;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -43,10 +43,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
game_counter:NSPointTrigger
|
||||
{
|
||||
int m_iStartCount;
|
||||
int m_iCounted;
|
||||
int m_iMaxCount;
|
||||
|
||||
public:
|
||||
void game_counter(void);
|
||||
|
||||
|
@ -60,6 +56,10 @@ public:
|
|||
nonvirtual int GetCount(void);
|
||||
nonvirtual void SetCount(int);
|
||||
|
||||
private:
|
||||
int m_iStartCount;
|
||||
int m_iCounted;
|
||||
int m_iMaxCount;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -39,8 +39,6 @@ enumflags
|
|||
class
|
||||
game_counter_set:NSPointTrigger
|
||||
{
|
||||
int m_iCount;
|
||||
|
||||
public:
|
||||
void game_counter_set(void);
|
||||
|
||||
|
@ -50,6 +48,8 @@ public:
|
|||
virtual void Respawn(void);
|
||||
virtual void SpawnKey(string,string);
|
||||
|
||||
private:
|
||||
int m_iCount;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -49,8 +49,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
game_player_equip:NSPointTrigger
|
||||
{
|
||||
string m_strBuffer;
|
||||
|
||||
public:
|
||||
void game_player_equip(void);
|
||||
|
||||
|
@ -61,6 +59,8 @@ public:
|
|||
|
||||
nonvirtual void SpawnUnit(string,vector);
|
||||
|
||||
private:
|
||||
string m_strBuffer;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -49,6 +49,16 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
game_text:NSPointTrigger
|
||||
{
|
||||
public:
|
||||
void game_text(void);
|
||||
|
||||
virtual void Save(float);
|
||||
virtual void Restore(string,string);
|
||||
virtual void SpawnKey(string,string);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
virtual void Input(entity, string, string);
|
||||
|
||||
private:
|
||||
vector m_vecColor1;
|
||||
vector m_vecColor2;
|
||||
float m_flPosX;
|
||||
|
@ -59,16 +69,6 @@ game_text:NSPointTrigger
|
|||
float m_flFXTime;
|
||||
int m_iChannel;
|
||||
int m_iEffect;
|
||||
|
||||
public:
|
||||
void game_text(void);
|
||||
|
||||
virtual void Save(float);
|
||||
virtual void Restore(string,string);
|
||||
virtual void SpawnKey(string,string);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
virtual void Input(entity, string, string);
|
||||
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -140,15 +140,6 @@ However, that was never completed.
|
|||
class
|
||||
info_hint:NSPointTrigger
|
||||
{
|
||||
hinttype_t m_hintType;
|
||||
string m_strHintActivity;
|
||||
float m_flNodeFOV;
|
||||
bool m_bStartDisabled;
|
||||
string m_strHintGroup;
|
||||
ignorefacing_t m_ignoreFacing;
|
||||
aistate_t m_minState;
|
||||
aistate_t m_maxState;
|
||||
|
||||
public:
|
||||
void info_hint(void);
|
||||
|
||||
|
@ -157,6 +148,15 @@ public:
|
|||
virtual void Restore(string,string);
|
||||
virtual void SpawnKey(string,string);
|
||||
|
||||
private:
|
||||
hinttype_t m_hintType;
|
||||
string m_strHintActivity;
|
||||
float m_flNodeFOV;
|
||||
bool m_bStartDisabled;
|
||||
string m_strHintGroup;
|
||||
ignorefacing_t m_ignoreFacing;
|
||||
aistate_t m_minState;
|
||||
aistate_t m_maxState;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -39,9 +39,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
infodecal:NSPointTrigger
|
||||
{
|
||||
decal m_decChild;
|
||||
string m_strTexture;
|
||||
|
||||
public:
|
||||
void infodecal(void);
|
||||
|
||||
|
@ -52,6 +49,9 @@ public:
|
|||
virtual void Spawned(void);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
|
||||
private:
|
||||
decal m_decChild;
|
||||
string m_strTexture;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -30,8 +30,7 @@ It's also known as item_sodacan.
|
|||
class
|
||||
item_food:NSRenderableEntity
|
||||
{
|
||||
int m_iIsCan;
|
||||
|
||||
public:
|
||||
void item_food(void);
|
||||
|
||||
virtual void Respawn(void);
|
||||
|
@ -39,6 +38,9 @@ item_food:NSRenderableEntity
|
|||
virtual void Restore(string,string);
|
||||
nonvirtual void Setup(void);
|
||||
virtual void Touch(entity);
|
||||
|
||||
private:
|
||||
int m_iIsCan;
|
||||
};
|
||||
|
||||
void
|
||||
|
@ -51,8 +53,8 @@ item_food::item_food(void)
|
|||
void
|
||||
item_food::Save(float handle)
|
||||
{
|
||||
SaveInt(handle, "m_iIsCan", m_iIsCan);
|
||||
super::Save(handle);
|
||||
SaveInt(handle, "m_iIsCan", m_iIsCan);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -39,6 +39,7 @@ public:
|
|||
virtual void SpawnKey(string, string);
|
||||
virtual void Save(float);
|
||||
virtual void Restore(string, string);
|
||||
|
||||
private:
|
||||
string m_strSequenceName;
|
||||
};
|
||||
|
|
|
@ -68,12 +68,6 @@ This entity was introduced in Quake (1996).
|
|||
class
|
||||
light:NSPointTrigger
|
||||
{
|
||||
int m_iEnabled;
|
||||
int m_iStartActive;
|
||||
float m_flStyle;
|
||||
float m_flSwitchStyle;
|
||||
string m_strPattern;
|
||||
|
||||
public:
|
||||
void light(void);
|
||||
|
||||
|
@ -86,6 +80,12 @@ public:
|
|||
virtual void RestoreComplete(void);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
|
||||
private:
|
||||
int m_iEnabled;
|
||||
int m_iStartActive;
|
||||
float m_flStyle;
|
||||
float m_flSwitchStyle;
|
||||
string m_strPattern;
|
||||
};
|
||||
|
||||
void
|
||||
|
@ -101,12 +101,12 @@ light::light(void)
|
|||
void
|
||||
light::Save(float handle)
|
||||
{
|
||||
super::Save(handle);
|
||||
SaveInt(handle, "m_iEnabled", m_iEnabled);
|
||||
SaveInt(handle, "m_iStartActive", m_iStartActive);
|
||||
SaveFloat(handle, "m_flStyle", m_flStyle);
|
||||
SaveFloat(handle, "m_flSwitchStyle", m_flSwitchStyle);
|
||||
SaveString(handle, "m_strPattern", m_strPattern);
|
||||
super::Save(handle);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -52,18 +52,6 @@ This entity was introduced in Half-Life 2 (2004).
|
|||
class
|
||||
logic_auto:NSPointTrigger
|
||||
{
|
||||
/* outputs */
|
||||
string m_strOnMapSpawn;
|
||||
string m_strOnNewGame;
|
||||
string m_strOnLoadGame;
|
||||
string m_strOnMapTransition;
|
||||
string m_strOnBackgroundMap;
|
||||
string m_strOnMultiNewMap;
|
||||
string m_strOnMultiNewRound;
|
||||
|
||||
/* temporary */
|
||||
int m_iFromSaveGame;
|
||||
|
||||
public:
|
||||
void logic_auto(void);
|
||||
|
||||
|
@ -77,6 +65,18 @@ public:
|
|||
|
||||
nonvirtual void Processing(void);
|
||||
|
||||
private:
|
||||
/* outputs */
|
||||
string m_strOnMapSpawn;
|
||||
string m_strOnNewGame;
|
||||
string m_strOnLoadGame;
|
||||
string m_strOnMapTransition;
|
||||
string m_strOnBackgroundMap;
|
||||
string m_strOnMultiNewMap;
|
||||
string m_strOnMultiNewRound;
|
||||
|
||||
/* temporary */
|
||||
int m_iFromSaveGame;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -80,6 +80,8 @@ public:
|
|||
virtual void Restore(string,string);
|
||||
virtual void Input(entity, string, string);
|
||||
|
||||
nonvirtual void CompareCase(entity, string);
|
||||
|
||||
private:
|
||||
|
||||
string m_strCase01;
|
||||
|
@ -117,8 +119,6 @@ private:
|
|||
string m_strOnCase16;
|
||||
|
||||
string m_strOnDefault;
|
||||
|
||||
nonvirtual void CompareCase(entity, string);
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -50,8 +50,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
momentary_rot_button:NSMomentary
|
||||
{
|
||||
int m_iTurnDir;
|
||||
|
||||
public:
|
||||
void momentary_rot_button(void);
|
||||
|
||||
|
@ -68,6 +66,8 @@ public:
|
|||
virtual void MovementStateChanged(void);
|
||||
virtual float GetProgress(void);
|
||||
|
||||
private:
|
||||
int m_iTurnDir;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -26,20 +26,6 @@ typedef enum
|
|||
class
|
||||
NSMomentary:NSRenderableEntity
|
||||
{
|
||||
private:
|
||||
entity m_eUser;
|
||||
vector m_vecMoveDir;
|
||||
vector m_vecPos1;
|
||||
vector m_vecPos2;
|
||||
vector m_vecDest;
|
||||
|
||||
int m_iMoveState;
|
||||
|
||||
/* map keys */
|
||||
float m_flDistance;
|
||||
float m_flSpeed;
|
||||
float m_flReturnspeed;
|
||||
|
||||
public:
|
||||
void NSMomentary(void);
|
||||
|
||||
|
@ -54,6 +40,19 @@ public:
|
|||
/** Returns the progress of the momentary, which is a value between 0.0 and 1.0. */
|
||||
virtual float GetProgress(void);
|
||||
|
||||
private:
|
||||
entity m_eUser;
|
||||
vector m_vecMoveDir;
|
||||
vector m_vecPos1;
|
||||
vector m_vecPos2;
|
||||
vector m_vecDest;
|
||||
|
||||
int m_iMoveState;
|
||||
|
||||
/* map keys */
|
||||
float m_flDistance;
|
||||
float m_flSpeed;
|
||||
float m_flReturnspeed;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -49,13 +49,6 @@ enumflags
|
|||
class
|
||||
monstermaker:NSPointTrigger
|
||||
{
|
||||
string m_strMonster;
|
||||
string m_strChildName;
|
||||
int m_iMonsterSpawned;
|
||||
int m_iTotalMonsters;
|
||||
int m_iMaxChildren;
|
||||
float m_flDelay;
|
||||
|
||||
public:
|
||||
void monstermaker(void);
|
||||
|
||||
|
@ -70,6 +63,13 @@ public:
|
|||
nonvirtual void TurnOn(void);
|
||||
nonvirtual void TurnOff(void);
|
||||
|
||||
private:
|
||||
string m_strMonster;
|
||||
string m_strChildName;
|
||||
int m_iMonsterSpawned;
|
||||
int m_iTotalMonsters;
|
||||
int m_iMaxChildren;
|
||||
float m_flDelay;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -35,10 +35,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
multi_manager_sub:NSPointTrigger
|
||||
{
|
||||
entity m_eActivator;
|
||||
int m_iValue;
|
||||
float m_flUntilTriggered;
|
||||
|
||||
public:
|
||||
void multi_manager_sub(void);
|
||||
|
||||
|
@ -46,6 +42,10 @@ public:
|
|||
virtual void Save(float);
|
||||
virtual void Restore(string,string);
|
||||
|
||||
private:
|
||||
entity m_eActivator;
|
||||
int m_iValue;
|
||||
float m_flUntilTriggered;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -35,11 +35,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
player_loadsaved:NSRenderableEntity /* for the rendercolor values */
|
||||
{
|
||||
string m_strMessage;
|
||||
float m_flLoadTime;
|
||||
float m_flFadeDuration;
|
||||
float m_flFadeHold;
|
||||
|
||||
public:
|
||||
void player_loadsaved(void);
|
||||
|
||||
|
@ -51,6 +46,11 @@ public:
|
|||
|
||||
nonvirtual void ReloadSave(void);
|
||||
|
||||
private:
|
||||
string m_strMessage;
|
||||
float m_flLoadTime;
|
||||
float m_flFadeDuration;
|
||||
float m_flFadeHold;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -43,13 +43,6 @@ This entity was introduced in Half-Life 2 (2004).
|
|||
class
|
||||
point_camera:NSPointTrigger
|
||||
{
|
||||
int m_iUseSAR;
|
||||
int m_iUseFog;
|
||||
vector m_vecFogColor;
|
||||
float m_flFogStart;
|
||||
float m_flFogEnd;
|
||||
float m_flFOV;
|
||||
|
||||
public:
|
||||
void point_camera(void);
|
||||
|
||||
|
@ -59,6 +52,14 @@ public:
|
|||
virtual void SpawnKey(string,string);
|
||||
virtual void Respawn(void);
|
||||
virtual void Input(entity,string,string);
|
||||
|
||||
private:
|
||||
int m_iUseSAR;
|
||||
int m_iUseFog;
|
||||
vector m_vecFogColor;
|
||||
float m_flFogStart;
|
||||
float m_flFogEnd;
|
||||
float m_flFOV;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -24,11 +24,6 @@
|
|||
class
|
||||
prop_door_rotating:NSPointTrigger
|
||||
{
|
||||
vector m_vecDest1;
|
||||
vector m_vecDest2;
|
||||
float m_flDistance;
|
||||
float m_flSpeed;
|
||||
|
||||
public:
|
||||
void prop_door_rotating(void);
|
||||
|
||||
|
@ -42,6 +37,12 @@ public:
|
|||
nonvirtual void Turn(vector,void(void));
|
||||
nonvirtual void Opened(void);
|
||||
nonvirtual void Closed(void);
|
||||
|
||||
private:
|
||||
vector m_vecDest1;
|
||||
vector m_vecDest2;
|
||||
float m_flDistance;
|
||||
float m_flSpeed;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -41,11 +41,6 @@ It was introduced in Gunman Chronicles (2000).
|
|||
class
|
||||
random_speaker:NSPointTrigger
|
||||
{
|
||||
string m_strSample;
|
||||
float m_flVolume;
|
||||
float m_flMinPos;
|
||||
float m_flRandPercent;
|
||||
|
||||
public:
|
||||
void random_speaker(void);
|
||||
|
||||
|
@ -60,6 +55,11 @@ public:
|
|||
nonvirtual void Enable(void);
|
||||
nonvirtual void Disable(void);
|
||||
|
||||
private:
|
||||
string m_strSample;
|
||||
float m_flVolume;
|
||||
float m_flMinPos;
|
||||
float m_flRandPercent;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -34,11 +34,6 @@ It was introduced in Gunman Chronicles (2000).
|
|||
class
|
||||
random_trigger:NSPointTrigger
|
||||
{
|
||||
float m_flMinTime;
|
||||
float m_flRandMin;
|
||||
float m_flRandMax;
|
||||
int m_iStartState;
|
||||
|
||||
public:
|
||||
void random_trigger(void);
|
||||
|
||||
|
@ -48,6 +43,11 @@ public:
|
|||
virtual void Respawn(void);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
|
||||
private:
|
||||
float m_flMinTime;
|
||||
float m_flRandMin;
|
||||
float m_flRandMax;
|
||||
int m_iStartState;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -35,13 +35,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
scripted_sentence:NSPointTrigger
|
||||
{
|
||||
string m_strSpeaker;
|
||||
string m_strSentence;
|
||||
float m_flDelay;
|
||||
float m_flWait;
|
||||
float m_flPitch;
|
||||
float m_flDuration;
|
||||
|
||||
public:
|
||||
void scripted_sentence(void);
|
||||
|
||||
|
@ -51,6 +44,13 @@ public:
|
|||
virtual void SpawnKey(string,string);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
|
||||
private:
|
||||
string m_strSpeaker;
|
||||
string m_strSentence;
|
||||
float m_flDelay;
|
||||
float m_flWait;
|
||||
float m_flPitch;
|
||||
float m_flDuration;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -67,9 +67,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
speaker:NSTalkMonster
|
||||
{
|
||||
string m_strSentence;
|
||||
float m_flVolume;
|
||||
|
||||
public:
|
||||
void speaker(void);
|
||||
|
||||
|
@ -82,6 +79,9 @@ public:
|
|||
|
||||
nonvirtual void Announce(void);
|
||||
|
||||
private:
|
||||
string m_strSentence;
|
||||
float m_flVolume;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -36,9 +36,6 @@ to be played.
|
|||
class
|
||||
targ_speaker:NSPointTrigger
|
||||
{
|
||||
string m_strSample;
|
||||
float m_flVolume;
|
||||
|
||||
public:
|
||||
void targ_speaker(void);
|
||||
|
||||
|
@ -48,6 +45,9 @@ public:
|
|||
virtual void Respawn(void);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
|
||||
private:
|
||||
string m_strSample;
|
||||
float m_flVolume;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -34,9 +34,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
target_cdaudio:NSPointTrigger
|
||||
{
|
||||
float m_flRadius;
|
||||
int m_iCDTrack;
|
||||
|
||||
public:
|
||||
void target_cdaudio(void);
|
||||
|
||||
|
@ -46,6 +43,9 @@ public:
|
|||
virtual void Respawn(void);
|
||||
virtual void Touch(entity);
|
||||
|
||||
private:
|
||||
float m_flRadius;
|
||||
int m_iCDTrack;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -37,9 +37,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
trigger_auto:NSPointTrigger
|
||||
{
|
||||
triggermode_t m_iTriggerState;
|
||||
float m_flDelay;
|
||||
|
||||
public:
|
||||
void trigger_auto(void);
|
||||
|
||||
|
@ -52,6 +49,9 @@ public:
|
|||
|
||||
nonvirtual void Processing(void);
|
||||
|
||||
private:
|
||||
triggermode_t m_iTriggerState;
|
||||
float m_flDelay;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -28,8 +28,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
trigger_autosave:NSBrushTrigger
|
||||
{
|
||||
float m_flDelay;
|
||||
|
||||
public:
|
||||
void trigger_autosave(void);
|
||||
|
||||
|
@ -38,6 +36,9 @@ public:
|
|||
virtual void Spawned(void);
|
||||
virtual void Respawn(void);
|
||||
virtual void Touch(entity);
|
||||
|
||||
private:
|
||||
float m_flDelay;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -29,8 +29,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
trigger_cdaudio:NSBrushTrigger
|
||||
{
|
||||
int m_iCDTrack;
|
||||
|
||||
public:
|
||||
void trigger_cdaudio(void);
|
||||
|
||||
|
@ -41,6 +39,8 @@ public:
|
|||
virtual void Trigger(entity, triggermode_t);
|
||||
virtual void Touch(entity);
|
||||
|
||||
private:
|
||||
int m_iCDTrack;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -83,13 +83,6 @@ ChangeTarget_Activate(void)
|
|||
class
|
||||
trigger_changelevel:NSBrushTrigger
|
||||
{
|
||||
float m_flChangeDelay;
|
||||
string m_strChangeTarget;
|
||||
string m_strMap;
|
||||
string m_strLandmark;
|
||||
string m_strOnLevelChange;
|
||||
entity m_activator;
|
||||
|
||||
public:
|
||||
void trigger_changelevel(void);
|
||||
|
||||
|
@ -106,6 +99,14 @@ public:
|
|||
virtual void Change(void);
|
||||
virtual void Touch(entity);
|
||||
virtual int IsInside(entity,entity);
|
||||
|
||||
private:
|
||||
float m_flChangeDelay;
|
||||
string m_strChangeTarget;
|
||||
string m_strMap;
|
||||
string m_strLandmark;
|
||||
string m_strOnLevelChange;
|
||||
entity m_activator;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -39,9 +39,6 @@ This entity was introduced in Quake (1996).
|
|||
class
|
||||
trigger_counter:NSBrushTrigger
|
||||
{
|
||||
int m_iCounted;
|
||||
int m_iMaxCount;
|
||||
|
||||
public:
|
||||
void trigger_counter(void);
|
||||
|
||||
|
@ -52,6 +49,9 @@ public:
|
|||
virtual void Trigger(entity, triggermode_t);
|
||||
virtual void Touch(entity);
|
||||
|
||||
private:
|
||||
int m_iCounted;
|
||||
int m_iMaxCount;
|
||||
};
|
||||
|
||||
void
|
||||
|
@ -116,7 +116,7 @@ trigger_counter::Trigger(entity act, triggermode_t state)
|
|||
|
||||
m_iCounted++;
|
||||
|
||||
dprint("^2trigger_counter::^3Trigger^7: " \
|
||||
NSLog("^2trigger_counter::^3Trigger^7: " \
|
||||
"Incremented '%s' by 1 (%i/%i)\n", \
|
||||
targetname, m_iCounted, m_iMaxCount);
|
||||
|
||||
|
|
|
@ -40,10 +40,6 @@ This entity was introduced in Quake (1996).
|
|||
class
|
||||
trigger_relay:NSPointTrigger
|
||||
{
|
||||
private:
|
||||
triggermode_t m_iTriggerState;
|
||||
int m_iEnabled;
|
||||
|
||||
public:
|
||||
void trigger_relay(void);
|
||||
|
||||
|
@ -53,6 +49,10 @@ public:
|
|||
|
||||
virtual void Save(float);
|
||||
virtual void Restore(string,string);
|
||||
|
||||
private:
|
||||
triggermode_t m_iTriggerState;
|
||||
int m_iEnabled;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -58,16 +58,6 @@ This entity was introduced in Half-Life (1998).
|
|||
class
|
||||
env_bubbles:NSPointTrigger
|
||||
{
|
||||
PREDICTED_INT(m_iDensity)
|
||||
PREDICTED_FLOAT(m_flFrequency)
|
||||
PREDICTED_FLOAT(m_flCurrent)
|
||||
PREDICTED_BOOL(m_bEnabled)
|
||||
|
||||
/* spawn values */
|
||||
int m_iSpawnDensity;
|
||||
float m_flSpawnFrequency;
|
||||
float m_flSpawnCurrent;
|
||||
|
||||
public:
|
||||
void env_bubbles(void);
|
||||
|
||||
|
@ -87,6 +77,17 @@ public:
|
|||
virtual void EmitBubbles(void);
|
||||
virtual void ReceiveEntity(float,float);
|
||||
#endif
|
||||
|
||||
private:
|
||||
PREDICTED_INT(m_iDensity)
|
||||
PREDICTED_FLOAT(m_flFrequency)
|
||||
PREDICTED_FLOAT(m_flCurrent)
|
||||
PREDICTED_BOOL(m_bEnabled)
|
||||
|
||||
/* spawn values */
|
||||
int m_iSpawnDensity;
|
||||
float m_flSpawnFrequency;
|
||||
float m_flSpawnCurrent;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -65,6 +65,14 @@ This entity was introduced in Half-Life 2 (2004).
|
|||
class
|
||||
env_fire:NSPointTrigger
|
||||
{
|
||||
public:
|
||||
void env_fire(void);
|
||||
|
||||
#ifdef SERVER
|
||||
virtual void SpawnKey(string strKey, string strValue);
|
||||
#endif
|
||||
|
||||
private:
|
||||
PREDICTED_FLOAT(m_flSize)
|
||||
PREDICTED_BOOL(m_bState)
|
||||
PREDICTED_FLOAT m_flMaxSize)
|
||||
|
@ -73,12 +81,6 @@ env_fire:NSPointTrigger
|
|||
float m_flIgnitionPoint;
|
||||
float m_flDamageScale;
|
||||
float m_flDuration;
|
||||
|
||||
void env_fire(void);
|
||||
|
||||
#ifdef SERVER
|
||||
virtual void SpawnKey(string strKey, string strValue);
|
||||
#endif
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -65,6 +65,28 @@ This entity was introduced in Half-Life 2 (2004).
|
|||
class
|
||||
env_fog_controller:NSPointTrigger
|
||||
{
|
||||
public:
|
||||
void env_fog_controller(void);
|
||||
|
||||
#ifdef CLIENT
|
||||
virtual float StartToBias(void);
|
||||
virtual float FogRender(void);
|
||||
virtual void FogUpdate(void);
|
||||
virtual void RendererRestarted(void);
|
||||
virtual void ReceiveEntity(float,float);
|
||||
#endif
|
||||
|
||||
#ifdef SERVER
|
||||
virtual float SendEntity(entity,float);
|
||||
virtual void EvaluateEntity(void);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
virtual void Respawn(void);
|
||||
virtual void Save(float);
|
||||
virtual void Restore(string,string);
|
||||
virtual void SpawnKey(string,string);
|
||||
virtual void Input(entity, string, string);
|
||||
#endif
|
||||
|
||||
private:
|
||||
#ifdef CLIENT
|
||||
/* temporary attributes */
|
||||
|
@ -94,28 +116,6 @@ private:
|
|||
PREDICTED_VECTOR(m_vecFogColor)
|
||||
PREDICTED_VECTOR(m_vecFogColor2)
|
||||
PREDICTED_VECTOR(m_vecFogDir)
|
||||
|
||||
public:
|
||||
void env_fog_controller(void);
|
||||
|
||||
#ifdef CLIENT
|
||||
virtual float StartToBias(void);
|
||||
virtual float FogRender(void);
|
||||
virtual void FogUpdate(void);
|
||||
virtual void RendererRestarted(void);
|
||||
virtual void ReceiveEntity(float,float);
|
||||
#endif
|
||||
|
||||
#ifdef SERVER
|
||||
virtual float SendEntity(entity,float);
|
||||
virtual void EvaluateEntity(void);
|
||||
virtual void Trigger(entity, triggermode_t);
|
||||
virtual void Respawn(void);
|
||||
virtual void Save(float);
|
||||
virtual void Restore(string,string);
|
||||
virtual void SpawnKey(string,string);
|
||||
virtual void Input(entity, string, string);
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef CLIENT
|
||||
|
|
|
@ -63,20 +63,6 @@ This entity was introduced in Half-Life 2: Episode One (2006).
|
|||
*/
|
||||
class env_projectedtexture:NSPointTrigger
|
||||
{
|
||||
private:
|
||||
vector m_vecLight;
|
||||
float m_flIntensity;
|
||||
float m_flInnerCone;
|
||||
float m_flCone;
|
||||
float m_flFarZ;
|
||||
float m_flNearZ;
|
||||
float m_flRadius;
|
||||
float m_flStyle;
|
||||
string m_strPattern;
|
||||
string m_strTextureName;
|
||||
float m_flFOV;
|
||||
int m_iState;
|
||||
|
||||
public:
|
||||
void env_projectedtexture(void);
|
||||
|
||||
|
@ -91,6 +77,20 @@ public:
|
|||
virtual void EvaluateEntity(void);
|
||||
virtual void Input(entity, string, string);
|
||||
#endif
|
||||
|
||||
private:
|
||||
vector m_vecLight;
|
||||
float m_flIntensity;
|
||||
float m_flInnerCone;
|
||||
float m_flCone;
|
||||
float m_flFarZ;
|
||||
float m_flNearZ;
|
||||
float m_flRadius;
|
||||
float m_flStyle;
|
||||
string m_strPattern;
|
||||
string m_strTextureName;
|
||||
float m_flFOV;
|
||||
int m_iState;
|
||||
};
|
||||
|
||||
#ifdef CLIENT
|
||||
|
|
|
@ -61,19 +61,6 @@ This entity was introduced in Half-Life (1998).
|
|||
*/
|
||||
class env_sprite:NSRenderableEntity
|
||||
{
|
||||
private:
|
||||
bool m_iIsShader;
|
||||
int m_iToggled;
|
||||
float m_flEffects;
|
||||
|
||||
NETWORKED_STRING(m_strMaterial)
|
||||
NETWORKED_FLOAT(m_flFramerate)
|
||||
|
||||
#ifdef CLIENT
|
||||
int m_iMaxFrame;
|
||||
bool m_bLoops;
|
||||
#endif
|
||||
|
||||
public:
|
||||
void env_sprite(void);
|
||||
|
||||
|
@ -92,7 +79,19 @@ public:
|
|||
virtual void ReceiveEntity(float,float);
|
||||
virtual void SetMaxFrame(int);
|
||||
virtual void SetLoopFlag(bool);
|
||||
#endif
|
||||
|
||||
private:
|
||||
bool m_iIsShader;
|
||||
int m_iToggled;
|
||||
float m_flEffects;
|
||||
|
||||
NETWORKED_STRING(m_strMaterial)
|
||||
NETWORKED_FLOAT(m_flFramerate)
|
||||
|
||||
#ifdef CLIENT
|
||||
int m_iMaxFrame;
|
||||
bool m_bLoops;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
@ -58,10 +58,6 @@ This entity was introduced in Quake II (1997).
|
|||
class
|
||||
func_conveyor:NSRenderableEntity
|
||||
{
|
||||
PREDICTED_FLOAT(m_flSpeed)
|
||||
PREDICTED_VECTOR(m_vecMoveDir)
|
||||
PREDICTED_FLOAT_N(spawnflags)
|
||||
|
||||
public:
|
||||
void(void) func_conveyor;
|
||||
|
||||
|
@ -83,6 +79,10 @@ public:
|
|||
virtual void ReceiveEntity(float, float);
|
||||
#endif
|
||||
|
||||
private:
|
||||
PREDICTED_FLOAT(m_flSpeed)
|
||||
PREDICTED_VECTOR(m_vecMoveDir)
|
||||
PREDICTED_FLOAT_N(spawnflags)
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -32,15 +32,15 @@ This entity was introduced in Half-Life (1998).
|
|||
*/
|
||||
class func_friction:NSEntity
|
||||
{
|
||||
private:
|
||||
float m_flFriction;
|
||||
|
||||
public:
|
||||
void func_friction(void);
|
||||
|
||||
virtual void Touch(entity);
|
||||
virtual void Respawn(void);
|
||||
virtual void SpawnKey(string,string);
|
||||
|
||||
private:
|
||||
float m_flFriction;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -74,18 +74,6 @@ This entity was introduced in Half-Life 2 (2004).
|
|||
*/
|
||||
class func_monitor:NSRenderableEntity
|
||||
{
|
||||
/* these mirror the fields of a point_camera */
|
||||
PREDICTED_VECTOR(m_vecCamOrigin)
|
||||
PREDICTED_VECTOR(m_vecCamAngles)
|
||||
PREDICTED_FLOAT(m_flFOV)
|
||||
PREDICTED_INT(m_iUseSAR)
|
||||
PREDICTED_VECTOR(m_vecFogColor)
|
||||
PREDICTED_FLOAT(m_flFogStart)
|
||||
PREDICTED_FLOAT(m_flFogEnd)
|
||||
PREDICTED_BOOL(m_bState)
|
||||
int m_iCamValue;
|
||||
int m_iUseFog;
|
||||
|
||||
public:
|
||||
void func_monitor(void);
|
||||
|
||||
|
@ -100,6 +88,19 @@ public:
|
|||
virtual void Trigger(entity, triggermode_t);
|
||||
virtual void Input(entity, string, string);
|
||||
#endif
|
||||
|
||||
private:
|
||||
/* these mirror the fields of a point_camera */
|
||||
PREDICTED_VECTOR(m_vecCamOrigin)
|
||||
PREDICTED_VECTOR(m_vecCamAngles)
|
||||
PREDICTED_FLOAT(m_flFOV)
|
||||
PREDICTED_INT(m_iUseSAR)
|
||||
PREDICTED_VECTOR(m_vecFogColor)
|
||||
PREDICTED_FLOAT(m_flFogStart)
|
||||
PREDICTED_FLOAT(m_flFogEnd)
|
||||
PREDICTED_BOOL(m_bState)
|
||||
int m_iCamValue;
|
||||
int m_iUseFog;
|
||||
};
|
||||
|
||||
#ifdef CLIENT
|
||||
|
|
|
@ -63,24 +63,6 @@ This entity was introduced in Half-Life (1998).
|
|||
*/
|
||||
class func_tankmortar:NSVehicle
|
||||
{
|
||||
/* attributes */
|
||||
float m_flYawRate;
|
||||
float m_flPitchRate;
|
||||
vector m_vecTipPos;
|
||||
float m_flFireRate;
|
||||
int m_iDamage;
|
||||
string m_strSpriteSmoke;
|
||||
string m_strSpriteFlash;
|
||||
float m_flSpriteScale;
|
||||
vector m_vecSpread; /* TODO: Needs checking */
|
||||
string m_strSndRotate; /* TODO */
|
||||
float m_flPersistance; /* TODO */
|
||||
float m_flMinRange; /* TODO */
|
||||
float m_flMaxRange; /* TODO */
|
||||
float m_flYawRange; /* TODO */
|
||||
float m_flPitchRange; /* TODO */
|
||||
float m_flFireTime;
|
||||
|
||||
public:
|
||||
void func_tankmortar(void);
|
||||
|
||||
|
@ -101,6 +83,24 @@ public:
|
|||
virtual void SpawnKey(string,string);
|
||||
#endif
|
||||
|
||||
private:
|
||||
/* attributes */
|
||||
float m_flYawRate;
|
||||
float m_flPitchRate;
|
||||
vector m_vecTipPos;
|
||||
float m_flFireRate;
|
||||
int m_iDamage;
|
||||
string m_strSpriteSmoke;
|
||||
string m_strSpriteFlash;
|
||||
float m_flSpriteScale;
|
||||
vector m_vecSpread; /* TODO: Needs checking */
|
||||
string m_strSndRotate; /* TODO */
|
||||
float m_flPersistance; /* TODO */
|
||||
float m_flMinRange; /* TODO */
|
||||
float m_flMaxRange; /* TODO */
|
||||
float m_flYawRange; /* TODO */
|
||||
float m_flPitchRange; /* TODO */
|
||||
float m_flFireTime;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ enumflags
|
|||
class
|
||||
func_vehicle_wheel
|
||||
{
|
||||
|
||||
private:
|
||||
#ifdef CLIENT
|
||||
vector origin_net;
|
||||
|
|
|
@ -47,15 +47,6 @@ This entity was introduced in The Orange Box (2007).
|
|||
*/
|
||||
class info_particle_system:NSPointTrigger
|
||||
{
|
||||
private:
|
||||
#ifdef CLIENT
|
||||
int m_iValue;
|
||||
int m_iEffectID;
|
||||
#endif
|
||||
string m_strEffectName;
|
||||
float m_flInterval;
|
||||
int m_iSpawnCount;
|
||||
|
||||
public:
|
||||
void info_particle_system(void);
|
||||
|
||||
|
@ -70,6 +61,15 @@ public:
|
|||
virtual void Trigger(entity, triggermode_t);
|
||||
virtual void Input(entity, string, string);
|
||||
#endif
|
||||
|
||||
private:
|
||||
#ifdef CLIENT
|
||||
int m_iValue;
|
||||
int m_iEffectID;
|
||||
#endif
|
||||
string m_strEffectName;
|
||||
float m_flInterval;
|
||||
int m_iSpawnCount;
|
||||
};
|
||||
|
||||
#ifdef CLIENT
|
||||
|
|
|
@ -71,18 +71,6 @@ This entity was introduced in Half-Life 2 (2004).
|
|||
*/
|
||||
class light_dynamic:NSPointTrigger
|
||||
{
|
||||
vector m_vecLight;
|
||||
float m_flIntensity;
|
||||
float m_flInnerCone;
|
||||
float m_flCone;
|
||||
float m_flDistance;
|
||||
float m_flRadius;
|
||||
float m_flStyle;
|
||||
string m_strPattern;
|
||||
int m_iState;
|
||||
int m_iStartActive;
|
||||
float m_light; /* our light handle */
|
||||
|
||||
public:
|
||||
void light_dynamic(void);
|
||||
virtual void SpawnKey(string,string);
|
||||
|
@ -100,6 +88,19 @@ public:
|
|||
virtual void EvaluateEntity(void);
|
||||
virtual void Input(entity, string, string);
|
||||
#endif
|
||||
|
||||
private:
|
||||
vector m_vecLight;
|
||||
float m_flIntensity;
|
||||
float m_flInnerCone;
|
||||
float m_flCone;
|
||||
float m_flDistance;
|
||||
float m_flRadius;
|
||||
float m_flStyle;
|
||||
string m_strPattern;
|
||||
int m_iState;
|
||||
int m_iStartActive;
|
||||
float m_light; /* our light handle */
|
||||
};
|
||||
|
||||
#ifdef CLIENT
|
||||
|
|
|
@ -49,12 +49,6 @@ This entity was introduced in Half-Life 2 (2004).
|
|||
*/
|
||||
class point_spotlight:NSPointTrigger
|
||||
{
|
||||
private:
|
||||
PREDICTED_VECTOR(m_vecColor)
|
||||
PREDICTED_FLOAT(m_flBeamLength)
|
||||
PREDICTED_FLOAT(m_flBeamWidth)
|
||||
PREDICTED_INT(m_iState)
|
||||
|
||||
public:
|
||||
void point_spotlight(void);
|
||||
|
||||
|
@ -76,6 +70,12 @@ public:
|
|||
virtual void EvaluateEntity(void);
|
||||
virtual void Input(entity, string, string);
|
||||
#endif
|
||||
|
||||
private:
|
||||
PREDICTED_VECTOR(m_vecColor)
|
||||
PREDICTED_FLOAT(m_flBeamLength)
|
||||
PREDICTED_FLOAT(m_flBeamWidth)
|
||||
PREDICTED_INT(m_iState)
|
||||
};
|
||||
|
||||
#ifdef CLIENT
|
||||
|
|
|
@ -38,8 +38,6 @@ This entity was introduced in Half-Life 2 (2004).
|
|||
*/
|
||||
class prop_physics_multiplayer:NSPhysicsEntity
|
||||
{
|
||||
int m_iPhysicsMode;
|
||||
|
||||
public:
|
||||
void prop_physics_multiplayer(void);
|
||||
|
||||
|
@ -50,6 +48,9 @@ public:
|
|||
virtual void SpawnKey(string,string);
|
||||
virtual void Touch(entity);
|
||||
virtual void TouchThink(void);
|
||||
|
||||
private:
|
||||
int m_iPhysicsMode;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
@ -32,16 +32,6 @@ enumflags
|
|||
|
||||
class prop_vehicle_driveable_wheel
|
||||
{
|
||||
private:
|
||||
float m_flSuspension;
|
||||
float m_flSuspensionForce;
|
||||
|
||||
#ifdef CLIENT
|
||||
vector origin_net;
|
||||
vector velocity_net;
|
||||
vector angles_net;
|
||||
#endif
|
||||
|
||||
public:
|
||||
void prop_vehicle_driveable_wheel(void);
|
||||
|
||||
|
@ -55,6 +45,16 @@ public:
|
|||
virtual void Bounce(vector);
|
||||
virtual void Accel(float,float);
|
||||
virtual void Physics(float,float);
|
||||
|
||||
private:
|
||||
float m_flSuspension;
|
||||
float m_flSuspensionForce;
|
||||
|
||||
#ifdef CLIENT
|
||||
vector origin_net;
|
||||
vector velocity_net;
|
||||
vector angles_net;
|
||||
#endif
|
||||
};
|
||||
|
||||
/*!QUAKED prop_vehicle_driveable (1 0 0) (-50 -50 0) (50 50 70)
|
||||
|
|
|
@ -34,8 +34,6 @@ This entity was introduced in Quake II (1997).
|
|||
*/
|
||||
class trigger_gravity:NSBrushTrigger
|
||||
{
|
||||
float m_flGravity;
|
||||
|
||||
public:
|
||||
void trigger_gravity(void);
|
||||
|
||||
|
@ -47,6 +45,9 @@ public:
|
|||
virtual void Spawned(void);
|
||||
virtual void Respawn(void);
|
||||
virtual void Touch(entity);
|
||||
|
||||
private:
|
||||
float m_flGravity;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue