Guest User

Untitled

a guest
Jun 29th, 2015
174
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DoorButton:
  2. visual:
  3. matanims:
  4. - mat: ButtonMat
  5. flags:
  6. - stopped
  7. logic:
  8. modifiers:
  9. - cursor: poised
  10. flags:
  11. - localelement
  12. activators:
  13. - type: objectinvolume
  14. remote: DoorButtonRgn
  15. triggers:
  16. - any
  17. conditions:
  18. - type: activator
  19. activators:
  20. - type: picking
  21. - type: objectinbox
  22. satisfied: true
  23. actions:
  24. - type: responder
  25. ref: :DoorOpen
  26.  
  27. DoorLock2:
  28. animations:
  29. - name: DoorLock2
  30. autostart: 0
  31. loop: 0
  32.  
  33. DoorLock1:
  34. animations:
  35. - name: DoorLock1
  36. autostart: 0
  37. loop: 0
  38.  
  39. DoorWheel2:
  40. animations:
  41. - name: DoorWheel2
  42. autostart: 0
  43. loop: 0
  44.  
  45. DoorWheel1:
  46. animations:
  47. - name: DoorWheel1
  48. autostart: 0
  49. loop: 0
  50.  
  51. Door2:
  52. animations:
  53. - name: DoorOpen2
  54. autostart: 0
  55. loop: 0
  56.  
  57. DoorButtonOneshot:
  58. logic:
  59. actions:
  60. - type: oneshot
  61. name: DoorButtonOneshot
  62. oneshot:
  63. animation: DoorButtonTouch
  64.  
  65. Door1:
  66. animations:
  67. - name: DoorOpen1
  68. autostart: 0
  69. loop: 0
  70. logic:
  71. actions:
  72. - type: responder
  73. name: DoorOpen
  74. responder:
  75. states:
  76. - cmds:
  77. - type: oneshotmsg
  78. params:
  79. receivers:
  80. - oneshotmod:DoorButtonOneshot
  81. callbacks:
  82. - marker: "DoorButtonTouch"
  83. receiver: respondermod:DoorOpen
  84. user: 0
  85. waiton: -1
  86. - type: animcmdmsg
  87. params:
  88. receivers:
  89. - 006D:ButtonLamp
  90. animname: ButtonPress
  91. cmds:
  92. - continue
  93. waiton: 0
  94. - type: animcmdmsg
  95. params:
  96. receivers:
  97. - 0043:ButtonMat-ButtonLayer
  98. cmds:
  99. - continue
  100. waiton: -1
  101. - type: animcmdmsg
  102. params:
  103. receivers:
  104. - 0043:FlareMat-FlareTex
  105. cmds:
  106. - continue
  107. waiton: -1
  108. - type: animcmdmsg
  109. params:
  110. receivers:
  111. - 006D:Door1
  112. animname: DoorOpen1
  113. cmds:
  114. - setforewards
  115. - continue
  116. waiton: -1
  117. - type: animcmdmsg
  118. params:
  119. receivers:
  120. - 006D:Door2
  121. animname: DoorOpen2
  122. cmds:
  123. - setforewards
  124. - continue
  125. waiton: -1
  126. - type: animcmdmsg
  127. params:
  128. receivers:
  129. - 006D:DoorWheel1
  130. animname: DoorWheel1
  131. cmds:
  132. - setforewards
  133. - continue
  134. waiton: -1
  135. - type: animcmdmsg
  136. params:
  137. receivers:
  138. - 006D:DoorWheel2
  139. animname: DoorWheel2
  140. cmds:
  141. - setforewards
  142. - continue
  143. waiton: -1
  144. - type: animcmdmsg
  145. params:
  146. receivers:
  147. - 006D:DoorLock2
  148. animname: DoorLock2
  149. cmds:
  150. - setforewards
  151. - continue
  152. waiton: -1
  153. - type: animcmdmsg
  154. params:
  155. receivers:
  156. - 006D:DoorLock1
  157. animname: DoorLock1
  158. cmds:
  159. - setforewards
  160. - continue
  161. waiton: -1
  162. nextstate: 1
  163. waittocmd:
  164. - key: 0 #cmds with waiton of 0
  165. msg: 0 #wait for callback for user 0
  166. - cmds:
  167. - type: oneshotmsg
  168. params:
  169. receivers:
  170. - oneshotmod:DoorButtonOneshot
  171. callbacks:
  172. - marker: "DoorButtonTouch"
  173. receiver: respondermod:DoorOpen
  174. user: 0
  175. waiton: -1
  176. - type: animcmdmsg
  177. params:
  178. receivers:
  179. - 006D:ButtonLamp
  180. animname: ButtonPress
  181. cmds:
  182. - continue
  183. waiton: 0
  184. - type: animcmdmsg
  185. params:
  186. receivers:
  187. - 0043:ButtonMat-ButtonLayer
  188. cmds:
  189. - continue
  190. waiton: -1
  191. - type: animcmdmsg
  192. params:
  193. receivers:
  194. - 0043:FlareMat-FlareTex
  195. cmds:
  196. - continue
  197. waiton: -1
  198. - type: animcmdmsg
  199. params:
  200. receivers:
  201. - 006D:Door1
  202. animname: DoorOpen1
  203. cmds:
  204. - setbackwards
  205. - continue
  206. waiton: -1
  207. - type: animcmdmsg
  208. params:
  209. receivers:
  210. - 006D:Door2
  211. animname: DoorOpen2
  212. cmds:
  213. - setbackwards
  214. - continue
  215. waiton: -1
  216. - type: animcmdmsg
  217. params:
  218. receivers:
  219. - 006D:DoorWheel1
  220. animname: DoorWheel1
  221. cmds:
  222. - setbackwards
  223. - continue
  224. waiton: -1
  225. - type: animcmdmsg
  226. params:
  227. receivers:
  228. - 006D:DoorWheel2
  229. animname: DoorWheel2
  230. cmds:
  231. - setbackwards
  232. - continue
  233. waiton: -1
  234. - type: animcmdmsg
  235. params:
  236. receivers:
  237. - 006D:DoorLock2
  238. animname: DoorLock2
  239. cmds:
  240. - setbackwards
  241. - continue
  242. waiton: -1
  243. - type: animcmdmsg
  244. params:
  245. receivers:
  246. - 006D:DoorLock1
  247. animname: DoorLock1
  248. cmds:
  249. - setbackwards
  250. - continue
  251. waiton: -1
  252. nextstate: 0
  253. waittocmd:
  254. - key: 0
  255. msg: 0
  256. curstate: 0
  257. flags:
  258. - detecttrigger
  259.  
  260. ButtonLamp:
  261. animations:
  262. - name: ButtonPress
  263. autostart: 0
  264. loop: 0
  265.  
  266. ButtonFlare:
  267. visual:
  268. matanims:
  269. - mat: FlareMat
  270. flags:
  271. - stopped
  272. sprite:
  273. flags:
  274. - facecam
  275. - pivotfavory
RAW Paste Data