physicsh on GitHub
The mod adds four functions which can be accessed in the global physicsh table.
player can either be the PlayerRef itself or the player name for the sake of convenience. values can either be nil to remove a modifier, or a table containing speed, jump and/or gravity values.
- physicsh.set_multiplier(player, id, values): Sets the multiplication modifier named id to values.
- physicsh.set_adder(player, id, values): Sets the addition modifier named id to values.
- physicsh.get_multiplier(player, id): Gets the multiplication modifier named id.
- physicsh.get_adder(player, id): Gets the addition modifier named id.
This API may change any time - and indeed, the information above may not be accurate to the latest version of physicsh - but if enough mods come to depend on it then I will ensure that I don't break backwards compatibility.
TenPlus1 also made a mod which you should check out: pova on GitHub. They do basically the same thing but go about it in different ways.