Posts: 27
Threads: 12
Joined: Jan 2015
Reputation:
0
According to wiki prior to version 0.3z RC1 this bug was still in place but it's still a bug in the new version and I can't seem to work around with it and apply it in my anti cheat.
Posts: 3,133
Threads: 71
Joined: Dec 2013
Reputation:
0
It doesn't say RC1. It says R1-2. This is obviously a client and not a server version. Although, I doubt the validity of such information try using the R1-2 client.
UPDATE: Apparently MP2 updated the wiki page with that new info-bit however I do not recall anything being changed. What is the function reporting, -1?
Posts: 27
Threads: 12
Joined: Jan 2015
Reputation:
0
Nope it's returning the weapon ID which the player entered with to the vehicle, so if I switch to another weapon inside the vehicle the function will not return the current weapon ID.
Posts: 3,133
Threads: 71
Joined: Dec 2013
Reputation:
0
That's what it's supposed to be I believe. I never saw anything suggesting that the client suddenly sent such sync information as a passenger.
FYI: The reason this occurs is because weapon data isn't being sent to the server while players are in a vehicle. It's supposed to be this way - there is no real way to detect the weaponID of a player whilst in a vehicle. However you can use SetPlayerArmedWeapon to prevent them from using any weapons inside a vehicle.
Posts: 3,133
Threads: 71
Joined: Dec 2013
Reputation:
0
Yes however I believe that it means when the vehicle is first entered. With that logic, it won't detect if weapons are changed / removed with SetPlayerArmedWeapon.
Posts: 3,324
Threads: 96
Joined: Sep 2013
Unless however we hooked SetPlayerArmedWeapon and GetPlayerWeapon to return the weapon that was set it would be fixed. This would be a great addition to the fixes include.