ACF-Team / ACF-3

ACF
MIT License
69 stars 56 forks source link

Move ACF_AmmoExplode and add ACF_AmmoCanCookOff #271

Closed wrefgtzweve closed 2 years ago

wrefgtzweve commented 2 years ago

Currently ACF_AmmoExplode doesn't prevent cook offs and only runs on hitres.Kill and there's no real way to only prevent cook offs. This pr aims to fix both issues.

TwistedTail commented 2 years ago

Changed the way it works a bit, notably Returning false on ACF_AmmoExplode will no longer remove the crate. If the ammo crate doesn't explode, I believe there should be no reason to remove it then.

TwistedTail commented 2 years ago

If that's fine then this can be merged ASAP.

wrefgtzweve commented 2 years ago

Yeah removing it wasn't really needed, that can be done by the person that calls the hook anyway. LGTM