DiscoveryGC / FLHook

FLHook for Discovery Freelancer
Other
28 stars 33 forks source link

Destroy CLoot on collision #251

Closed Aingar closed 1 year ago

Aingar commented 1 year ago

CLoot containers are effectively unmovable objects, causing any ship that tries to fly into one to either quickly bounce off in case of smaller ships, or spin violently in case of caps. This destroys the CLoot containers when collided at above-trivial speed (default 25, configurable)

Aingar commented 1 year ago

The added check against ci.dwTargetShip is a performance booster, prevents further execution if we're colliding with clientside debris/asteroids, which we don't care about.