summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-07 02:59:58 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-07 02:59:58 -0300
commit3f1a21bd4530ccf2932a85b4e3fa9d1201704dae (patch)
treeeb0106839b9e5840fda3ea6e1dcaf0440fbd674d /npc
parente43e9778121f1c8cb755907c7eb57d9cb17247f8 (diff)
downloadserverdata-3f1a21bd4530ccf2932a85b4e3fa9d1201704dae.tar.gz
serverdata-3f1a21bd4530ccf2932a85b4e3fa9d1201704dae.tar.bz2
serverdata-3f1a21bd4530ccf2932a85b4e3fa9d1201704dae.tar.xz
serverdata-3f1a21bd4530ccf2932a85b4e3fa9d1201704dae.zip
Fix bugs with shake, but there's an annoying dialog box %%e
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/shake.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/npc/functions/shake.txt b/npc/functions/shake.txt
index 0dabfb602..a20fc6b43 100644
--- a/npc/functions/shake.txt
+++ b/npc/functions/shake.txt
@@ -7,16 +7,20 @@
OnShake:
@shake+=1;
movecam rand(-20,20), rand(-20,20);
- if (@shake < @max_shake)
+
+ if (@shake < @max_shake) {
addtimer(50, "shake::OnShake");
- else
+ } else {
@shake=0;
+ restorecam;
+ closedialog;
+ }
end;
// Called by GM Command
OnGM:
@shake=0;
- @max_shake=rand(4,8);
+ @max_shake=rand(6,10);
addtimer(50, "shake::OnShake");
end;