mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-12-26 02:30:39 +01:00
add POVA support (#138)
* add POVA support Add support for POVA player overrides. * add POVA support Add support for POVA player overrides.
This commit is contained in:
parent
579d245a00
commit
4210cafff3
@ -4,6 +4,7 @@ local S = armor_i18n.gettext
|
||||
local skin_previews = {}
|
||||
local use_player_monoids = minetest.global_exists("player_monoids")
|
||||
local use_armor_monoid = minetest.global_exists("armor_monoid")
|
||||
local use_pova_mod = minetest.get_modpath("pova")
|
||||
local armor_def = setmetatable({}, {
|
||||
__index = function()
|
||||
return setmetatable({
|
||||
@ -286,6 +287,14 @@ armor.set_player_armor = function(self, player)
|
||||
"3d_armor:physics")
|
||||
player_monoids.gravity:add_change(player, physics.gravity,
|
||||
"3d_armor:physics")
|
||||
elseif use_pova_mod then
|
||||
-- only add the changes, not the default 1.0 for each physics setting
|
||||
pova.add_override(name, "3d_armor", {
|
||||
speed = physics.speed - 1,
|
||||
jump = physics.jump - 1,
|
||||
gravity = physics.gravity - 1,
|
||||
})
|
||||
pova.do_override(player)
|
||||
else
|
||||
player:set_physics_override(physics)
|
||||
end
|
||||
|
@ -1,6 +1,7 @@
|
||||
default
|
||||
player_monoids?
|
||||
armor_monoid?
|
||||
pova?
|
||||
fire?
|
||||
ethereal?
|
||||
bakedclay?
|
||||
|
Loading…
Reference in New Issue
Block a user