2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-10 20:29:35 +01:00
hlsdk-xash3d/dlls/gearbox/displacerball.h
Roman Chistokhodov a32bec7904
Opfor fixes (#242)
* Update displacer. Play displacer sounds in player entity

* Detach player from a rope when they get teleported with displacer

* Make snarks enemies to shock troopers

* Don't explicitly set Touch as touch function for displacer ball

* Fix possible null pointer reference is desert eagle
2022-02-01 15:52:27 +05:00

33 lines
795 B
C++

#ifndef DISPLACERBALL_H
#define DISPLACERBALL_H
//=========================================================
// Displacement field
//=========================================================
class CDisplacerBall : public CBaseEntity
{
public:
void Spawn( void );
static void Shoot(entvars_t *pevOwner, Vector vecStart, Vector vecVelocity, Vector vecAngles);
static void SelfCreate(entvars_t *pevOwner, Vector vecStart);
void Touch(CBaseEntity *pOther);
void EXPORT ExplodeThink( void );
void EXPORT KillThink( void );
void Circle( void );
virtual int Save(CSave &save);
virtual int Restore(CRestore &restore);
static TYPEDESCRIPTION m_SaveData[];
CBeam* m_pBeam[8];
void EXPORT FlyThink( void );
void ClearBeams( void );
void ArmBeam( int iSide );
int m_iBeams;
};
#endif