Fix plasmas

This commit is contained in:
btd 2010-10-04 11:45:10 +04:00
parent c87a68b2ba
commit b07cc717d4
3 changed files with 7 additions and 7 deletions

View file

@ -12,7 +12,7 @@ const int RANGE=700;
//////////////////////////////////////////////////
// CGun
//////////////////////////////////////////////////
CGun::CGun(CGameWorld *pGameWorld, vec2 Pos, int Freeze, bool Explosive)
CGun::CGun(CGameWorld *pGameWorld, vec2 Pos, bool Freeze, bool Explosive)
: CEntity(pGameWorld, NETOBJTYPE_LASER)
{
m_Delay = Server()->TickSpeed()*0.3f;

View file

@ -13,14 +13,14 @@ class CGun : public CEntity
int m_EvalTick;
vec2 m_Core;
int m_Freeze;
bool m_Freeze;
bool m_Explosive;
void Fire();
int m_Delay;
public:
CGun(CGameWorld *pGameWorld, vec2 Pos, int Freeze, bool Explosive);
CGun(CGameWorld *pGameWorld, vec2 Pos, bool Freeze, bool Explosive);
virtual void Reset();
virtual void Tick();

View file

@ -273,19 +273,19 @@ bool IGameController::OnEntity(int Index, vec2 Pos, bool Front)
}
else if(Index==ENTITY_PLASMAE)
{
new CGun(&GameServer()->m_World, Pos, 0, true);
new CGun(&GameServer()->m_World, Pos, false, true);
}
else if(Index==ENTITY_PLASMAF)
{
new CGun(&GameServer()->m_World, Pos, 1, false);
new CGun(&GameServer()->m_World, Pos, true, false);
}
else if(Index==ENTITY_PLASMA)
{
new CGun(&GameServer()->m_World, Pos, 1, true);
new CGun(&GameServer()->m_World, Pos, true, true);
}
else if(Index==ENTITY_PLASMAU)
{
new CGun(&GameServer()->m_World, Pos, -1, false);
new CGun(&GameServer()->m_World, Pos, false, false);
}
if(Type != -1)
{