Changeset 582 for abuse/trunk/data-abuse/lisp/teleport.lsp
- Timestamp:
- May 6, 2011, 12:47:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/data-abuse/lisp/teleport.lsp
r54 r582 7 7 (with_object (get_object 0) 8 8 (if (eq (otype) TP_DOOR) 9 (if (eq is_opening 0) 9 (if (eq is_opening 0) 10 10 (if (and (< (distx) 100) (< (disty) 80)) 11 11 T … … 32 32 (play_sound DOOR_DOWN 127 (x) (y))) 33 33 (set_current_frame (- (current_frame) 1))))) 34 34 35 35 36 36 (defun tpd_ai () ;; teleporting door ai … … 49 49 (othery (with_object (get_object 0) (y)))) 50 50 (with_object (get_object 0) (link_object player)) 51 (with_object player (progn 52 (set_x otherx) 51 (with_object player (progn 52 (set_x otherx) 53 53 (set_y othery))))))) 54 54 T) … … 56 56 57 57 (defun tp_door_cons () (set_xvel -1)) 58 (defun tp_door_draw () (set_ambient_light (bg) (xvel)) (draw)) 58 (defun tp_door_draw () (set_ambient_light (bg) (xvel)) (draw)) 59 59 60 60 (def_char TP_DOOR
Note: See TracChangeset
for help on using the changeset viewer.