Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Un-occupied vehicle.
SetVehicleHealth to 0.
It explodes.
After ~5 seconds, it disappears.
It never respawns.
If you leave the area and come back (stream the vehicle out and back in) it's back and on fire, explodes again, and disappears again, rinse and repeat.
Is bug.
Pls fix.
Thx men.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
A response from a dev/beta tester would be nice, as this is a pretty big issue.
Posts: 187
Threads: 3
Joined: Sep 2009
Reputation:
0
This is AFAIK a known bug when you set the vehicle hp below 250 on a vehicle without any users in it (that could possibly sync its state). Best is to never let the hp go below 251 (I assume you're using the new callback to add unoccupied vehicle damage to your server?).
Would be nice though if it was fixed in a future RC/SA-MP version.
Posts: 161
Threads: 12
Joined: Apr 2012
Reputation:
0
Set HP back?
OnVehicleStreamIn(**)
{
IF HP < 300.0
SETHP
}
Posts: 52
Threads: 14
Joined: May 2011
Reputation:
0
The issue is only in Un-occupied vehicle.
if anyone enter the vehicle, it will not be a problem.
Sorry, My English is not good.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
A fix could probably be scripted for this in PAWN by manually respawning the vehicle 5 seconds after OnVehicleDeath, but it's still a client bug.
Posts: 857
Threads: 23
Joined: Mar 2009
Reputation:
0
They DON'T CALL OnVehicleDeath - and that's the issue!
Posts: 52
Threads: 14
Joined: May 2011
Reputation:
0
OnVehicleDeath - This callback is called when a vehicle is destroyed - either by exploding or becoming submerged in water.
Posts: 89
Threads: 21
Joined: Jun 2011
Reputation:
0
I also tried to Destroy and Re-Create the vehicle but the newly created vehicle comes with the ID of the deleted one so nothing is changed. Callback OnPlayerDeath is still not called. SetVehicleToRespawn and DestroyVehicle and CreateVehicle again do not work because either way they'll have the same ID.
- I think from now on this issue on the Kalcor's hand.
Posts: 263
Threads: 6
Joined: Mar 2012
i think vehicle explosions need to be server-sided. If vehicle is unoccupied call onvehicledeath (vehicleid, INVALID_PLAYER_ID) but server-sided count down for vehicle exploding.. Its really desynced! If player pause while vehicle is in fire its explode for other streamed players. Function like "DisableVehicleExploding ()" will be very good for rp servers! Also for make server-sided and synced vehicle explosion (using the exploding object and manually respawn the vehicle)