ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

Medical - Add corpse carrying and dragging

Open BaerMitUmlaut opened this issue 3 years ago • 9 comments

When merged this pull request will:

  • Allow carrying or dragging corpses

When starting to carry or drag a corpse, a clone without any AI is created, which you can carry or drag just fine. Once the clone is dropped, the original corpse is teleported and the clone is destroyed.

Needs MP testing.

BaerMitUmlaut avatar Oct 04 '20 20:10 BaerMitUmlaut

Kill and drag clone Rifle is left behind and can access inventory on it while clone is being dragged Drop guy and you can access the dead's inventoy from both the gun (at spot of death) and his body (and they are synced 😕 ) edit: also if you shoot "dead" clone, he screams and dies again

image

PabstMirror avatar Oct 06 '20 00:10 PabstMirror

@PabstMirror I can only replicate the "synched duplicate inventories" when the body is still nearby. The inventory action has a maximum distance of 3.5 m according to my tests. I can only access the gun beyond that.

BaerMitUmlaut avatar Oct 11 '20 18:10 BaerMitUmlaut

It is unclear to me whether the weapon being left behind is or not intended behavior. I think it is reasonable for the weapon to be moved alongside the corpse.

serraedoardo avatar Nov 30 '20 18:11 serraedoardo

It should probably be moved as realistically you would have some kind of a sling on you. However, I can see the implementation problem with trying to get those weapons (they are ground weapon holders at that point).

jonpas avatar Nov 30 '20 20:11 jonpas

Moving the weapon holder with the body could cause a bunch more issues (garbage collections might fail, getting the correct weapon holder in itself is a problem, etc), so I'd rather not do that. I don't think it's that big of a deal tbh.

BaerMitUmlaut avatar Nov 30 '20 21:11 BaerMitUmlaut

Non-local body disappears right after drop sometimes. Can't repeat with local bodies. Repro:

  1. Start mission on dedicated server.
  2. Server exec p = createGroup west createUnit ["B_Soldier_F", allPlayers#0, [], 0, "FORM"]; publicVariable "p";
  3. Kill soldier, drag body, drop it. Sometimes body disappears (I have 20-50% chance). If it didn't disappear repeat steps 2-3.
  4. Watch getPosATL p: z < 0 (I have [-3, -15] range).

Dystopian avatar May 27 '21 20:05 Dystopian

Interesting, thank you for testing. Sounds like the body falls through the map? Maybe setting the position remotely would work better?

BaerMitUmlaut avatar May 27 '21 20:05 BaerMitUmlaut

Interesting, thank you for testing. Sounds like the body falls through the map? Maybe setting the position remotely would work better?

I don't know. Can't work on fix yet. Looks like bug with dropped dead body weapon I met in #6029. But it was fixed since I created that PR so I deleted workaround there.

Dystopian avatar May 27 '21 21:05 Dystopian

Doesn't work if JIP for men who are already dead when JIP. Looks like init EH doesn't fire for dead men.

Dystopian avatar Jul 29 '21 12:07 Dystopian