KoffeinFlummi / AGM

Authentic Gameplay Modification for A3 | THIS PROJECT IS NO LONGER BEING WORKED ON. ALL ISSUES AND PULL REQUESTS WILL BE IGNORED.
Other
125 stars 84 forks source link

AGM_SwitchUnits, AI becomes invincible on player disconnect #2064

Open captainblaffer opened 9 years ago

captainblaffer commented 9 years ago

How to reproduce:

  1. Play on dedicated server.
  2. use AGM_Switchunits to take control of an AI.
  3. Disconnect from the mission.
  4. Reconnect to the mission.
  5. Go to the location where the AI you controlled was.
  6. Notice there is an unconcious AI on the ground. AGM medical diagnose says he is dead, however when shooting him he won't go into ragdoll, and the body still has collision.

Note: I've also tested this with headless client controlled AI. In that case the AI would not go unconcious but instead turn into invulnerable soldiers.

captainblaffer commented 9 years ago

The issue seems to be more serious.

I've had an instance now where any AI the player switched to before disconnecting became invincible. The player could also no longer take control over these AI upon reconnect.

I tried to reproduce it afterwards(without restarting the mission) but this time the issue didn't occur.

captainblaffer commented 9 years ago

Had the issue occur without headless client enabled. Arma v1.4 Single invincible AI. Killing it using setdamage 1 on the server worked.