summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/scripts/underwater.lua6
-rw-r--r--res/scripts/underwater_start.lua5
2 files changed, 8 insertions, 3 deletions
diff --git a/res/scripts/underwater.lua b/res/scripts/underwater.lua index 8e1ae1a..0b62ff5 100644 --- a/res/scripts/underwater.lua +++ b/res/scripts/underwater.lua
@@ -1,5 +1,11 @@
1underwater = {} 1underwater = {}
2 2
3function underwater.make_lucas_underwater()
4 PreventCrouching()
5 StartBobbing("lucas")
6 SetAnimationSlowdown("lucas", 2)
7end
8
3function underwater.leave() 9function underwater.leave()
4 AllowCrouching() 10 AllowCrouching()
5 StopBobbing("lucas") 11 StopBobbing("lucas")
diff --git a/res/scripts/underwater_start.lua b/res/scripts/underwater_start.lua index 0852885..56b0b5e 100644 --- a/res/scripts/underwater_start.lua +++ b/res/scripts/underwater_start.lua
@@ -1,9 +1,8 @@
1underwater_start = {} 1underwater_start = {}
2 2
3function underwater_start.init() 3function underwater_start.init()
4 PreventCrouching() 4 loadMapScripts("underwater")
5 StartBobbing("lucas") 5 underwater.make_lucas_underwater()
6 SetAnimationSlowdown("lucas", 2)
7end 6end
8 7
9function underwater_start.talk_to_fish1() 8function underwater_start.talk_to_fish1()