SA-MP Forums Archive
Bug on vehicle damage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Bug on vehicle damage (/showthread.php?tid=658301)



Bug on vehicle damage - Paulthaz - 31.08.2018

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


Re: Bug on vehicle damage - solstice_ - 31.08.2018

https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate
https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus


Re: Bug on vehicle damage - Paulthaz - 01.09.2018

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.


Re: Bug on vehicle damage - Dayrion - 01.09.2018

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


Re: Bug on vehicle damage - Paulthaz - 01.09.2018

?


Re: Bug on vehicle damage - Shinja - 01.09.2018

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


Re: Bug on vehicle damage - Paulthaz - 01.09.2018

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


Re: Bug on vehicle damage - Dayrion - 01.09.2018

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)?


Re: Bug on vehicle damage - Paulthaz - 01.09.2018

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


Re: Bug on vehicle damage - Dayrion - 01.09.2018

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`?