Momentum

by DataCpt

Train, cars and other vehicles violently transfer their momentum to the player on collision! Persists through death! Configurable.

Content
3 months ago
2.0
400
Transportation Trains Combat Character Enemies

Changelog

Version: 1.0.1
Date: 2025.05.06
  Features:
    - Added a setting to customise the collision damage dealt to the player.
    - Added a setting to customise the damage dealt to things the player bodies collide with.
    - Added a setting to set the maximum speed per tick of the player bodies.
  Bugfixes:
    - Potentially fixed a crash for collisions with non-objects(?). Credit to @naiad.
Version: 1.0.0
Date: 2025.04.27
  Major Features:
    - Added support for cars, tanks and other modded vehicles. 
    - Added collision damage to any unit your flying body hits.
    - Your body will now fly through multiple entities if you are hit hard enough, dealing their hp in damage and slowing you. Corpses will not take damage.
  Features:
    - Your body will now slide towards the final entity you collide into if you do not destroy it.
    - Added a maximum travel distance per tick that doesn't impact maximum travel distance.
    - Added velocity rules for hitbox enlargement.
  Minor Features:
    - Added a minimum hitbox size to improved edge case collision detection.
    - Improved error handling.
  Optimizations:
    - Improved smoothness and accuracy of momentum calculations.
  Changes:
    - Increased default momentum setting to 1.5.
  Bugfixes:
    - Fixed momentum direction when being hit by reversing locomotives and wagons.
    - Fixed getting stuck in some objects when sliding.
    - Fixed getting stuck in trains.
  Info:
    - Added an icon.
    - Bumped version requirement for data-utils.
Version: 0.9.1
Date: 2025.04.19
  Major Features:
    - Added support for corpses. Now you can watch your body slide away after any train related incident.
  Optimizations:
    - Improved runtime performance impact.
Version: 0.9.0
Date: 2025.04.19
  Major Features:
    - Train collisions with players now accelerate the player backwards.
    - Working collisions. If you hit a solid object you take extra damage based on the current speed.
    - Has a setting to multiply the collision momentum. No restrictions.
  Info:
    - Initial public release.
  Locale:
    - Basic en locale support.