Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/assaultcube/AC
/ getclient
Function
getclient
source/src/clientgame.cpp:1058–1062 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1056
}
1057
1058
playerent *getclient(int cn) // ensure valid entity
1059
{
1060
if(cn == player1->clientnum) return player1;
1061
return players.inrange(cn) ? players[cn] : NULL;
1062
}
1063
1064
void initclient()
1065
{
Callers
14
parsepositions
Function · 0.85
parsemessages
Function · 0.85
pm
Function · 0.85
gl_drawhud
Function · 0.85
flagstolen
Function · 0.85
ignore
Function · 0.85
muteplayer
Function · 0.85
clientgame.cpp
File · 0.85
playerinfo
Function · 0.85
dodamage
Function · 0.85
pstat_weap
Function · 0.85
flagmsg
Function · 0.85
Calls
1
inrange
Method · 0.80
Tested by
no test coverage detected