Mike's Cops and Robbers

Community => Bug Reports => Invalid Bugs => Topic started by: Hank_Montgomery on March 31, 2023, 07:57:08 am

Title: Buying car armor doesn't work while being shot at (sometimes)
Post by: Hank_Montgomery on March 31, 2023, 07:57:08 am
1:15 It seems to me it could be associated with the engine breaking script, but needs further testing i believe.
Title: Re: Buying car armor doesn't work while being shot at (sometimes)
Post by: Goldenman on March 31, 2023, 08:04:04 am
i think it won't change the car's health when it reaches a certain amount but as it not refunds you, I'll test it out thanks for reporting
Title: Re: Buying car armor doesn't work while being shot at (sometimes)
Post by: Mike on April 05, 2023, 09:39:50 pm
I think it's just desync there. I think the server gives your vehicle 2000hp but you get shot before it has a chance to sync back to the server that it has 2000hp, so when you get shot immediately after getting 2000hp it reduces the vehicle health from the old health, not from 2000hp.

SA-MP sync is a pain in the ass to deal with.
- Server sets vehicle health to 2000hp
- This is communicated to nearby clients (players)
- One of them (closest?) syncs back to the server 'yes, vehicle now has 2000hp thanks'
- If the server gets the vehicle's health between it being set and it being synced back, this sort of thing happens.

I really should introduce server-sided health. It would reduce cheating, too.

All that being said, I kinda think if you get shot/damaged while in that black screen it should cancel your transaction... that delay was added literally for this reason - people can just nip into a gas station mid gunfight and heal their vehicle while being shot at...
Title: Re: Buying car armor doesn't work while being shot at (sometimes)
Post by: Ardealul on October 04, 2023, 08:41:12 pm
Moved to Invalid Bugs.