Changeset 582 for abuse/trunk/data-abuse/lisp/doors.lsp
- Timestamp:
- May 6, 2011, 12:47:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/data-abuse/lisp/doors.lsp
r54 r582 2 2 ;; See licensing information for more details on usage rights 3 3 4 (defun general_door_ai (push?) 4 (defun general_door_ai (push?) 5 5 (select (aistate) 6 6 (0 (if (> (total_objects) 0) ; are we linked to a key? … … 16 16 nil))) 17 17 (1 (if (not (next_picture)) ; wait till open animation finishes 18 (progn 18 (progn 19 19 (set_state stopped) ; set opened animation 20 (go_state 2)))) 20 (go_state 2)))) 21 21 22 22 (2 (if (> (total_objects) 0) ; wait till level editor links us to a key 23 (progn 23 (progn 24 24 (set_state blocking) 25 25 (go_state 0)) … … 45 45 (1 ; opening 46 46 (if (next_picture) nil 47 (progn 47 (progn 48 48 (set_state blocking) 49 49 (set_aistate 2)))) … … 59 59 (set_aistate 0)))) 60 60 ) 61 61 62 62 63 63 T) … … 83 83 (bgy (with_object who (y)) (y))) 84 84 (if (and (>= bgy (y)) (<= bgy (+ end_y 20)) 85 (< (abs (- bgx (x))) xamount)) 85 (< (abs (- bgx (x))) xamount)) 86 86 (let ((amount (if (> bgx (x)) 87 87 (- xamount (- bgx (x))) … … 106 106 (ff_push (first_focus) 35))) 107 107 T) 108 108 109 109 110 110 (defun ff_draw () … … 126 126 (states "art/misc.spe" 127 127 (stopped "force_field"))) 128 128 129 129 130 130 (defun hwall_ai () 131 (if (or (eq (hp) 0) 131 (if (or (eq (hp) 0) 132 132 (and (eq (total_objects) 1) 133 133 (with_object (get_object 0) (not (eq (aistate) 0))))) … … 140 140 141 141 (defun big_wall_ai () 142 (if (or (eq (hp) 0) 142 (if (or (eq (hp) 0) 143 143 (and (eq (total_objects) 1) 144 144 (with_object (get_object 0) (not (eq (aistate) 0))))) … … 165 165 (set_hp 25))) 166 166 167 167 168 168 (defun make_hidden_wall_char (name start end ai) 169 169 (eval `(def_char ,name
Note: See TracChangeset
for help on using the changeset viewer.