pmc-sentinel / mod

Utilities & features mod for PMC Sentinel
Apache License 2.0
2 stars 0 forks source link

[Resupply Module] Handle disposable launchers gracefully #4

Open hbjydev opened 2 months ago

hbjydev commented 2 months ago

Currently, if someone has a loaded disposable launcher, the resupply module will just drop the rockets themselves (i.e. the disposable launcher's ammo) into the crate. This is pointless and unhelpful.

We need to:

  1. Check if the launcher is disposable
  2. If it is disposable, put a new launcher in there
  3. If it's not, put the currently-loaded rounds in there

Quick fix would just be statically adding a number of AT4s into the crate, but I don't really like that idea. It should be clever enough to know how to do it.


Possible solutions: