Ceisc's Maximum Range Projectiles

by Ceisc

Modifies the behaviour of thrown projectiles (grenade, cluster grenade, defender capsule, poison capsule, slowdown capsule, distractor, and destroyer) so that if you click outside the radius of the maximum range of the item it is thrown as far as possible in the direction of the cursor rather than not being launched at all. Should work for modded projectiles as well as long as they have a capsule_action type of "throw" and are of type "capsule" (not tested).

Tweaks
1 year, 7 months ago
1.1
209
Combat

Changelog

Version: 0.0.8
Date: 2023-04-24
  Bugfixes:
    - fixed changelog (hopefully)
Version: 0.0.7
Date: 2023-04-23
  Bugfixes:
    - stopped player being able to throw projectiles whilst in map mode
    - stopped player being able to throw projectiles when the controller mode is not 'character'
Version: 0.0.6
Date: 2023-04-23
  Bugfixes:
    - made a couple of changes based on advice from Theis (possible nil value for event.player_index and using on_init to set up data)
Version: 0.0.5
Date: 2023-04-23
  Bugfixes:
    - fixed an index into a nil value
Version: 0.0.4
Date: 2023-04-23
  Bugfixes:
    - removed an attempted optimisation around dynamically enabling/disabling the event
Version: 0.0.3
Date: 2023-04-04
  Bugfixes:
    - changed from `stack.use_capsule` to `player.use_from_cursor` as `use_capsule` is only in experimental and also allowed bypass of cooldown when throwing projectiles outside of range.
Version: 0.0.2
Date: 2023-04-04
  Features:
    - Added thumbnail image
Version: 0.0.1
Date: 2023-04-04
  Features:
    - Added functionality for clicking outside the confines of a projectile's range and still having the projectile launch
    - Per-user settings to enable/disable behaviour