Strange GetPlayerWeapondata results
#1

What does it mean when GetPlayerWeaponData returns weapon with 0 ammunition in it? Is it some bug or desync? I've never seen it before and lately lots of banned players are telling that they weren't hacking (all banned with 0 ammunition on...)
Reply
#2

I see it sometimes, then when they are holding their weapon, the ammo value is correct. Maybe worth just not banning for '0' ammo? I do think it is a slight bug.
Reply
#3

it seems to be a kind of glitch, i suggest you ignore any data with weaponid but no ammo in that slot, the cause of this isn't known but your players are likely innocent.
Reply
#4

an Antihack tool shouldn't be using GetPlayerWeaponData anyway. It should only use GetPlayerWeapon and GetPlayerAmmo, there's no sense in banning a person for having a weapon unless he actually USES it.
Reply
#5

Quote:
Originally Posted by SilentHuntR
Посмотреть сообщение
an Antihack tool shouldn't be using GetPlayerWeaponData anyway. It should only use GetPlayerWeapon and GetPlayerAmmo, there's no sense in banning a person for having a weapon unless he actually USES it.
But if a player has a minigun, and you cant get it on the server, he is a hacker and should be banned, no matter if he uses the gun or not, or if he hacked 1000 bullets or only 1.
(Even if it is hard to hack a weapon without getting it equipped i think)
Reply
#6

Effective AC code alerts your ingame admins to check suspected cheaters (ones that you cannot verify 100% in code) and automaticlly acts upon "things" that you know ONLY a cheater has or will do.

Easier said then done.

In my experience you cannot rely on GetPlayerWeaponData... it is not always accurate since the weapon data is not always available OR in perfect sync with the server. It is however useful for your admins to use in a command when they check a player. Make sure they understand the limitations of GetPlayerWeaponData before you set them loose with the power to ban players.

Reply
#7

On my server ALL weapons are disallowed so I have less problems, now I made anticheat ban for weapons only with ammo > 0, I think problems should be gone now, thanks for answers!
Reply
#8

Quote:
Originally Posted by SilentHuntR
Посмотреть сообщение
an Antihack tool shouldn't be using GetPlayerWeaponData anyway. It should only use GetPlayerWeapon and GetPlayerAmmo, there's no sense in banning a person for having a weapon unless he actually USES it.
Just ensure there is ammo in a weapon before banning, cheaters are stupid and apply ammo to even melee weapons.

i also advise using some timers to verify the player had a weapon selected for some period of time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)