ACE3
ACE3 copied to clipboard
Medical - Add corpse carrying and dragging
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.
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
@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.
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.
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).
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.
Non-local body disappears right after drop sometimes. Can't repeat with local bodies. Repro:
- Start mission on dedicated server.
- Server exec
p = createGroup west createUnit ["B_Soldier_F", allPlayers#0, [], 0, "FORM"]; publicVariable "p";
- Kill soldier, drag body, drop it. Sometimes body disappears (I have 20-50% chance). If it didn't disappear repeat steps 2-3.
- Watch
getPosATL p
:z
< 0 (I have [-3, -15] range).
Interesting, thank you for testing. Sounds like the body falls through the map? Maybe setting the position remotely would work better?
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.
Doesn't work if JIP for men who are already dead when JIP. Looks like init EH doesn't fire for dead men.