1
0
Fork 0
made-in-akira/3d_models/psdx/model 2.2/script.lua

40 lines
1.2 KiB
Lua

require("GSAnimBlend")
local anims = require('JimmyAnims')
local physBone = require('physBoneAPI')
anims(animations.player_bipedal,animations.player_swim)
vanilla_model.PLAYER:setVisible(false)
vanilla_model.ARMOR:setVisible(false)
vanilla_model.HELD_ITEMS:setVisible(true)
vanilla_model.ELYTRA:setVisible(true)
vanilla_model.CAPE:setVisible(false)
models.player_bipedal:setVisible(true)
models.player_swim:setVisible(false)
BlendTime = 2
-- physics
-- function events.entity_init()
-- physBone.physBoneLeftTentacle1:setNodeEnd(1)
-- physBone.physBoneLeftTentacle2:setNodeEnd(4)
-- physBone.physBoneLeftTentacle3:setNodeEnd(4)
-- physBone.physBoneRightTentacle1:setNodeEnd(1)
-- physBone.physBoneRightTentacle2:setNodeEnd(4)
-- physBone.physBoneRightTentacle3:setNodeEnd(4)
--end
local wasThing =false
function events.tick()
local isThing =(player:getPose() == "SWIMMING" and not player:isInWater())
if wasThing ~= isThing then
animations.player_bipedal.getdown_bipedal:setPlaying(isThing)
animations.player_swim.getdown_swim:setPlaying(isThing)
animations.player_bipedal.getup_bipedal:setPlaying(not isThing)
animations.player_swim.getup_swim:setPlaying(not isThing)
end
wasThing = isThing
end