Bug on vehicle damage
#1

My server has a bug in which I can not figure out what it is, it's a bug when the player shoots a vehicle and its damage does not go down, it looks like it's armored, even if it shoots bazooka it does not explode automatically.

Anyone have any idea what it is?

OBS: You have no vehicle damage system in my GM
Reply
#2

https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate
https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus
Reply
#3

It sounds like you did not understand what I meant, I have a bug in GM that is not getting damage in vehicles, I do not want to program something so the vehicle gets damage.
Reply
#4

Lower basic vehicle's hp or there is smth that set regulary hp to an amount.
Reply
#5

?
Reply
#6

By default, unocuppied vehicles don't take damage, there are some scripts that can disable this
Reply
#7

the vehicle was already busy, I'm using SetPlayerTeam on my GM, and the EnableVehicleFriendlyFire is also on the OnGamemo
odeinit, returning 1 in the OnPlayerWeaponShot and even then the damage on the vehicle is not giving when someone else shoots the vehicle I'm in
Reply
#8

Quote:
Originally Posted by Paulthaz
Посмотреть сообщение
the vehicle was already busy, I'm using SetPlayerTeam on my GM, and the EnableVehicleFriendlyFire is also on the OnGamemo
odeinit, returning 1 in the OnPlayerWeaponShot and even then the damage on the vehicle is not giving when someone else shoots the vehicle I'm in
Vehicle's health doesn't decrease (be sure by using /dl)?
Reply
#9

Yes, I am using the /dl and yet the health of the vehicle continues 1000.0
Reply
#10

Quote:
Originally Posted by Paulthaz
Посмотреть сообщение
Yes, I am using the /dl and yet the health of the vehicle continues 1000.0
Without be decresed follow be an automatically increase?

If not, there is a `return 0` in the callback `OnPlayerWeaponShot`?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)