2011-12-25 13:33:05 +00:00
|
|
|
/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
|
2020-09-26 19:41:58 +00:00
|
|
|
#include "dragger.h"
|
2010-07-29 05:21:18 +00:00
|
|
|
#include <engine/config.h>
|
|
|
|
#include <engine/server.h>
|
2015-09-01 21:15:48 +00:00
|
|
|
#include <engine/shared/config.h>
|
2010-07-29 05:21:18 +00:00
|
|
|
#include <game/generated/protocol.h>
|
|
|
|
#include <game/server/gamecontext.h>
|
2011-12-25 13:00:47 +00:00
|
|
|
#include <game/server/gamemodes/DDRace.h>
|
2021-01-09 14:37:02 +00:00
|
|
|
#include <game/server/player.h>
|
2020-09-26 19:41:58 +00:00
|
|
|
#include <game/server/teams.h>
|
2021-10-14 20:59:39 +00:00
|
|
|
#include <game/version.h>
|
2010-07-29 05:21:18 +00:00
|
|
|
|
2021-01-09 14:18:52 +00:00
|
|
|
#include "character.h"
|
|
|
|
|
2011-12-25 13:51:04 +00:00
|
|
|
CDragger::CDragger(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW,
|
2020-09-26 19:41:58 +00:00
|
|
|
int CaughtTeam, int Layer, int Number) :
|
|
|
|
CEntity(pGameWorld, CGameWorld::ENTTYPE_LASER)
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2021-11-02 16:09:25 +00:00
|
|
|
m_TargetID = -1;
|
2010-11-13 13:22:19 +00:00
|
|
|
m_Layer = Layer;
|
|
|
|
m_Number = Number;
|
2010-08-30 23:45:42 +00:00
|
|
|
m_Pos = Pos;
|
|
|
|
m_Strength = Strength;
|
|
|
|
m_EvalTick = Server()->Tick();
|
|
|
|
m_NW = NW;
|
2019-04-08 19:54:33 +00:00
|
|
|
m_CaughtTeam = CaughtTeam;
|
2010-07-29 05:21:18 +00:00
|
|
|
GameWorld()->InsertEntity(this);
|
2014-05-07 22:53:21 +00:00
|
|
|
|
2020-10-26 14:14:07 +00:00
|
|
|
for(int &SoloID : m_SoloIDs)
|
2014-05-07 22:53:21 +00:00
|
|
|
{
|
2020-10-26 14:14:07 +00:00
|
|
|
SoloID = -1;
|
2014-05-07 22:53:21 +00:00
|
|
|
}
|
2021-11-06 11:52:14 +00:00
|
|
|
|
|
|
|
for(int &SoloEntID : m_SoloEntIDs)
|
|
|
|
{
|
|
|
|
SoloEntID = -1;
|
|
|
|
}
|
2010-07-29 05:21:18 +00:00
|
|
|
}
|
|
|
|
|
2010-08-30 23:45:42 +00:00
|
|
|
void CDragger::Move()
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2021-11-02 16:09:25 +00:00
|
|
|
if(m_TargetID >= 0)
|
|
|
|
{
|
|
|
|
CCharacter *pTarget = GameServer()->GetPlayerChar(m_TargetID);
|
|
|
|
if(!pTarget || pTarget->m_Super || pTarget->IsPaused() || (m_Layer == LAYER_SWITCH && m_Number && !GameServer()->Collision()->m_pSwitchers[m_Number].m_Status[pTarget->Team()]))
|
|
|
|
{
|
|
|
|
m_TargetID = -1;
|
|
|
|
}
|
|
|
|
}
|
2014-05-08 13:42:20 +00:00
|
|
|
|
|
|
|
CCharacter *TempEnts[MAX_CLIENTS];
|
2021-11-06 11:52:14 +00:00
|
|
|
mem_zero(TempEnts, sizeof(TempEnts));
|
|
|
|
|
|
|
|
for(int &SoloEntID : m_SoloEntIDs)
|
|
|
|
{
|
|
|
|
SoloEntID = -1;
|
|
|
|
}
|
2014-05-08 13:42:20 +00:00
|
|
|
|
2015-09-01 21:15:48 +00:00
|
|
|
int Num = GameServer()->m_World.FindEntities(m_Pos, g_Config.m_SvDraggerRange,
|
2021-11-06 11:52:14 +00:00
|
|
|
(CEntity **)TempEnts, MAX_CLIENTS, CGameWorld::ENTTYPE_CHARACTER);
|
2014-05-08 13:42:20 +00:00
|
|
|
|
2011-12-25 13:51:04 +00:00
|
|
|
int Id = -1;
|
|
|
|
int MinLen = 0;
|
2014-05-07 22:53:21 +00:00
|
|
|
CCharacter *Temp;
|
2020-09-26 19:41:58 +00:00
|
|
|
for(int i = 0; i < Num; i++)
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2021-11-06 11:52:14 +00:00
|
|
|
Temp = TempEnts[i];
|
|
|
|
m_SoloEntIDs[i] = Temp->GetPlayer()->GetCID();
|
2020-09-26 19:41:58 +00:00
|
|
|
if(Temp->Team() != m_CaughtTeam)
|
2014-05-07 22:53:21 +00:00
|
|
|
{
|
2021-11-06 11:52:14 +00:00
|
|
|
m_SoloEntIDs[i] = -1;
|
2011-12-25 13:51:04 +00:00
|
|
|
continue;
|
2014-05-07 22:53:21 +00:00
|
|
|
}
|
2020-09-26 19:41:58 +00:00
|
|
|
if(m_Layer == LAYER_SWITCH && m_Number && !GameServer()->Collision()->m_pSwitchers[m_Number].m_Status[Temp->Team()])
|
2014-05-07 22:53:21 +00:00
|
|
|
{
|
2021-11-06 11:52:14 +00:00
|
|
|
m_SoloEntIDs[i] = -1;
|
2011-12-25 13:51:04 +00:00
|
|
|
continue;
|
2014-05-07 22:53:21 +00:00
|
|
|
}
|
2011-12-25 13:51:04 +00:00
|
|
|
int Res =
|
2020-11-04 22:09:22 +00:00
|
|
|
m_NW ?
|
|
|
|
GameServer()->Collision()->IntersectNoLaserNW(m_Pos, Temp->m_Pos, 0, 0) :
|
|
|
|
GameServer()->Collision()->IntersectNoLaser(m_Pos, Temp->m_Pos, 0, 0);
|
2010-07-29 05:21:18 +00:00
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
if(Res == 0)
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2014-05-07 22:53:21 +00:00
|
|
|
int Len = length(Temp->m_Pos - m_Pos);
|
2020-09-26 19:41:58 +00:00
|
|
|
if(MinLen == 0 || MinLen > Len)
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2011-12-25 13:51:04 +00:00
|
|
|
MinLen = Len;
|
|
|
|
Id = i;
|
2010-07-29 05:21:18 +00:00
|
|
|
}
|
2014-05-07 22:53:21 +00:00
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
if(!Temp->Teams()->m_Core.GetSolo(Temp->GetPlayer()->GetCID()))
|
2021-11-06 11:52:14 +00:00
|
|
|
m_SoloEntIDs[i] = -1;
|
2014-05-07 22:53:21 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2021-11-06 11:52:14 +00:00
|
|
|
m_SoloEntIDs[i] = -1;
|
2014-05-07 22:53:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-02 16:09:25 +00:00
|
|
|
if(m_TargetID < 0)
|
2021-11-03 14:13:47 +00:00
|
|
|
m_TargetID = Id != -1 ? TempEnts[Id]->GetPlayer()->GetCID() : -1;
|
2020-11-11 04:41:42 +00:00
|
|
|
|
2021-11-02 16:09:25 +00:00
|
|
|
if(m_TargetID >= 0)
|
2014-05-07 22:53:21 +00:00
|
|
|
{
|
2021-11-02 16:09:25 +00:00
|
|
|
const CCharacter *pTarget = GameServer()->GetPlayerChar(m_TargetID);
|
2021-11-06 11:52:14 +00:00
|
|
|
for(auto &SoloEntID : m_SoloEntIDs)
|
2014-05-07 22:53:21 +00:00
|
|
|
{
|
2021-11-06 11:52:14 +00:00
|
|
|
if(GameServer()->GetPlayerChar(SoloEntID) == pTarget)
|
|
|
|
SoloEntID = -1;
|
2010-07-29 05:21:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-08-30 23:45:42 +00:00
|
|
|
void CDragger::Drag()
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2021-11-02 16:09:25 +00:00
|
|
|
if(m_TargetID < 0)
|
2020-11-04 22:09:22 +00:00
|
|
|
return;
|
2010-09-22 00:03:14 +00:00
|
|
|
|
2021-11-02 16:09:25 +00:00
|
|
|
CCharacter *pTarget = GameServer()->GetPlayerChar(m_TargetID);
|
2014-05-07 22:53:21 +00:00
|
|
|
|
2020-11-04 22:09:22 +00:00
|
|
|
for(int i = -1; i < MAX_CLIENTS; i++)
|
|
|
|
{
|
|
|
|
if(i >= 0)
|
2021-11-06 11:52:14 +00:00
|
|
|
pTarget = GameServer()->GetPlayerChar(m_SoloEntIDs[i]);
|
2020-11-04 22:09:22 +00:00
|
|
|
|
2021-11-02 16:09:25 +00:00
|
|
|
if(!pTarget)
|
2020-11-04 22:09:22 +00:00
|
|
|
continue;
|
2014-05-07 22:53:21 +00:00
|
|
|
|
2020-11-04 22:09:22 +00:00
|
|
|
int Res = 0;
|
|
|
|
if(!m_NW)
|
|
|
|
Res = GameServer()->Collision()->IntersectNoLaser(m_Pos,
|
2021-11-02 16:09:25 +00:00
|
|
|
pTarget->m_Pos, 0, 0);
|
2020-11-04 22:09:22 +00:00
|
|
|
else
|
|
|
|
Res = GameServer()->Collision()->IntersectNoLaserNW(m_Pos,
|
2021-11-02 16:09:25 +00:00
|
|
|
pTarget->m_Pos, 0, 0);
|
|
|
|
if(Res || length(m_Pos - pTarget->m_Pos) > g_Config.m_SvDraggerRange)
|
2020-11-04 22:09:22 +00:00
|
|
|
{
|
2021-11-02 16:09:25 +00:00
|
|
|
pTarget = 0;
|
2020-11-04 22:09:22 +00:00
|
|
|
if(i == -1)
|
2021-11-02 16:09:25 +00:00
|
|
|
m_TargetID = -1;
|
2014-05-07 22:53:21 +00:00
|
|
|
else
|
2021-11-06 11:52:14 +00:00
|
|
|
m_SoloEntIDs[i] = -1;
|
2020-11-04 22:09:22 +00:00
|
|
|
}
|
2021-11-02 16:09:25 +00:00
|
|
|
else if(length(m_Pos - pTarget->m_Pos) > 28)
|
2020-11-04 22:09:22 +00:00
|
|
|
{
|
2021-11-02 16:09:25 +00:00
|
|
|
vec2 Temp = pTarget->Core()->m_Vel + (normalize(m_Pos - pTarget->m_Pos) * m_Strength);
|
|
|
|
pTarget->Core()->m_Vel = ClampVel(pTarget->m_MoveRestrictions, Temp);
|
2010-07-29 05:21:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-08-21 17:32:42 +00:00
|
|
|
void CDragger::Reset()
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2021-05-22 18:02:00 +00:00
|
|
|
m_MarkedForDestroy = true;
|
2010-07-29 05:21:18 +00:00
|
|
|
}
|
|
|
|
|
2010-08-21 17:32:42 +00:00
|
|
|
void CDragger::Tick()
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2020-09-26 19:41:58 +00:00
|
|
|
if(((CGameControllerDDRace *)GameServer()->m_pController)->m_Teams.GetTeamState(m_CaughtTeam) == CGameTeams::TEAMSTATE_EMPTY)
|
2011-12-25 13:00:47 +00:00
|
|
|
return;
|
2020-09-26 19:41:58 +00:00
|
|
|
if(Server()->Tick() % int(Server()->TickSpeed() * 0.15f) == 0)
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2010-11-01 01:51:17 +00:00
|
|
|
int Flags;
|
2011-12-25 13:51:04 +00:00
|
|
|
m_EvalTick = Server()->Tick();
|
|
|
|
int index = GameServer()->Collision()->IsMover(m_Pos.x, m_Pos.y,
|
2020-09-26 19:41:58 +00:00
|
|
|
&Flags);
|
|
|
|
if(index)
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2011-12-25 13:51:04 +00:00
|
|
|
m_Core = GameServer()->Collision()->CpSpeed(index, Flags);
|
2010-07-29 05:21:18 +00:00
|
|
|
}
|
2011-12-25 13:51:04 +00:00
|
|
|
m_Pos += m_Core;
|
2010-08-30 23:45:42 +00:00
|
|
|
Move();
|
2010-07-29 05:21:18 +00:00
|
|
|
}
|
2010-08-30 23:45:42 +00:00
|
|
|
Drag();
|
2010-07-29 05:21:18 +00:00
|
|
|
}
|
|
|
|
|
2010-08-30 23:45:42 +00:00
|
|
|
void CDragger::Snap(int SnappingClient)
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2020-09-26 19:41:58 +00:00
|
|
|
if(((CGameControllerDDRace *)GameServer()->m_pController)->m_Teams.GetTeamState(m_CaughtTeam) == CGameTeams::TEAMSTATE_EMPTY)
|
2011-12-25 13:00:47 +00:00
|
|
|
return;
|
2014-05-07 22:53:21 +00:00
|
|
|
|
2021-11-18 23:42:00 +00:00
|
|
|
if(NetworkClipped(SnappingClient, m_Pos))
|
|
|
|
return;
|
|
|
|
|
|
|
|
CCharacter *pChar = GameServer()->GetPlayerChar(SnappingClient);
|
|
|
|
|
2022-03-04 20:23:32 +00:00
|
|
|
if(SnappingClient != SERVER_DEMO_CLIENT && (GameServer()->m_apPlayers[SnappingClient]->GetTeam() == -1 || GameServer()->m_apPlayers[SnappingClient]->IsPaused()) && GameServer()->m_apPlayers[SnappingClient]->m_SpectatorID != SPEC_FREEVIEW)
|
2021-11-18 23:42:00 +00:00
|
|
|
pChar = GameServer()->GetPlayerChar(GameServer()->m_apPlayers[SnappingClient]->m_SpectatorID);
|
|
|
|
|
|
|
|
if(pChar && pChar->Team() != m_CaughtTeam)
|
|
|
|
return;
|
|
|
|
|
2022-03-04 20:23:32 +00:00
|
|
|
int SnappingClientVersion = SnappingClient != SERVER_DEMO_CLIENT ? GameServer()->GetClientVersion(SnappingClient) : CLIENT_VERSIONNR;
|
2021-10-14 20:59:39 +00:00
|
|
|
|
2021-11-06 11:13:42 +00:00
|
|
|
CNetObj_EntityEx *pEntData = 0;
|
|
|
|
if(SnappingClientVersion >= VERSION_DDNET_SWITCH)
|
|
|
|
{
|
|
|
|
pEntData = static_cast<CNetObj_EntityEx *>(Server()->SnapNewItem(NETOBJTYPE_ENTITYEX, GetID(), sizeof(CNetObj_EntityEx)));
|
|
|
|
if(pEntData)
|
|
|
|
{
|
|
|
|
pEntData->m_SwitchNumber = m_Number;
|
|
|
|
pEntData->m_Layer = m_Layer;
|
|
|
|
pEntData->m_EntityClass = clamp(ENTITYCLASS_DRAGGER_WEAK + round_to_int(m_Strength) - 1, (int)ENTITYCLASS_DRAGGER_WEAK, (int)ENTITYCLASS_DRAGGER_STRONG);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-02 16:09:25 +00:00
|
|
|
CCharacter *pTarget = m_TargetID < 0 ? 0 : GameServer()->GetPlayerChar(m_TargetID);
|
2014-05-07 22:53:21 +00:00
|
|
|
|
2020-10-26 14:14:07 +00:00
|
|
|
for(int &SoloID : m_SoloIDs)
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2020-10-26 14:14:07 +00:00
|
|
|
if(SoloID == -1)
|
2014-05-07 22:53:21 +00:00
|
|
|
break;
|
2010-07-29 05:21:18 +00:00
|
|
|
|
2020-10-26 14:14:07 +00:00
|
|
|
Server()->SnapFreeID(SoloID);
|
|
|
|
SoloID = -1;
|
2014-05-07 22:53:21 +00:00
|
|
|
}
|
2014-01-13 16:00:49 +00:00
|
|
|
|
2014-05-07 22:53:21 +00:00
|
|
|
int pos = 0;
|
2014-01-13 16:00:49 +00:00
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
for(int i = -1; i < MAX_CLIENTS; i++)
|
2011-08-27 10:58:09 +00:00
|
|
|
{
|
2020-09-26 19:41:58 +00:00
|
|
|
if(i >= 0)
|
2014-05-08 13:42:20 +00:00
|
|
|
{
|
2021-11-06 11:52:14 +00:00
|
|
|
pTarget = GameServer()->GetPlayerChar(m_SoloEntIDs[i]);
|
2014-05-07 22:53:21 +00:00
|
|
|
|
2021-11-02 16:09:25 +00:00
|
|
|
if(!pTarget)
|
2014-05-08 13:42:20 +00:00
|
|
|
continue;
|
|
|
|
}
|
2014-05-07 22:53:21 +00:00
|
|
|
|
2021-11-02 16:09:25 +00:00
|
|
|
if(pTarget && NetworkClipped(SnappingClient, pTarget->m_Pos))
|
2014-05-08 13:42:20 +00:00
|
|
|
continue;
|
2014-05-07 22:53:21 +00:00
|
|
|
|
2021-10-14 20:59:39 +00:00
|
|
|
if(i != -1 || SnappingClientVersion < VERSION_DDNET_SWITCH)
|
|
|
|
{
|
|
|
|
int Tick = (Server()->Tick() % Server()->TickSpeed()) % 11;
|
2021-11-18 23:42:00 +00:00
|
|
|
if(pChar && m_Layer == LAYER_SWITCH && m_Number && !GameServer()->Collision()->m_pSwitchers[m_Number].m_Status[pChar->Team()] && (!Tick))
|
2021-10-14 20:59:39 +00:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
2021-11-18 23:42:00 +00:00
|
|
|
// send to spectators only active draggers and some inactive from team 0
|
|
|
|
if(!pChar && !pTarget && m_CaughtTeam != 0)
|
|
|
|
continue;
|
2010-09-08 16:22:11 +00:00
|
|
|
|
2022-03-03 21:56:32 +00:00
|
|
|
if(pChar && pTarget && pTarget->GetPlayer()->GetCID() != pChar->GetPlayer()->GetCID() && ((pChar->GetPlayer()->m_ShowOthers == SHOW_OTHERS_OFF && (pChar->Teams()->m_Core.GetSolo(SnappingClient) || pChar->Teams()->m_Core.GetSolo(pTarget->GetPlayer()->GetCID()))) || (pChar->GetPlayer()->m_ShowOthers == SHOW_OTHERS_ONLY_TEAM && !pTarget->SameTeam(SnappingClient))))
|
2014-06-15 18:51:30 +00:00
|
|
|
{
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
2014-05-07 22:53:21 +00:00
|
|
|
CNetObj_Laser *obj;
|
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
if(i == -1)
|
2014-05-07 22:53:21 +00:00
|
|
|
{
|
|
|
|
obj = static_cast<CNetObj_Laser *>(Server()->SnapNewItem(
|
2021-01-09 20:40:17 +00:00
|
|
|
NETOBJTYPE_LASER, GetID(), sizeof(CNetObj_Laser)));
|
2014-05-07 22:53:21 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
m_SoloIDs[pos] = Server()->SnapNewID();
|
|
|
|
obj = static_cast<CNetObj_Laser *>(Server()->SnapNewItem( // TODO: Have to free IDs again?
|
2020-09-26 19:41:58 +00:00
|
|
|
NETOBJTYPE_LASER, m_SoloIDs[pos], sizeof(CNetObj_Laser)));
|
2014-05-07 22:53:21 +00:00
|
|
|
pos++;
|
|
|
|
}
|
2010-07-29 05:21:18 +00:00
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
if(!obj)
|
2014-05-08 13:42:20 +00:00
|
|
|
continue;
|
2017-03-21 10:24:44 +00:00
|
|
|
obj->m_X = (int)m_Pos.x;
|
|
|
|
obj->m_Y = (int)m_Pos.y;
|
2021-11-02 16:09:25 +00:00
|
|
|
if(pTarget)
|
2014-05-07 22:53:21 +00:00
|
|
|
{
|
2021-11-02 16:09:25 +00:00
|
|
|
obj->m_FromX = (int)pTarget->m_Pos.x;
|
|
|
|
obj->m_FromY = (int)pTarget->m_Pos.y;
|
2014-05-07 22:53:21 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2017-03-21 10:24:44 +00:00
|
|
|
obj->m_FromX = (int)m_Pos.x;
|
|
|
|
obj->m_FromY = (int)m_Pos.y;
|
2014-05-07 22:53:21 +00:00
|
|
|
}
|
|
|
|
|
2021-11-06 11:13:42 +00:00
|
|
|
if(pEntData && i == -1)
|
|
|
|
{
|
|
|
|
obj->m_StartTick = 0;
|
|
|
|
}
|
|
|
|
else
|
2021-10-14 20:59:39 +00:00
|
|
|
{
|
|
|
|
int StartTick = m_EvalTick;
|
|
|
|
if(StartTick < Server()->Tick() - 4)
|
|
|
|
StartTick = Server()->Tick() - 4;
|
|
|
|
else if(StartTick > Server()->Tick())
|
|
|
|
StartTick = Server()->Tick();
|
|
|
|
obj->m_StartTick = StartTick;
|
|
|
|
}
|
2014-05-07 22:53:21 +00:00
|
|
|
}
|
2010-07-29 05:21:18 +00:00
|
|
|
}
|
2010-09-22 10:43:59 +00:00
|
|
|
|
2011-12-25 13:51:04 +00:00
|
|
|
CDraggerTeam::CDraggerTeam(CGameWorld *pGameWorld, vec2 Pos, float Strength,
|
2020-09-26 19:41:58 +00:00
|
|
|
bool NW, int Layer, int Number)
|
2011-12-25 13:51:04 +00:00
|
|
|
{
|
2020-09-26 19:41:58 +00:00
|
|
|
for(int i = 0; i < MAX_CLIENTS; ++i)
|
2011-12-25 13:51:04 +00:00
|
|
|
{
|
2019-04-08 19:54:12 +00:00
|
|
|
m_Draggers[i] = new CDragger(pGameWorld, Pos, Strength, NW, i, Layer, Number);
|
2010-09-22 10:43:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-17 10:58:53 +00:00
|
|
|
//CDraggerTeam::~CDraggerTeam()
|
|
|
|
//{
|
|
|
|
// for (int i = 0; i < MAX_CLIENTS; ++i)
|
|
|
|
// {
|
|
|
|
// delete m_Draggers[i];
|
|
|
|
// }
|
|
|
|
//}
|