Resource icon

[Open Assets] 10-Line Momentum Version 1.2

This content may be freely modified and/or maintained by anyone.
This is a very simplistic Momentum mod, but i this is another momentum that i cant avoid getting stucked in a wall like in Deep Sea 2 Ramp at the beginning
 
This mod is brilliant, but I have an idea to make it work with lower scales:
In the part that says player.runspeed, replace it with FixedMul(player.runspeed, player.mo.scale) so it multiplies the run speed with the player's scale
 
I've shortened your 6 lines of momentums to 1 line of momentum
your welcome :)
or someone else already did that...
1722926375218.png
 

Attachments

  • L_1-LineMomentum.lua
    162 bytes · Views: 20
You don't need the "then" either
If you really want to shorten it, you can go something like:
Lua:
addHook("PlayerThink",function(p)if p.speed>=fixmul(p.runspeed,p.mo.scale)and(p.cmd.forwardmove or p.cmd.sidemove)p.mo.friction=FU end end)
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top