PTPM / MTASA

PTPM for Multi Theft Auto: San Andreas
GNU General Public License v3.0
6 stars 2 forks source link

Vehicle_weapons does not work as expected #30

Closed anonymous-d0z42ujxuog5 closed 6 years ago

anonymous-d0z42ujxuog5 commented 7 years ago

In Production

anonymous-d0z42ujxuog5 commented 7 years ago

Conflicts with realdriveby (higher fire rate). It does not work most of the time. Sometimes it briefly showed the HUD for regular vehicles.

Currently script disabled.

anonymous-d0z42ujxuog5 commented 7 years ago

Should be reworked anyway to work like realdriveby, rather than binding it to onPreRender

anonymous-d0z42ujxuog5 commented 7 years ago

Reworked as stated and put live. No compatibility issues with realdriveby have been detected.

anonymous-d0z42ujxuog5 commented 7 years ago

vehicle_nerf still doesn't work as expected, effect also applies to Rustlers and Seasparrows. Reported by various players (ImYassir and Kaevix, I think)

anonymous-d0z42ujxuog5 commented 7 years ago

I remember that I was able to shoot with a Rustler right after take-off but a while later it said 0 ammo. So it wasn't related to an onClientVehicleEnter event. Perhaps an issue in delayedRestrictedVehicleDetection, or potentially where setElementData is used. This was on Chiliad.

anonymous-d0z42ujxuog5 commented 7 years ago

https://github.com/PTPM/MTASA/commit/088f4627652c64ada35d10ff162df7bef29d4f96

anonymous-d0z42ujxuog5 commented 7 years ago

[18:40:35] <&uhm> ah fuck vehicle_nerf seems to be glitched still [18:40:44] <&uhm> i went from 50 ammo to 25 to 4 to 0

Could this be an issue with setElementData on vehicles?

RempRemp commented 7 years ago

No, i would be extremely surprised if there is anything wrong with element data. The issue is almost certainly somewhere else