mirror of
https://github.com/niwla23/visible_sneak.git
synced 2024-12-25 23:27:37 +01:00
initial commit
This commit is contained in:
commit
d7ae0c525c
21
init.lua
Normal file
21
init.lua
Normal file
@ -0,0 +1,21 @@
|
||||
controls.register_on_press(function(player, key)
|
||||
if key == "sneak" then
|
||||
player:set_properties({
|
||||
visual_size = {x = 1, y = 0.9},
|
||||
collisionbox = {-0.3, 0.0, -0.3, 0.5, 1.7, 0.3},
|
||||
stepheight = 0.5,
|
||||
eye_height = 1.3,
|
||||
})
|
||||
end
|
||||
end)
|
||||
|
||||
controls.register_on_release(function(player, key)
|
||||
if key == "sneak" then
|
||||
player:set_properties({
|
||||
visual_size = {x = 1, y = 1},
|
||||
collisionbox = {-0.3, 0.0, -0.3, 0.5, 1.7, 0.3},
|
||||
stepheight = 0.6,
|
||||
eye_height = 1.47,
|
||||
})
|
||||
end
|
||||
end)
|
1
mod.conf
Normal file
1
mod.conf
Normal file
@ -0,0 +1 @@
|
||||
depends=controls
|
Loading…
Reference in New Issue
Block a user