equal
deleted
inserted
replaced
6 local FunctionList, FunctionListNum |
6 local FunctionList, FunctionListNum |
7 local skipFuncList |
7 local skipFuncList |
8 local skipping |
8 local skipping |
9 local baseInputMask = 0xFFFFFFFF |
9 local baseInputMask = 0xFFFFFFFF |
10 local extraInputMask = baseInputMask |
10 local extraInputMask = baseInputMask |
|
11 |
|
12 -- DEBUGGING STUFF -- |
|
13 --[[ Number of animation ticks to decrease whenever AnimUnWait() |
|
14 is called (usually every game tick). Default: 1 |
|
15 Increase this number to increase overall animation speed. ]] |
|
16 local animSpeed = 1 |
11 --------------------------------Animation--------------------------------- |
17 --------------------------------Animation--------------------------------- |
12 --------------------------(In-game cinematics)---------------------------- |
18 --------------------------(In-game cinematics)---------------------------- |
13 |
19 |
14 function AddSkipFunction(anim, func, args) |
20 function AddSkipFunction(anim, func, args) |
15 skipFuncList[anim] = {sfunc = func, sargs = args} |
21 skipFuncList[anim] = {sfunc = func, sargs = args} |
123 return true |
129 return true |
124 end |
130 end |
125 |
131 |
126 function AnimUnWait() |
132 function AnimUnWait() |
127 if globalWait > 0 then |
133 if globalWait > 0 then |
128 globalWait = globalWait - 1 |
134 globalWait = globalWait - animSpeed |
|
135 if globalWait < 0 then |
|
136 globalWait = 0 |
|
137 end |
129 end |
138 end |
130 end |
139 end |
131 |
140 |
132 function AnimWait(gear, time) -- gear is for compatibility with Animate |
141 function AnimWait(gear, time) -- gear is for compatibility with Animate |
133 globalWait = globalWait + time |
142 globalWait = globalWait + time |