ddnet/src/game/server/entities/dragger_beam.h
c0d3d3v d64445d983
Rework Turrets
- Make the code look similar to the code of the draggers
- Make correct switching for solo players, as described here: https://github.com/ddnet/ddnet/pull/4980
- Remove NetworkClipping Bug
- Added intentionally the "Feature" to only explode at one tee
- Make plasma bullets only explode for solo tees if they are solo, not
  for the rest of the team
2022-05-22 21:59:47 +02:00

28 lines
691 B
C++

/* See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
#ifndef GAME_SERVER_ENTITIES_DRAGGER_BEAM_H
#define GAME_SERVER_ENTITIES_DRAGGER_BEAM_H
#include "dragger.h"
#include <game/server/entity.h>
class CDraggerBeam : public CEntity
{
CDragger *m_pDragger;
float m_Strength;
bool m_IgnoreWalls;
int m_ForClientID;
int m_EvalTick;
bool m_Active;
public:
CDraggerBeam(CGameWorld *pGameWorld, CDragger *pDragger, vec2 Pos, float Strength, bool IgnoreWalls, int ForClientID);
void SetPos(vec2 Pos);
virtual void Reset();
virtual void Tick();
virtual void Snap(int SnappingClient);
};
#endif // GAME_SERVER_ENTITIES_DRAGGER_BEAM_H