mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-23 19:14:18 +00:00
d64445d983
- 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
29 lines
670 B
C++
29 lines
670 B
C++
/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
|
|
#ifndef GAME_SERVER_ENTITIES_PLASMA_H
|
|
#define GAME_SERVER_ENTITIES_PLASMA_H
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
class CPlasma : public CEntity
|
|
{
|
|
vec2 m_Core;
|
|
int m_Freeze;
|
|
bool m_Explosive;
|
|
int m_ForClientID;
|
|
int m_EvalTick;
|
|
int m_LifeTime;
|
|
|
|
bool HitCharacter(CCharacter *pTarget);
|
|
void Move();
|
|
|
|
public:
|
|
CPlasma(CGameWorld *pGameWorld, vec2 Pos, vec2 Dir, bool Freeze,
|
|
bool Explosive, int ForClientId);
|
|
|
|
void Reset() override;
|
|
void Tick() override;
|
|
void Snap(int SnappingClient) override;
|
|
};
|
|
|
|
#endif // GAME_SERVER_ENTITIES_PLASMA_H
|