Player speed, gravity, jump override handler mod for Minetest
|
6 سال پیش | |
---|---|---|
README.md | 7 سال پیش | |
description.txt | 7 سال پیش | |
init.lua | 6 سال پیش | |
license.txt | 7 سال پیش | |
mod.conf | 7 سال پیش | |
screenshot.png | 6 سال پیش | |
settingtypes.txt | 7 سال پیش |
Pova gives mod makers a set of easy to use functions that safely apply overrides for player speed, jump height and gravity effects.
'pova_loop' setting is 1.0 by default and will calculate and set overrides once a second for each player, set to 0.5 for every half a second or 0 to disable.
pova.add_override = function(name, item, def)
Adds a named override which can be used to add or subtract from speed, jump and gravity effects. Custom overrides are also used for specific tasks:
"default" sets default values for each of the settings to which overrides are added.
"min" provides a minimum level for each of the settings.
"max" provides a maximum level for each of the settings.
"force" overrides all and forces a value for each setting (e.g setting speed to 0 when sleeping in beds)
pova.get_override = function(name, item)
pova.del_override = function(name, item)
pova.do_override(player)