getting another player's playerstate_t


(Demolama) #1

is there a way to pass information from another player’s playerstate_t to all the clients?
I know that currently in ET you can not access anyone elses playerstate_t but I know it can be done… I’ve seen in mods like shrub and Osp for RTCW where they can access things from playerstate_t like ammo information for when you place a crosshair over a player… I’ve been working on this one problem for about a month and a half now and I can not figure out how to pass this information

anyone got any ideas or clues to point me in the right direction


(nUllSkillZ) #2

Just a suggestion:
In etmain it’s possible to see the health of other teammates if you focus them with the crosshair.


([RW]FRED) #3

Health & player names arent’ transmitted to all player with the playerstate_t but by the a config strings.


(Rain) #4

Health is sent via tinfo (not in a configstring), but health is sent in the playerstate as well (playerState_t.identifyClientHealth and playerState_t.identifyClient). The tinfo health is used displayed between the time your client sends a health request (usercmd_t.identClient) and the time it ends up in the playerstate, so that the health bar doesn’t momentarily show old info.