PlayerDataClass [message #430418] |
Wed, 09 June 2010 07:43 |
|
cAmpa
Messages: 597 Registered: March 2006
Karma: 0
|
Colonel |
|
|
Will there be a fix for the stats of the PlayerDataClass?
Currently the server knows a shit about what the client does.
Bückstabü!
|
|
|
|
|
|
Re: PlayerDataClass [message #430747 is a reply to message #430746] |
Tue, 15 June 2010 09:34 |
|
cAmpa
Messages: 597 Registered: March 2006
Karma: 0
|
Colonel |
|
|
StealthEye wrote on Tue, 15 June 2010 18:24 | If you can figure out exactly what causes the inconsistencies, I may be able to fix it. But without that, I am estimating it will take too much time.
|
All what i know is, the client doesn't send the information what got exactly got hit, only the damage. RR for example sends it about the RR netcode now.
Bückstabü!
|
|
|
Re: PlayerDataClass [message #443585 is a reply to message #430418] |
Sat, 05 February 2011 17:51 |
|
Gen_Blacky
Messages: 3250 Registered: September 2006
Karma: 1
|
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
[Updated on: Sat, 05 February 2011 18:06] Report message to a moderator
|
|
|
Re: PlayerDataClass [message #443679 is a reply to message #430418] |
Tue, 08 February 2011 07:00 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma: 0
|
General (5 Stars) |
|
|
I suspect those stats are purely for single player use and they never designed the netcode to communicate the necessary data, hence why there is no way to access it in multiplayer mode. Whilst it is possible to modify the netcode so that data DOES get sent, it's unlikely to ever get done.
[Updated on: Tue, 08 February 2011 07:01] Report message to a moderator
|
|
|