Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » PlayerDataClass
Re: PlayerDataClass [message #443585 is a reply to message #430418] Sat, 05 February 2011 17:51 Go to previous messageGo to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma:
General (3 Stars)
   
On Damage

int playerId = Get_Player_ID(obj);
   cPlayer *p = FindPlayer(playerId);
   if(!p) return;

	CrotchShots[playerId] = p->CrotchShots;
	LegShots[playerId] = p->LegShots;
	ArmShots[playerId] = p->ArmShots;
	ShotsFired[playerId] = p->ShotsFired;
	headShotCount[playerId] = p->HeadShots;


[17:30:55] [PLAYERDATAINFO] Noob2[1]

[17:30:55] 	[SHOTSFIRED] 1

[17:30:55] 	[LEGSHOTS] 0

[17:30:55] 	[CROTCHSHOTS] 0

[17:30:55] 	[ARMSHOTS] 0

[17:30:55] 	[HEADSHOTS] 0

[17:30:55] [PLAYERDATAINFO] Noob[2]

[17:30:55] 	[SHOTSFIRED] 358

[17:30:55] 	[LEGSHOTS] 6

[17:30:55] 	[CROTCHSHOTS] 0

[17:30:55] 	[ARMSHOTS] 0

[17:30:55] 	[HEADSHOTS] 1


Not sure if this helps

The client is sending wrong values or only sending sometimes.

Noob2 fired 4 shots to the head It says i fired 1 shot.

Player Noob didn't fire that many shots with a pistol. He had at least 8 headshots and had arm shots


Game 2 Another game of output

[18:03:34] [PLAYERDATAINFO] Noob2[1]

[18:03:34] 	[SHOTSFIRED] 23

[18:03:34] 	[LEGSHOTS] 3

[18:03:34] 	[CROTCHSHOTS] 2

[18:03:34] 	[ARMSHOTS] 1

[18:03:34] 	[HEADSHOTS] 6

[18:03:34] [PLAYERDATAINFO] Noob[2]

[18:03:34] 	[SHOTSFIRED] 649

[18:03:34] 	[LEGSHOTS] 6

[18:03:34] 	[CROTCHSHOTS] 0

[18:03:34] 	[ARMSHOTS] 0

[18:03:34] 	[HEADSHOTS] 54

[18:03:34] [PLAYERDATAINFO] Pissedhotrod[3]

[18:03:34] 	[SHOTSFIRED] 9

[18:03:34] 	[LEGSHOTS] 0

[18:03:34] 	[CROTCHSHOTS] 0

[18:03:34] 	[ARMSHOTS] 0

[18:03:34] 	[HEADSHOTS] 0

[18:03:34] [PLAYERDATAINFO] dczxcx[4]

[18:03:34] 	[SHOTSFIRED] 126

[18:03:34] 	[LEGSHOTS] 0

[18:03:34] 	[CROTCHSHOTS] 0

[18:03:34] 	[ARMSHOTS] 0

[18:03:34] 	[HEADSHOTS] 0



http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Sat, 05 February 2011 18:06]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ability to change worldbox size?
Next Topic: Tunnel Beacons
Goto Forum:
  


Current Time: Sat Nov 23 09:31:09 MST 2024

Total time taken to generate the page: 0.00717 seconds