ENTTYPE_PICKUPS
and check that their type is POWERUP_ARMOR
CPickup
int Type();
that returns m_Type
rather then making m_Type
public btwbool CWeapon::IsShieldNear()
{
CPickup *apEnts[2];
int Num = GameWorld()->FindEntities(m_Pos, 20.0f, (CEntity**)apEnts, 2, CGameWorld::ENTTYPE_PICKUP);
for (int i = 0; i < Num; i++)
{
CPickup *pShield = apEnts[i];
if (pShield->GetType() == POWERUP_ARMOR)
{
return true;
}
}
return false;
}
@Learath2 this works, is it right?CPickup *pEnt;
and pass (CEntity **)&pEnt
insteadm_apPlayers[ClientID]->m_Score = (Score()->PlayerData(ClientID)->m_BestTime) ? Score()->PlayerData(ClientID)->m_BestTime : -9999;
from changeinfo to OnClientEnter()1073b72
Ignore DNSBL on "empty" servers. - Learath2
f1867e0
Grammar fix "then->than" - Learath2
2e137e6
net_addr_comp_ip -> net_addr_comp_noport - Learath2
254ff3d
Oversight - Learath2
5b95edd
DRY with net_addr_comp_noport - Learath2
571b069
Small cleanup of *Mute functions - Learath2
1f4585c
Merge #1337 - bors[bot]CDataFileWriter::GetExtendedItemTypeIndex
could allow an attqcker to craft a map that crashes the client.