ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

Fuel nozzle remains when removing vehicle

Open bux opened this issue 10 years ago • 3 comments

ACE3 3.4.2 Stable

Mods:

  • @CBA_A3
  • @ace
  • @tfar
  • @bwa3
  • @sobmod
  • @bw_isaf

Description:

  • When deleting both the refueling vehicle and the vehicle that is getting refueled as zeus, the fuel nozzle remains on the ground and doesn't get removed.

image

image

Steps to reproduce:

  • Be Zeus
  • Spawn a e.g. HEMTT Fuel and a second vehicle
  • Edit the second vehicle and empty the fuel tank
  • Connect the second vehicle using the HEMTT's fuel nozzle
  • Start the refueling process
  • Delete both vehicles

Where did the issue occur?

  • Multiplayer

RPT log file: https://gist.github.com/bux578/a91760d1ef6e09c3b345

bux avatar Feb 16 '16 20:02 bux

Tagging @GitHawk

bux avatar Feb 16 '16 20:02 bux

I can use the PFH players get while carrying the nozzle, but there are still loop holes.

If the player interacting with the fuel truck disconnects, no one else is running that PFH. So the Zeus can delete the vehicle and the nozzle will remain.

Anyone having a better idea? I'd love to have a pre-delete event, in which I could call fnc_reset on the fuel truck.

GitHawk avatar Feb 17 '16 08:02 GitHawk

If the player interacting with the fuel truck disconnects

On the server:

addMissionEventHandler ["HandleDisconnect", {
    params ["_disconnectedPlayer"];
    // If the player was refuelling, cleanup
}];

Of course you'd need to set some public variables on the refuelling unit indicating to the server what should be cleanedup.

Various ACE modules do exactly this, like captives, dragging, etc

Anyone having a better idea? I'd love to have a pre-delete event,

Nah, I don't think we can do that reliably.

nicolasbadano avatar Feb 17 '16 13:02 nicolasbadano