Ignore:
Timestamp:
May 6, 2011, 12:47:14 AM (12 years ago)
Author:
Sam Hocevar
Message:

data: remove \r and trailing spaces and tabs from all Lisp sources.

Location:
abuse/trunk/data-mac
Files:
34 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/data-mac/abuse.lsp

    r581 r582  
    1010    (progn
    1111      (print "Please make sure you unzipped the game with the -d option")
    12       (print "so that all directories get created properly.")     
    13       (print "example : pkunzip -d abusXXXX.zip")     
     12      (print "so that all directories get created properly.")
     13      (print "example : pkunzip -d abusXXXX.zip")
    1414      (quit)))
    1515(setq load_warn T)
     
    1818(load "lisp/common.lsp")
    1919(load "lisp/userfuns.lsp")
    20 (load "lisp/options.lsp")     
     20(load "lisp/options.lsp")
    2121(load "lisp/startup.lsp")
    2222(local_load "lisp/input.lsp")
  • abuse/trunk/data-mac/addon/bong/bong.lsp

    r102 r582  
    2424;;;; called lisp :-)
    2525
    26 ;;;; Please do not ask me for docs on how to code with the abuse engine, there are 
     26;;;; Please do not ask me for docs on how to code with the abuse engine, there are
    2727;;;; none at this time and there won't be any until networked abuse is available.
    2828;;;; ALL games written with the abuse engine are network ready with no additional
    29 ;;;; work including this one, but there are some issues that need addressing 
     29;;;; work including this one, but there are some issues that need addressing
    3030;;;; that cannot be fully discussed until the net code is finished.  When these
    3131;;;; docs are written they will be available at http://www.crack.com   Estimated
     
    6666(setq pong_dir "addon/bong/")  ; in case we change the location of these files later
    6767                               ; this is always a very good idea to do because the user of
    68                                ; this program may/may not be able to install into this directory       
     68                               ; this program may/may not be able to install into this directory
    6969(setq pong_art (concatenate 'string pong_dir "bong.spe"))  ; all artwork is in this file
    7070
     
    116116      (let ((this-digit (/ score digs_left)))
    117117        (put_image x y (aref nums this-digit))
    118         (show_score (+ x (image_width (aref nums this-digit))) y 
     118        (show_score (+ x (image_width (aref nums this-digit))) y
    119119                    (/ digs_left 10) (- score (* digs_left this-digit))))))
    120120
     
    153153          (blow_up_tile tilex (+ tiley 1))
    154154          (blow_up_tile (+ tilex 1) tiley)))
    155              
     155
    156156    (with_object (bg) (add_hp 10))           ; give player points
    157157
     
    165165(defun check_collide (status)    ;; returns T if we hit something
    166166  (if (not (eq status T))                                  ; did we hit anything?
    167       (if (eq (car (cdr status)) 'object)                  ; did we hit an object?           
     167      (if (eq (car (cdr status)) 'object)                  ; did we hit an object?
    168168          (let ((object (car (cdr (cdr status)))))
    169169            (if (eq (with_object object (otype)) PADDLE)   ; did we hit the paddle?
     
    173173                      (if (> 20 (aistate)) (set_aistate 20)
    174174                        (if (< 160 (aistate)) (set_aistate 160)))
    175                       T) 
     175                      T)
    176176                  nil)
    177177              nil)
     
    195195(defun move_ball ()  ;; returns status of move
    196196  (let ((status (float_tick)))
    197     (if (not (eq status T))   ; T means we did not hit anything 
     197    (if (not (eq status T))   ; T means we did not hit anything
    198198        (let ((block_flags (car status)))
    199199          (if (or (blocked_left block_flags) (blocked_right block_flags)) ; bounce left/right
     
    218218  (select (aitype)
    219219          (0  ; normal play, bounce around and stuff..
    220            (check_collide (move_ball))             
     220           (check_collide (move_ball))
    221221           (if (> (y) 240)  ; check to see if we are dead
    222222               (progn
     
    231231                     T)))
    232232             T))
    233                  
     233
    234234           (1 ; ball is dead - go to paddle and fade in
    235235            (set_x (with_object (bg) (x)))
     
    239239                (set_aitype 0))
    240240            T)))
    241          
     241
    242242
    243243(def_char BALL
     
    265265      (mover xm 0 0)
    266266    0))
    267      
     267
    268268
    269269(def_char PADDLE
     
    292292  (next_picture)
    293293  (if (touching_bg)  ; are we touching the paddle
    294       (progn 
     294      (progn
    295295        (add_score 1000)
    296296        (with_object (add_object BALL (x) (y) 1) (progn (set_fade_count 15) (set_aistate 80)))
     
    339339(create_players PADDLE)
    340340(set_first_level (get_level_name current_level))
    341 (gc)    ; garbage collect 
     341(gc)    ; garbage collect
    342342(tmp-space)
    343343
  • abuse/trunk/data-mac/addon/deathmat/deathmat.lsp

    r102 r582  
    66(defun net_file (x) (concatenate 'string net_dir x))
    77(load (net_file "dstartup.lsp"))
    8 (load "lisp/options.lsp")     
     8(load "lisp/options.lsp")
    99
    1010(local_load "lisp/input.lsp")
  • abuse/trunk/data-mac/addon/deathmat/dstartup.lsp

    r102 r582  
    1010      (load "addon/deathmat/cur_lev.lsp")
    1111      (set_first_level (nth current_net_level net_levels)))
    12  
     12
    1313  ;; save the level we are so joining clients know which one to load
    14   (open_file "addon/deathmat/cur_lev.lsp" "wb" 
     14  (open_file "addon/deathmat/cur_lev.lsp" "wb"
    1515             (print `(setq current_net_level ,current_net_level))))
    16  
     16
    1717
    1818;; this is a simple check to see if they player has an engine version
     
    3232    (progn
    3333      (print "\nPlease make sure you unzipped the game with the -d option")
    34       (print "so that all directories get created properly.")     
    35       (print "example : pkunzip -d abusXXXX.zip")     
     34      (print "so that all directories get created properly.")
     35      (print "example : pkunzip -d abusXXXX.zip")
    3636      (quit)))
    3737(setq load_warn T)
     
    5252             (print (list 'setq 'server_version_major (major_version) ))
    5353             (print (list 'setq 'server_version_minor (minor_version)))))
    54              
     54
    5555
    5656(if (not (am_a_client))
     
    5959;(let ((input (nice_input "DEATHMATCH : Enter your name below" "Name" username)))
    6060;  (open_file "addon/deathmat/username.lsp" "wb"
    61 ;            (print (list 'setq 'username 
     61;            (print (list 'setq 'username
    6262;                         (concatenate 'string '(#\") input '(#\"))))))
    6363
     
    8282(defun display_player (player text_x text_y)
    8383  (if player
    84       (with_object player       
    85         (put_string (get_main_font) text_x text_y 
    86                     (concatenate 'string (digstr (kills) 2) " " (player_name) 
    87                                                      (if (local_player) 
     84      (with_object player
     85        (put_string (get_main_font) text_x text_y
     86                    (concatenate 'string (digstr (kills) 2) " " (player_name)
     87                                                     (if (local_player)
    8888                                                         " <<"
    8989                                                       ""))
  • abuse/trunk/data-mac/addon/deathmat/large.lsp

    r102 r582  
    1 (setq net_levels 
     1(setq net_levels
    22      '("netlevel/8play1.spe"
    33        "netlevel/8play2.spe"
  • abuse/trunk/data-mac/addon/deathmat/medium.lsp

    r102 r582  
    1 (setq net_levels 
     1(setq net_levels
    22      '(
    33        "netlevel/4play1.spe"
  • abuse/trunk/data-mac/addon/deathmat/small.lsp

    r102 r582  
    1 (setq net_levels 
     1(setq net_levels
    22      '("netlevel/2play1.spe"
    33        "netlevel/2play2.spe"
  • abuse/trunk/data-mac/lisp/ant.lsp

    r102 r582  
    22;; See licensing information for more details on usage rights
    33
    4 (setq ant_tints (make-array 11 :initial-contents (list 
     4(setq ant_tints (make-array 11 :initial-contents (list
    55                                                (def_tint "art/tints/ant/green.spe")
    6                                                 (def_tint "art/tints/ant/blue.spe") 
     6                                                (def_tint "art/tints/ant/blue.spe")
    77                                                (def_tint "art/tints/ant/brown.spe")
    88                                                (def_tint "art/tints/ant/egg.spe")
     
    1616                                                )))
    1717
    18 /* 
     18/*
    1919------ this code has been compiled --------
    2020(defun no_fall_move (xm ym but)
     
    3535            0)
    3636        ret))))
    37            
    38      
     37
     38
    3939(defun will_fall_if_jump ()
    4040  nil)
     
    6060
    6161(defun strait_rocket_ai ()
    62   (set_course (aistate) 
     62  (set_course (aistate)
    6363              (select difficulty
    6464                      ('easy    12)
     
    7272    (progn
    7373      (if (not (eq stat nil))
    74           (progn 
     74          (progn
    7575            (add_object EXPLODE3 (+ (x) (random 5)) (+ (y) (random 5)) 0)
    7676            (add_object EXPLODE2 (+ (x) (random 5)) (+ (y) (random 5)) 2)
     
    8282          (with_object (add_object EG_EXPLO (x) (y)) (user_fun myself (car stat)))))
    8383      nil))))
    84    
     84
    8585
    8686(def_char STRAIT_ROCKET
     
    9797      (if (or (blocked_left block_flags) (blocked_right block_flags))
    9898          (set_state blocking))))
    99          
     99
    100100(def_char EG_EXPLO
    101101  (funs (ai_fun   animate_ai)
     
    107107          (blocking (seq "bilw" 1 4))))
    108108
    109 /* 
     109/*
    110110------ this code has been compiled --------
    111111(defun alien_wait_time ()
    112   (select difficulty 
     112  (select difficulty
    113113          ('easy    6)
    114114          ('medium  4)
     
    131131        nil
    132132      T)))
    133      
    134      
     133
     134
    135135(defun roof_above () (not (can_see (x) (y) (x) (- (y) 120) nil)))
    136136
     
    140140        (playerx (+ (with_object (bg) (x)) (with_object (bg) (* (xvel) 8))))
    141141        (playery (+ (- (with_object (bg) (y)) 15) (with_object (bg) (* (yvel) 2)))))
    142    
     142
    143143    (if (and (can_see (x) (y) firex firey nil) (can_see firex firey playerx playery nil))
    144144        (progn
     
    152152(defun ant_dodge ()
    153153  (if (eq need_to_dodge 1)
    154       (progn 
     154      (progn
    155155        (setq need_to_dodge 0)
    156156        (if (eq (random 2) 1)
     
    159159              (go_state 6))         ;; jump at player
    160160          (if (roof_above)
    161               (progn                   
    162                 (set_yvel -17)  ;; jump up 
     161              (progn
     162                (set_yvel -17)  ;; jump up
    163163                (set_xvel 0)
    164164                (go_state 12))
     
    190190                         (set_aistate 16)))
    191191
    192                   (15 ;; hanging on the roof waiting for the main character               
     192                  (15 ;; hanging on the roof waiting for the main character
    193193                   (if (next_picture) T (set_state hanging))
    194194                   (if (if (eq (total_objects) 0);; no sensor, wait for guy
    195195                           (and (< (distx) 130) (< (y) (with_object (bg) (y))))
    196196                         (not (eq (with_object (get_object 0) (aistate)) 0)))
    197                        (progn 
     197                       (progn
    198198                         (set_state fall_start)                  (set_direction (toward))
    199199                         (set_aistate 1))))
     
    204204                           (and (< (distx) 130) (< (y) (with_object (bg) (y))))
    205205                         (not (eq (with_object (get_object 0) (aistate)) 0)))
    206                        (progn 
     206                       (progn
    207207                         (set_state fall_start)                  (set_direction (toward))
    208208                         (set_aistate 1))))
     
    219219                  (9 ;; landing / turn around (gerneal finish animation state)
    220220                   (if (next_picture) T
    221                      (if (try_move 0 2) 
     221                     (if (try_move 0 2)
    222222                         (progn
    223223                           (set_gravity 1)
    224224                           (set_aistate 1))
    225                        (progn (set_state stopped)                         
     225                       (progn (set_state stopped)
    226226                              (go_state 2)))))  ;; running
    227227
     
    254254                             (set_state turn_around)
    255255                             (set_aistate 9)))))
    256              
     256
    257257                  (4 ;; wait for pounce
    258258                   (if (ant_dodge) T
     
    266266                             (go_state 6))))))
    267267
    268                   (6 ;; jump             
     268                  (6 ;; jump
    269269                   (setq need_to_dodge 0)
    270270                   (if (blocked_down (move (direction) -1 0))
     
    273273
    274274                  (8 ;; fire at player
    275                    (if (ant_dodge) T                 
     275                   (if (ant_dodge) T
    276276                     (if (eq (state) fire_wait)
    277277                         (if (next_picture)
     
    304304                  (13 ;; roof walking
    305305                   (scream_check)
    306                    (if (or (and (< (y) (with_object (bg) (y))) 
    307                                 (< (distx) 10) (eq (random 8) 0)) 
     306                   (if (or (and (< (y) (with_object (bg) (y)))
     307                                (< (distx) 10) (eq (random 8) 0))
    308308                           (eq need_to_dodge 1))  ;; shooting at us, fall down
    309309                       (progn
     
    321321                                         (- 0 (get_ability run_top_speed)))))
    322322                           (if (and (can_see (x) (- (y) 31) (+ (x) xspeed) (- (y) 31) nil)
    323                                     (not (can_see (+ (x) xspeed) (- (y) 31) 
     323                                    (not (can_see (+ (x) xspeed) (- (y) 31)
    324324                                                  (+ (x) xspeed) (- (y) 32) nil)))
    325325                               (progn
    326326                                 (set_x (+ (x) xspeed))
    327                                  (if (not (next_picture)) 
     327                                 (if (not (next_picture))
    328328                                     (set_state top_walk)))
    329329                             (set_aistate 1)))))))
    330330
    331        
     331
    332332                  (14 ;; cieling shoot
    333333                   (if (next_picture)
     
    339339
    340340                  )))
    341      
     341
    342342      T)
    343 */   
     343*/
    344344
    345345
     
    380380      'electric_part
    381381      'normal_part)
    382      
     382
    383383(defun get_dead_part (from)
    384384  (if from
     
    397397
    398398  (if (and (not (eq (state) dead))
    399            (or (not from) 
    400                (with_object from (if (eq (total_objects) 0) 
     399           (or (not from)
     400               (with_object from (if (eq (total_objects) 0)
    401401                                     (not (eq (otype) ANT_ROOF))
    402402                                   (with_object (get_object 0) (not (eq (otype) ANT_ROOF)))))))
     
    408408            (damage_fun amount from hitx hity push_xvel push_yvel)
    409409            (play_sound APAIN_SND 127 (x) (y))
    410             (setq need_to_dodge 1)         
     410            (setq need_to_dodge 1)
    411411            (if (<= (hp) 0)
    412412                (progn
     
    461461  (range 250 20)
    462462  (draw_range 40 40)
    463   (funs (ai_fun     ant_ai)     
     463  (funs (ai_fun     ant_ai)
    464464        (draw_fun   ant_draw)
    465465        (constructor ant_cons)
     
    476476             (push_xrange     1)
    477477             (jump_top_speed 20))
    478  
     478
    479479  (flags (hurtable  T)
    480480         (force_health T))
    481481
    482   (states "art/ant.spe" 
     482  (states "art/ant.spe"
    483483          (hanging (rep "ant" 2))
    484484
    485485          (fall_start "affc0001.pcx")
    486486          (falling    "affc0002.pcx")
    487          
     487
    488488          (stopped "awlk0001.pcx")
    489489          (running (seq "awlk" 1 10))
     
    517517  (states "art/ant.spe" (stopped "hidden")))
    518518
    519  
     519
    520520
    521521
     
    531531             (let ((d (direction))
    532532                   (type (aitype)))
    533                (if (or (eq create_total 0) (eq create_total 1))           
     533               (if (or (eq create_total 0) (eq create_total 1))
    534534                   (set_current_frame 4)
    535535                 (progn
     
    548548            (2 (next_picture))))
    549549  T)
    550            
     550
    551551
    552552(defun crack_cons ()
     
    575575           (bounce_move T T T '(progn (set_state dieing) (set_aistate 1)) T)
    576576           (or (< (state_time) 15)
    577                (not (frame_panic))))         
     577               (not (frame_panic))))
    578578          (1 ;; hit the ground
    579579           nil)
    580580          ))
    581581
    582 (setq ant_dead_parts (make-array (* 3 4) :initial-contents 
     582(setq ant_dead_parts (make-array (* 3 4) :initial-contents
    583583                             '((AD_1  "adbn") (AD_2  "adha") (AD_3  "adla")     ; disapear
    584584                               (AD_4  "adaf") (AD_5  "adah") (AD_6  "adlf")     ; flaming
     
    608608(do ((i 0 (setq i (+ i 1))))
    609609           ((>= i 12) nil)
    610            (setq (aref ant_dead_parts i) 
     610           (setq (aref ant_dead_parts i)
    611611                 (make_dead_part (car (aref ant_dead_parts i))
    612612                                 (car (cdr (aref ant_dead_parts i))) 4 "art/ant.spe" 'ant_draw)))
  • abuse/trunk/data-mac/lisp/chat.lsp

    r102 r582  
    88                                          (player_name))))
    99        (if (search "/help" str)
    10             (if (local_player) 
     10            (if (local_player)
    1111                (chat_print "Commands : /nick name, /help"))
    1212        (if (local_player)
  • abuse/trunk/data-mac/lisp/common.lsp

    r102 r582  
    22;; See licensing information for more details on usage rights
    33
    4 ; draw function for characters only displayed during edit mode 
     4; draw function for characters only displayed during edit mode
    55; such as start, etc.
    66; (defun dev_draw () (if (edit_mode) (draw) nil))       -- compiled C function --
     
    1212    (draw)
    1313    (set_y y)))
    14        
     14
    1515
    1616
     
    5050    nil)
    5151  T)
    52    
     52
    5353
    5454
     
    5656  (funs  (ai_fun   lhold_ai)
    5757         (draw_fun dev_draw))
    58   (states "art/misc.spe"         
     58  (states "art/misc.spe"
    5959          (stopped           "lhold")))
    6060
    6161
    6262
    63 (def_char OBJ_MOVER 
     63(def_char OBJ_MOVER
    6464  (funs (ai_fun       mover_ai)
    6565        (constructor  mover_cons)
     
    7070  (states "art/misc.spe" (stopped '("mover" "mover" ))))
    7171
    72 /*    Compiled C           
     72/*    Compiled C
    7373(defun mover_ai ()
    7474  (if (eq (total_objects) 2)
    7575      (let ((dest (get_object 0))
    7676            (mover (get_object 1)))
    77         (if (< (aistate) 2)             ; transfer object to next mover       
     77        (if (< (aistate) 2)             ; transfer object to next mover
    7878            (progn
    79               (with_object dest 
     79              (with_object dest
    8080                           (progn
    8181                             (link_object mover)
    8282                             (set_aistate (aitype))))
    8383              (remove_object mover))
    84           (progn             
     84          (progn
    8585            (set_aistate (- (aistate) 1))
    8686            (let ((newx (- (with_object dest (x)) (/ (* (- (with_object dest (x)) (x)) (aistate)) (aitype))))
    8787                  (newy (- (with_object dest (y)) (/ (* (- (with_object dest (y)) (y)) (aistate)) (aitype)))))
    88               (with_object mover 
    89                            (progn 
     88              (with_object mover
     89                           (progn
    9090                             (platform_push (- newx (x)) (- newy (y)))
    9191                             (set_x newx)
     
    105105      (let ((last (get_object (- x 1))))   ; see if the last object has the same position as us
    106106        (if (and (eq (with_object last (x)) (x)) (eq (with_object last (y)) (y)))
    107             (if (eq (aistate) 1)                       
     107            (if (eq (aistate) 1)
    108108                (if (eq (with_object last (fade_count)) 0)
    109109                    (set_aistate 1)
     
    122122
    123123
    124 (defun respwan_cons () (set_xvel 50)) 
     124(defun respwan_cons () (set_xvel 50))
    125125
    126126
    127 (def_char RESPAWN 
     127(def_char RESPAWN
    128128  (funs (ai_fun      respawn_ai)
    129         (draw_fun    dev_draw) 
     129        (draw_fun    dev_draw)
    130130        (constructor respwan_cons))
    131131;  (flags (unlistable T))
  • abuse/trunk/data-mac/lisp/doors.lsp

    r102 r582  
    22;; See licensing information for more details on usage rights
    33
    4 (defun general_door_ai (push?) 
     4(defun general_door_ai (push?)
    55  (select (aistate)
    66          (0 (if (> (total_objects) 0)             ; are we linked to a key?
     
    1616                 nil)))
    1717          (1 (if (not (next_picture))              ; wait till open animation finishes
    18                  (progn 
     18                 (progn
    1919                   (set_state stopped)             ; set opened animation
    20                    (go_state 2))))             
     20                   (go_state 2))))
    2121
    2222          (2 (if (> (total_objects) 0)             ; wait till level editor links us to a key
    23                  (progn 
     23                 (progn
    2424                   (set_state blocking)
    2525                   (go_state 0))
     
    4545          (1 ;          opening
    4646           (if (next_picture) nil
    47              (progn 
     47             (progn
    4848               (set_state blocking)
    4949               (set_aistate 2))))
     
    5959               (set_aistate 0))))
    6060          )
    61  
     61
    6262
    6363T)
     
    8383              (bgy (with_object who (y)) (y)))
    8484          (if (and (>= bgy (y)) (<= bgy (+ end_y 20))
    85                    (< (abs (- bgx (x))) xamount))           
     85                   (< (abs (- bgx (x))) xamount))
    8686              (let ((amount (if (> bgx (x))
    8787                                (- xamount (- bgx (x)))
     
    106106        (ff_push (first_focus) 35)))
    107107  T)
    108        
     108
    109109
    110110(defun ff_draw ()
     
    126126  (states "art/misc.spe"
    127127          (stopped "force_field")))
    128        
     128
    129129
    130130(defun hwall_ai ()
    131   (if (or (eq (hp) 0) 
     131  (if (or (eq (hp) 0)
    132132          (and (eq (total_objects) 1)
    133133               (with_object (get_object 0) (not (eq (aistate) 0)))))
     
    140140
    141141(defun big_wall_ai ()
    142   (if (or (eq (hp) 0) 
     142  (if (or (eq (hp) 0)
    143143          (and (eq (total_objects) 1)
    144144               (with_object (get_object 0) (not (eq (aistate) 0)))))
     
    165165      (set_hp 25)))
    166166
    167      
     167
    168168(defun make_hidden_wall_char (name start end ai)
    169169  (eval `(def_char ,name
  • abuse/trunk/data-mac/lisp/duong.lsp

    r102 r582  
    2121                         (y (- (y) 16))
    2222                         (fade (if (< (current_frame) 16) (current_frame) 15)))
    23                      (with_object (get_object 1) 
     23                     (with_object (get_object 1)
    2424                                  (progn
    25                                     (set_x x) 
    26                                     (set_y y) 
     25                                    (set_x x)
     26                                    (set_y y)
    2727                                    (user_fun SET_FADE_COUNT fade)
    2828                                    (setq is_teleporting 1)
    2929                                    )))
    30                                  
     30
    3131                 (let ((x (with_object (get_object 0) (x)))
    32                        (y (with_object (get_object 0) (- (y) 16))))               
     32                       (y (with_object (get_object 0) (- (y) 16))))
    3333                   (with_object (get_object 1)
    34                                 (progn 
     34                                (progn
    3535                                  (set_x x)
    3636                                  (set_y y)
     
    4141                   (set_aistate 0))))))
    4242  T)
    43 */         
     43*/
    4444
    4545(defun mine_ai ()
     
    129129             (set_y oldy))
    130130           nil)))
    131  
    132          
    133                          
     131
     132
     133
    134134(def_char BOMB
    135135  (funs (ai_fun      bomb_ai)
     
    151151  (states "art/chars/mine.spe"
    152152          (stopped '("abomb0001.pcx+" "abomb0002.pcx+"))))
    153          
     153
    154154
    155155
     
    181181              (0 ;; wait for switch to go off
    182182               (if (not (eq (with_object (get_object 0) (aistate)) 0))
    183                    (progn 
     183                   (progn
    184184                     (set_state running)
    185185                     (go_state 1))))
     
    189189                   (set_state blocking)
    190190                   (set_aistate 2))))
    191               (2 ;; just stay here 
     191              (2 ;; just stay here
    192192               T)))
    193193T)
    194      
     194
    195195
    196196(defun strap_door_ai ()
     
    241241          (running   (seq "lite" 1 9))
    242242          (stopped    "lite0001.pcx")))
    243          
     243
    244244
    245245
     
    267267           (stopped (seq "lava" 1 15))))
    268268
    269                          
     269
    270270
    271271(def_char TELE2
     
    275275          (stopped "close")
    276276          (running (seq "elec" 1 15))))
    277          
     277
    278278
    279279(defun bolder_ai ()
     
    295295        (progn
    296296          (next_picture)
    297           (set_yvel (+ (yvel) 1))         
     297          (set_yvel (+ (yvel) 1))
    298298          (let ((old_yv  (yvel))
    299299                (old_xv  (xvel))
     
    310310              (set_y new_y))
    311311            (hurt_radius (x) (y) 19 30 (me) 15)
    312             (if (not (eq status T));; T means we did not hit anything   
     312            (if (not (eq status T));; T means we did not hit anything
    313313                (let ((block_flags (car status)))
    314314                  (if (or (blocked_up block_flags) (blocked_down block_flags));; bounce up/down
     
    326326          T))
    327327    T))
    328  
     328
    329329
    330330(defun bolder_cons ()
     
    333333
    334334
    335 (defun bold_dam (amount from hitx hity push_xvel push_yvel) 
     335(defun bold_dam (amount from hitx hity push_xvel push_yvel)
    336336  (add_object EXPLODE3 (+ (x) (- 10 (random 20))) (- (y) (random 30)) 0)
    337337  (damage_fun amount from hitx hity (/ push_xvel 10) (/ push_yvel 2)))
     
    346346  (range 200 200)
    347347  (abilities (start_hp 40))
    348   (fields ("xvel" ai_xvel)       
     348  (fields ("xvel" ai_xvel)
    349349          ("yvel" ai_yvel)
    350350          ("hp"   ai_health)
    351351          )
    352352  (states "art/bold.spe"
    353           (stopped '("bold0001.pcx" "bold0001.pcx" "bold0001.pcx" 
     353          (stopped '("bold0001.pcx" "bold0001.pcx" "bold0001.pcx"
    354354                    "bold0002.pcx" "bold0002.pcx" "bold0002.pcx"
    355355                    "bold0003.pcx" "bold0003.pcx" "bold0003.pcx"
     
    360360        (old_xv  (xvel))
    361361        (status (float_tick)))
    362     (if (not (eq status T)) ;; T means we did not hit anything 
    363         (let ((block_flags (car status)))                   
     362    (if (not (eq status T)) ;; T means we did not hit anything
     363        (let ((block_flags (car status)))
    364364          (if (blocked_up block_flags) ;; bounce up/down
    365365              (progn
     
    387387                      (eval right_stub)))))))
    388388      (eval nothing_stub))))
    389              
     389
    390390
    391391
     
    393393  (next_picture)
    394394  (set_yvel (+ (yvel) 1))
    395   (bounce_move T T T           
    396                '(progn (add_object EXPLODE1 (+ (x) (random 10)) (- (+ (random 5) (y)) 10)     0)                       
     395  (bounce_move T T T
     396               '(progn (add_object EXPLODE1 (+ (x) (random 10)) (- (+ (random 5) (y)) 10)     0)
    397397                 (add_object EXPLODE1 (- (x) (random 10)) (- (- (y) (random 5)) 10) 2)
    398398                 (play_sound P_EXPLODE_SND 127 (x) (y))
     
    401401                                              nil) 20)
    402402                 nil) T))
    403  
     403
    404404
    405405(def_char SMALL_BOLDER
     
    408408  (flags (add_front  T)
    409409         (unlistable T))
    410        
     410
    411411  (states "art/bold.spe"
    412412          (stopped "bsmall")))
  • abuse/trunk/data-mac/lisp/english.lsp

    r225 r582  
    55;; Latest version of this file is "V-E"  (version E=1.47)
    66
    7 (select section 
     7(select section
    88        ('game_section
    99
     
    3737         (setq New?               "New?")
    3838         (setq l_EDIT             "EDIT")
    39  
     39
    4040
    4141         /********** New for Version D (1.46)   **************/
     
    110110         (setq sens_cs            "current state")
    111111         (setq tp_amb             "ambient setting")
    112          
    113 
    114                
     112
     113
     114
    115115         (setq ai_xvel            "Xvel    ")
    116116         (setq ai_yvel            "Yvel    ")
     
    124124         (setq ai_state           "ai state")
    125125         (setq ai_fade            "fade 0-15")
    126          
     126
    127127         (setq a_ambient          "Ambient      ")
    128128         (setq a_aspeed           "Ambient speed")
     
    139139         (setq ap_pal             "Add palette")
    140140         (setq mouse_at           "Mouse at location %d, %d\n")
    141          
     141
    142142
    143143         (setq l_links            "Links")
     
    162162         (setq edit_top           "Edit")
    163163         (setq window_top         "Windows")
    164          (setq menu1_load         "Load Level") 
     164         (setq menu1_load         "Load Level")
    165165         (setq menu1_save         "Save Level (S)")
    166166         (setq menu1_saveas       "Save level as")
     
    207207         (setq level_size "Level size")
    208208                           ; 012345678901234567 (please keep same allignment of Name level & total)
    209          (setq score_header "Name              Level Total")   ; V-E 
     209         (setq score_header "Name              Level Total")   ; V-E
    210210         (setq space_cont "Press SPACEBAR to continue")        ; V-E
    211211         (setq no_saved "No saved game")
     
    224224b
    225225         (defun get_train_msg (message_num)
    226            (select message_num   
     226           (select message_num
    227227                   ;   0123456789012345678901234567890123456789012345678901234567890123456789
    228228                   ;  "--------------------------------------------------------------------"  ; V-A
     
    303303         (setq to_be_continued "To be continued.....")
    304304         (setq no_edit         "This version of ABUSE does not have editing features")
    305          (setq no_hirez        "Hi-rez is only available for edit mode (-edit)") 
     305         (setq no_hirez        "Hi-rez is only available for edit mode (-edit)")
    306306         (setq no2             "Cannot use -2 with -edit")
    307307         (setq no_pals         "No palettes defined")
     
    313313         (setq d_nosel         "No selected object or light to delete.")
    314314         (setq forward?        "Forward which object?")
    315          (setq back?           "Back which object?") 
     315         (setq back?           "Back which object?")
    316316         (setq aitype?         "Ai type for who?")
    317317         (setq prof_off        "Cache profiling is now off.")
     
    324324         (setq quit_title      "Quit?")
    325325         (setq YES             "YES")
    326          (setq NO              "NO")     
     326         (setq NO              "NO")
    327327         (setq seqs_off        "Sequential screen shots off\n")
    328328         (setq seqs_on         "Sequential screen shots on (1 per 5 sec)\n")
     
    346346
    347347
    348          (setq net_not_reg 
     348         (setq net_not_reg
    349349               (concatenate 'string "Sorry, this server is running REGISTERED ABUSE and you are not.\n"
    350350                            "Ask the server operator to run with -share option or better yet,\n"
     
    369369
    370370         (setq plot_start
    371                (concatenate 'string 
     371               (concatenate 'string
    372372                            "You are Nick Vrenna. It is the year 2009.  You have been falsely incarcerated "
    373373                            "inside a high security underground prison where illegal genetic experiments "
    374                             "are taking place.\\n"                         
     374                            "are taking place.\\n"
    375375                            "Alan Blake, the head research scientist, has isolated the specific gene which "
    376376                            "causes violence and aggression in humans.  This genetic sequence, called "
     
    388388
    389389         (setq plot_middle
    390                (concatenate 'string 
     390               (concatenate 'string
    391391                            "You have survived the initial outbreak, but you are still lost deep "
    392                             "within the prison. So far it's been suspiciously easy. \\n"       
     392                            "within the prison. So far it's been suspiciously easy. \\n"
    393393                            "If you want to break out - the real ABUSE lies ahead. "))
    394394
    395395
    396396         (setq plot_end
    397                (concatenate 'string 
     397               (concatenate 'string
    398398                            "You've survived impossible odds and made it to the Control Room.  "
    399399                            "By pulling the switch, you have diverted the water supply and stopped the spread of Abuse!\\n "
     
    401401
    402402         (setq thanks_text
    403                (concatenate 'string 
     403               (concatenate 'string
    404404                            "Bungie Crew\\n"
    405405                                                        "- Production Manager "
     
    476476                                                        "Jason Budravage, "
    477477                                                        "and Jonah Kowall\\n"
    478                                 "\\nIcepops!\n"))) 
     478                                "\\nIcepops!\n")))
    479479)
  • abuse/trunk/data-mac/lisp/explo.lsp

    r102 r582  
    1313               T))))
    1414
    15 (defun do_small_explo (radius amount) 
     15(defun do_small_explo (radius amount)
    1616  (add_object EXPLODE3 (+ (x) (random 5)) (+ (y) (random 5)) 0)
    1717  (add_object EXPLODE2 (+ (x) (random 5)) (+ (y) (random 5)) 2)
     
    5050
    5151(def_char EXP_LIGHT
    52   (funs (ai_fun   explo_light) 
     52  (funs (ai_fun   explo_light)
    5353        (draw_fun dev_draw))
    5454  (flags (unlistable T))
     
    5858
    5959/* written in C
    60 (defun exp_ai () 
    61   (if (eq (aitype) 0) (next_picture) 
     60(defun exp_ai ()
     61  (if (eq (aitype) 0) (next_picture)
    6262    (progn (set_aitype (- (aitype) 1))
    6363           T)))
     
    6565
    6666(defun exp_draw ()
    67   (if (eq (aitype) 0) 
     67  (if (eq (aitype) 0)
    6868      (middle_draw)))
    6969*/
  • abuse/trunk/data-mac/lisp/flyer.lsp

    r102 r582  
    2828          (with_object (bg) (set_kills (+ (kills) 1)))
    2929          nil)
    30       (progn     
     30      (progn
    3131        (if (eq (mod (state_time) 5) 0)      ;; make flyer noise every 5 ticks
    3232            (play_sound FLYER_SND 127 (x) (y)))
     
    6767
    6868        (if (next_picture) T (set_state running))  ;; reset animation when done
    69            
     69
    7070        (bounce_move '(set_xvel (/ (xvel) 2)) '(set_xvel (/ (xvel) 2))
    7171                     '(set_yvel (/ (yvel) 2)) '(set_yvel (/ (yvel) 2)) nil)
    72      
     72
    7373        (if (> fire_time 0)              ;; if we need to wait till next burst
    7474            (progn
    7575              (setq fire_time (- fire_time 1))
    7676              (if (eq fire_time 0)
    77                   (progn 
     77                  (progn
    7878                    (setq burst_left burst_total)
    7979                    (setq burst_wait 0))))
     
    9292                              (setq burst_left (- burst_left 1)))
    9393                            (setq burst_wait burst_delay)
    94                             (fire_object (me) (aitype) firex firey angle (bg)) 
     94                            (fire_object (me) (aitype) firex firey angle (bg))
    9595                            )))))
    96             (setq burst_wait (- burst_wait 1))))               
     96            (setq burst_wait (- burst_wait 1))))
    9797        T))))
    9898
    9999
    100100
    101 (defun flyer_cons ()     
     101(defun flyer_cons ()
    102102  (setq fire_delay 20)
    103103  (setq burst_delay 3)
     
    109109
    110110(defun flyer_damage (amount from hitx hity push_xvel push_yvel)
    111   (if (and from (with_object from (and (> (total_objects) 0) 
    112                                        (with_object (get_object 0) 
     111  (if (and from (with_object from (and (> (total_objects) 0)
     112                                       (with_object (get_object 0)
    113113                                                    (or (eq (otype) FLYER)
    114114                                                        (eq (otype) GREEN_FLYER))
  • abuse/trunk/data-mac/lisp/french.lsp

    r566 r582  
    66
    77
    8 (select section 
     8(select section
    99        ('game_section
    1010
     
    108108         (setq sens_cs            "Etat actuel")
    109109         (setq tp_amb             "R‚glage ambiance")
    110          
    111 
    112                
     110
     111
     112
    113113         (setq ai_xvel            "Xvel      ")
    114114         (setq ai_yvel            "Yvel      ")
     
    122122         (setq ai_state           "Etat IA   ")
    123123         (setq ai_fade            "Fondu 0-15")
    124          
     124
    125125         (setq a_ambient          "Ambiant     ")
    126126         (setq a_aspeed           "Vitesse ambiante")
     
    137137         (setq ap_pal             "Ajouter palette")
    138138         (setq mouse_at           "Position la souris %d, %d\n")
    139          
     139
    140140
    141141         (setq l_links            "Liens")
     
    148148
    149149         (setq SHOW?              "AFFICHER ?")
    150          (setq back_loss (concatenate 'string "Ce taux de d‚filement diminue la taille de la care d'arriŠre 
     150         (setq back_loss (concatenate 'string "Ce taux de d‚filement diminue la taille de la care d'arriŠre
    151151plan \n"
    152152                                      "Des dalles risquent d'ˆtre perdues, ˆtes-vous s–r(e) de vouloir le faire ?\n"))
     
    164164         (setq edit_top           "Editer")
    165165         (setq window_top         "Fenˆtres")
    166          (setq menu1_load         "Lancer niveau")       
     166         (setq menu1_load         "Lancer niveau")
    167167         (setq menu1_save         "Sauvegarder niveau (S)")
    168168         (setq menu1_saveas       "Enregistrer sous")
     
    209209         (setq level_size "Taille du niveau")
    210210                           ; 012345678901234567 (please keep same allignment of Name level & total)
    211          (setq score_header "Nom          Total du niveau")   ; V-E 
     211         (setq score_header "Nom          Total du niveau")   ; V-E
    212212         (setq space_cont "Appuyez sur la BARRE D'ESPACE pour continuer")        ; V-E
    213213         (setq no_saved "Pas de jeu sauvegard‚")
     
    229229
    230230         (defun get_train_msg (message_num)
    231            (select message_num   
     231           (select message_num
    232232                   (0 "Pointez le canon avec la souris, tirez avec le bouton gauche")
    233233                   (1 "R‚cup‚rez des munitions pour augmenter votre cadence de tir")
     
    290290         (setq client          "Participer au jeu en cours ?")
    291291         (setq single_play     " Un seul joueur ")
    292 (setq single_play     "    Sortir du jeu sur r‚seau    ")  ; V-A 
     292(setq single_play     "    Sortir du jeu sur r‚seau    ")  ; V-A
    293293         (setq cancel_net      "      Annuler        ")
    294294
     
    311311         (setq to_be_continued "A suivre.....")
    312312         (setq no_edit         "Cette version du jeu est d‚pourvue de l'‚diteur")
    313          (setq no_hirez        "La haute r‚solution n'est disponible qu'avec le mode ‚diter (-edit)") 
     313         (setq no_hirez        "La haute r‚solution n'est disponible qu'avec le mode ‚diter (-edit)")
    314314         (setq no2             "Ne peut pas utiliser -2 avec -edit")
    315315         (setq no_pals         "Aucune palette d‚finie")
     
    322322 effacer.")
    323323         (setq forward?        "Avancer quel objet ?")
    324          (setq back?           "Reculer quel objet ?") 
     324         (setq back?           "Reculer quel objet ?")
    325325         (setq aitype?         "Type IA pour qui ?")
    326326         (setq prof_off        "Cache d‚sactiv‚")
     
    333333         (setq quit_title      "Sortir ?")
    334334         (setq YES             "OUI")
    335          (setq NO              "NON")     
     335         (setq NO              "NON")
    336336         (setq seqs_off        "S‚quences photos off\n")
    337337         (setq seqs_on         "S‚quences photos on (1 toutes les 5 sec)\n")
     
    376376         (setq load_warn nil)
    377377         (if (not (load "register/english.lsp"))
    378              (setq end_msg 
    379                    (concatenate 'string 
     378             (setq end_msg
     379                   (concatenate 'string
    380380                                "* Editer LISP/OPTIONS.LSP pour configurer quelques options pour ABUSE.\n\n"
    381                                 "* Procurez-vous la version commerciale d'ABUSE qui sera en vente fin mars 96, et\n"                       
     381                                "* Procurez-vous la version commerciale d'ABUSE qui sera en vente fin mars 96, et\n"
    382382                                "  sera jouable sur r‚seau IPX supportant huit joueurs. Elle comportera un ‚diteur\n"
    383383                                "  de niveau int‚gr‚, 17 niveaux un seul joueur (plus 12 niveaux sur le\n"
     
    391391                                "  ALLEMAGNE   05241 / 24307\n"
    392392                                "  AUSTRALIE +61(75)911 388\n"
    393                                 "  JAPON     03-5410-3100\n\n"))) 
     393                                "  JAPON     03-5410-3100\n\n")))
    394394
    395395         (setq load_warn T)
    396396
    397397         (setq plot_start
    398                (concatenate 'string 
     398               (concatenate 'string
    399399                            "Vous ˆtes Nick Vrenna. C'est l'ann‚e 2009.  A tort, vous avez ‚t‚ incarc‚r‚ "
    400400                            "dans une prison souterraine de haute surveillance o— ont lieu des exp‚riences g‚n‚tiques "
    401                             " ill‚gales.\\n"                         
     401                            " ill‚gales.\\n"
    402402                            "Alan Blake,
    403  la tˆte de la recherche scientifique, a isol‚ le gˆne qui provoque "                   
     403 la tˆte de la recherche scientifique, a isol‚ le gˆne qui provoque "
    404404                            "violence et agression chez les humains. Cette s‚quence g‚n‚tique appel‚e "
    405                             '(#\") "Abuse" '(#\") " est extrˆmement infectieuse, elle engendre des transformations "                   
     405                            '(#\") "Abuse" '(#\") " est extrˆmement infectieuse, elle engendre des transformations "
    406406                            "horribles et provoque de monstrueux effets secondaires.  "
    407407                            "Vous ˆtes la seule personne immunis‚e contre ces effets. \\n"
    408408                            "Une ‚meute commence et dans ce d‚sordre, toutes les portes de "
    409                             "prison s'ouvrent. TrŠs vite, les gardes, ainsi que les d‚tenus " 
     409                            "prison s'ouvrent. TrŠs vite, les gardes, ainsi que les d‚tenus "
    410410                            "sont contamin‚s et transform‚s en une horde de mutants qui envahissent le "
    411411                            "bƒtiment.\\n"
    412                             "Votre seule chance pour vous enfuir est de vous revˆtir d'une armure "                                     
     412                            "Votre seule chance pour vous enfuir est de vous revˆtir d'une armure "
    413413                            "de combat et d'aller
    414414 la Salle des commandes "
    415                             "qui se trouve au niveau le plus ‚loign‚ de la structure. Mais d'abord, vous devez " 
     415                            "qui se trouve au niveau le plus ‚loign‚ de la structure. Mais d'abord, vous devez "
    416416                            "empˆcher l'approvisionnement d'eau qui a ‚t‚ infect‚ par Abuse de contaminer "
    417417                            "le monde ext‚rieur. La libert‚ et le sort de l'humanit‚ sont maintenant entre vos mains. " ))
    418          
     418
    419419         (setq plot_middle
    420                (concatenate 'string 
     420               (concatenate 'string
    421421                            "Vous avez surv‚cu la vague initiale de contamination, mais vous ˆtes "
    422422                            "encore perdu au fin fond de la prison "
    423                             "Jusqu'ici, c'‚tait d'une facilit‚ suspecte. \\n"     
     423                            "Jusqu'ici, c'‚tait d'une facilit‚ suspecte. \\n"
    424424                            "Si vous voulez vous ‚chapper, ne manquez pas de jouer
    425425 Abuse dans son int‚gralit‚. "))
     
    427427
    428428         (setq plot_end
    429                (concatenate 'string 
     429               (concatenate 'string
    430430                            "F‚licitations ! Vous avez r‚ussi
    431  survivre dans une situation incroyable et " 
     431 survivre dans une situation incroyable et "
    432432                            "vous ˆtes
    433433 la Salle de commandes.  "
  • abuse/trunk/data-mac/lisp/gates.lsp

    r102 r582  
    2727          ("aistate"    ai_state)
    2828          )
    29   (states "art/misc.spe" 
     29  (states "art/misc.spe"
    3030          (stopped "0_delay")
    3131          (on_state "1_delay")))
     
    3535  (funs (ai_fun or_ai)
    3636        (draw_fun dev_draw))
    37   (states "art/misc.spe" 
     37  (states "art/misc.spe"
    3838          (stopped "0_or_gate")
    3939          (on_state "1_or_gate")))
    40          
     40
    4141(def_char GATE_AND
    4242  (funs (ai_fun and_ai)
    4343        (draw_fun dev_draw))
    44   (states "art/misc.spe" 
     44  (states "art/misc.spe"
    4545          (stopped "0_and_gate")
    4646          (on_state "1_and_gate")))
    47          
    48          
     47
     48
    4949(def_char GATE_NOT
    5050  (funs (ai_fun not_ai)
    5151        (draw_fun dev_draw))
    52   (states "art/misc.spe" 
     52  (states "art/misc.spe"
    5353          (stopped "0_not_gate")
    5454          (on_state "1_not_gate")))
    5555
    56          
     56
    5757(def_char GATE_XOR
    5858  (funs (ai_fun xor_ai)
    5959        (draw_fun dev_draw))
    60   (states "art/misc.spe" 
     60  (states "art/misc.spe"
    6161          (stopped "0_xor_gate")
    6262          (on_state "1_xor_gate")))
     
    7272          (on_state "1_pulse")))
    7373
    74          
     74
    7575(def_char INDICATOR
    7676  (funs (ai_fun indicator_ai))
    77   (states "art/misc.spe" 
     77  (states "art/misc.spe"
    7878          (stopped "0_indicator")
    7979          (on_state "1_indicator")))
    80        
     80
    8181(defun indicator_ai ()
    8282  (if (> (total_objects) 0)
     
    111111        (or_check (- last_object 1))
    112112      T)))
    113  
     113
    114114(defun or_ai ()
    115115  (if (or_check (- (total_objects) 1))
     
    121121      (set_aistate 0))) T)
    122122
    123        
     123
    124124(defun and_check (last_object)
    125125  (if (< last_object 0)
     
    128128        nil
    129129      (and_check (- last_object 1)))))
    130    
    131  
     130
     131
    132132(defun and_ai ()
    133133  (if (and_check (- (total_objects) 1))
  • abuse/trunk/data-mac/lisp/general.lsp

    r102 r582  
    2525
    2626(defun spring_cons () (set_yvel -15))
    27 (defun spring_ai () 
     27(defun spring_ai ()
    2828  (if (or (eq (total_objects) 0) (not (eq (with_object (get_object 0) (aistate)) 0)))
    2929      (select (aistate)
     
    3232                   (let ((add_yvel (yvel)))
    3333                     (play_sound SPRING_SOUND 127 (x) (y))
    34                      (with_object (bg) 
     34                     (with_object (bg)
    3535                              (progn
    3636                                (set_yvel (+ (yvel) add_yvel))
     
    5858          (running (rep "spri0001.pcx" 4))))
    5959
    60 (defun pr_draw () 
     60(defun pr_draw ()
    6161  (draw_predator)
    6262
    6363  )
    64  
     64
    6565
    6666(defun train_ai ()
     
    6969          (let ((type (aitype)))
    7070            (with_object (bg)
    71                          (if (local_player)     
    72                              (progn                             
     71                         (if (local_player)
     72                             (progn
    7373                               (play_sound (aref voice_hints type))
    7474                               ;(expire_cache_item (aref voice_hints type))
     
    9393  (states "art/misc.spe"
    9494          (stopped "bubble")))
    95        
     95
    9696(defun sball_damage (amount from hitx hity push_xvel push_yvel)  ; transfer damage to lower half
    9797  (if (eq (state) stopped)
     
    105105        (ai_fun do_nothing))
    106106  (flags (hurtable T))
    107   (states "art/misc.spe" 
     107  (states "art/misc.spe"
    108108          (stopped (seq "swit" 1 9))
    109109          (running (seq "swit" 10 18))))
     
    114114          (stopped "pointer")))
    115115
    116 (defun shifter_cons () 
    117   (set_xvel 300) 
    118   (set_yvel 300) 
    119   (set_xacel 0) 
     116(defun shifter_cons ()
     117  (set_xvel 300)
     118  (set_yvel 300)
     119  (set_xacel 0)
    120120  (set_yacel -1))
    121121
    122122(defun holder_ai ()
    123123  (select (total_objects)
    124           (2 
     124          (2
    125125           (let ((newx (+ (with_object (get_object 1) (x)) (xvel)))
    126126                 (newy (+ (with_object (get_object 1) (y)) (yvel))))
     
    129129             (set_y newy)
    130130             T))
    131           (3 
     131          (3
    132132           (if (with_object (get_object 2) (not (eq (aistate) 0)))
    133133               (let ((newx (+ (with_object (get_object 1) (x)) (xvel)))
     
    137137                 (set_y newy)
    138138                 T)
    139              (if (eq (xacel) 1) 
     139             (if (eq (xacel) 1)
    140140                 nil
    141141               T)))
     
    145145          (0 nil)
    146146          (1 nil)))
    147  
     147
    148148
    149149(def_char OBJ_HOLDER
  • abuse/trunk/data-mac/lisp/german.lsp

    r566 r582  
    66
    77
    8 (select section 
     8(select section
    99        ('game_section
    1010
     
    104104         (setq sens_cs            "Jetztstatus")
    105105         (setq tp_amb             "Umgebung")
    106          
    107 
    108                
     106
     107
     108
    109109         (setq ai_xvel            "Xvel    ")
    110110         (setq ai_yvel            "Yvel    ")
     
    118118         (setq ai_state           "AI-Status")
    119119         (setq ai_fade            "Transparenz 0-15")
    120          
     120
    121121         (setq a_ambient          "Umgebung      ")
    122122         (setq a_aspeed           "Umgeb.-Tempo")
     
    133133         (setq ap_pal             "Palette hinzu")
    134134         (setq mouse_at           "Maus an Punkt %d, %d\n")
    135          
     135
    136136
    137137         (setq l_links            "Link")
     
    152152         (setq y_div              "Y div")
    153153
    154          /*********** New for Version 1.45 ***********************/ 
    155 
    156 
    157 ;; Weitere Einzelheiten zu den Benutzerrechten unter Lizenzrechte. 
     154         /*********** New for Version 1.45 ***********************/
     155
     156
     157;; Weitere Einzelheiten zu den Benutzerrechten unter Lizenzrechte.
    158158
    159159
     
    161161         (setq edit_top           "Bearbeiten")
    162162         (setq window_top         "Fenster")
    163          (setq menu1_load         "Level laden")         
     163         (setq menu1_load         "Level laden")
    164164         (setq menu1_save         "Level speichern (S)")
    165165         (setq menu1_saveas       "Level speichern als")
     
    206206         (setq level_size "Levelgr”áe")
    207207                           ; 012345678901234567 (please keep same allignment of Name level & total)
    208          (setq score_header "Name              Level gesamt")   ; V-E 
     208         (setq score_header "Name              Level gesamt")   ; V-E
    209209         (setq space_cont "LEERTASTE, um fortzufahren ")        ; V-E
    210210         (setq no_saved "Kein gespeichertes Spiel")
     
    221221         (setq gamma_msg "Klicken Sie die dunkelste Farbe \nauf Ihrem Monitor an, und klicken Sie OK.")
    222222         (setq telep_msg "Pfeiltaste  (unten) drcken, um zu teleportieren.")
    223  
    224223
    225224         (defun get_train_msg (message_num)
    226            (select message_num   
     225           (select message_num
    227226                   (0 "Mit der Maus zielen und mit Linksklick feuern.")
    228227                   (1 "Munition sammeln, um Schuárate zu erh”hen.")
     
    237236                   (10 "Kugel anschieáen, um zu aktivieren.")
    238237                   (11 "Pfeiltaste (unten) drcken, um zu teleportieren.")))
    239        
     238
    240239 (setq not_there       "Spiel l„uft nicht mehr ")
    241240 (setq max_error       "Max Spielerzahl sollte gleich oder mehr als Min Spielerzahl sein ") ; V-C changed
     
    270269                                           "    - TSR's u. fr ABUSE nicht ben”tigte Treiber beseitigen\n"
    271270                                           "    - Machen Sie mehr Speicher frei\n"))
    272          
     271
    273272         (setq no_mem    (concatenate 'string "Nicht gengend Speicher verfgbar\n"
    274273                                           "  Vorschl„ge...\n"
    275274                                           "    - Startdiskette erstellen (Info im Handbuch)\n"
    276275                                           "    - TSR's u. fr ABUSE nicht ben”tigte Treiber beseitigen\n"
    277  
    278276                                           "    - Machen Sie mehr Speicher frei\n"))
    279277
     
    311309         (setq to_be_continued "Fortsetzung folgt.....")
    312310         (setq no_edit         "Diese Abuse-Version hat keine Edit-Funktionen")
    313          (setq no_hirez        "High-Res. gibt es nur im Edit-Modus (-edit)") 
     311         (setq no_hirez        "High-Res. gibt es nur im Edit-Modus (-edit)")
    314312         (setq no2             "-2 kann nicht mit -edit zusammen benutzt werden")
    315313         (setq no_pals         "Paletten sind nicht definiert")
     
    321319         (setq d_nosel         "Kein Objekt oder Licht zum L”schen ausgew„hlt.")
    322320         (setq forward?        "Welches Objekt mitnehmen?")
    323          (setq back?           "Welches Objekt zurcklegen?") 
     321         (setq back?           "Welches Objekt zurcklegen?")
    324322         (setq aitype?         "AI „ndern wofr?")
    325323         (setq prof_off        "Cache-Profiling ist jetzt aus.")
     
    332330         (setq quit_title      "Abbrechen")
    333331         (setq YES             "JA")
    334          (setq NO              "NEIN")     
     332         (setq NO              "NEIN")
    335333         (setq seqs_off        "Kontinuierliche Bildsequenzen aus\n")
    336334         (setq seqs_on         " Kontinuierliche Bildsequenzen an (1 Bild alle 5 Sek)\n")
     
    353351         (setq SAVE            "SPEICHERN")   ; don't let this get too long
    354352
    355          (setq net_not_reg 
     353         (setq net_not_reg
    356354               (concatenate 'string "Dieser Server betreibt die REGISTRIERTE ABUSE Version, Sie aber nicht.\n"
    357355                            "Bitten Sie den Betreiber des Servers, mit der Shareware-Version zu spielen,\n"
     
    368366         (setq load_warn nil)
    369367         (if (not (load "register/english.lsp"))
    370              (setq end_msg
    371                    (concatenate 'string
    372                                 "* Žndern Sie LISP/OPTIONS.LSP, um einige Optionen fr ABUSE zu
    373 "
     368             (setq end_msg
     369                   (concatenate 'string
     370                                "* Žndern Sie LISP/OPTIONS.LSP, um einige Optionen fr ABUSE zu\n"
    374371                                "    konfigurieren.\n\n"
    375                                 "* Halten Sie beim Einkaufsbummel die Augen auf, denn Ende M„rz '96 erscheint die "                             
     372                                "* Halten Sie beim Einkaufsbummel die Augen auf, denn Ende M„rz '96 erscheint die "
    376373                                "  kommerzielle Version von ABUSE fr acht Spieler, IPX-Netzwerk untersttzt, \n"
    377                                 "  mit einem eingebauten Level-Editor, 17 Einzelspieler-Level plus 12 Exklusiv-
    378 "
     374                                "  mit einem eingebauten Level-Editor, 17 Einzelspieler-Level plus 12 Exklusiv-\n"
    379375                                "  Netzwerk- \n Level, todbringenderen Waffen, extra Powerups, \n"
    380                                 "  st„rkeren Feinden, besseren Soundeffekten und noch mehr knstlerischen
    381 "
     376                                "  st„rkeren Feinden, besseren Soundeffekten und noch mehr knstlerischen\n"
    382377                                "  Effekten.\n\n"
    383378
     
    395390
    396391         (setq plot_start
    397                (concatenate 'string
    398                             "Ihr Name ist Nick Vrenna. Wir schreiben das Jahr 2009. Sie werden zu Unrecht in
    399 "
     392               (concatenate 'string
     393                            "Ihr Name ist Nick Vrenna. Wir schreiben das Jahr 2009. Sie werden zu Unrecht in \n"
    400394                            "einem streng bewachten unterirdischen Gef„ngnis festgehalten, "
    401395                            "wo illegale genetische Experimente durchgefhrt werden.\\n"
    402396                            "Alan Blake, der leitende Wissenschaftler der Forschungsabteilung, hat das Gen isoliert, "
    403397                            "das in Menschen Gewalt und Aggressionen hervorruft. Diese genetische Sequenz, die "
    404                             '(#\") "Abuse" '(#\") " heiát, ist hochansteckend und verursacht schreckliche "                                                 
     398                            '(#\") "Abuse" '(#\") " heiát, ist hochansteckend und verursacht schreckliche "
    405399                            "Transformationen und groteske Nebenwirkungen. "
    406400                            "Sie sind die einzige Person, die dagegen immun ist. \\n"
    407                             "Im Gef„ngnis bricht ein Aufstand aus, und w„hrend dieses wilden Durcheinanders werden "               
     401                            "Im Gef„ngnis bricht ein Aufstand aus, und w„hrend dieses wilden Durcheinanders werden "
    408402                            "alle Zellentren ge”ffnet. Bald sind alle, sowohl W„rter als auch Str„flinge, infiziert "
    409403                            "und werden in Mutanten transformiert, "
    410404                            "die das Geb„ude in ihre Gewalt bringen.\\n"
    411405                            "Ihre einzige Chance zu entkommen ist es, den Kampfanzug anzuziehen und m”glichst "
    412                             "schnell zum Kontroll-Raum zu gelangen, der im untersten Geschoá des Geb„udes liegt. "                         
     406                            "schnell zum Kontroll-Raum zu gelangen, der im untersten Geschoá des Geb„udes liegt. "
    413407                            "Erst mssen Sie jedoch die Wasserversorgung des Gef„ngnisses unterbrechen, damit "
    414408                            "das Abuse-infizierte Wasser nicht auch noch die Auáenwelt vergiften kann. Freiheit und "
     
    418412
    419413         (setq plot_middle
    420                (concatenate 'string 
     414               (concatenate 'string
    421415                            "Sie haben den anf„nglichen Aufstand berlebt, haben sich aber im Gef„ngnis komplett "
    422                             "verirrt. Bis jetzt war es verd„chtig einfach. \\n"       
    423                             "Wenn Sie ausbrechen wollen - liegt das wirkliche ABUSE noch vor Ihnen. ")) 
     416                            "verirrt. Bis jetzt war es verd„chtig einfach. \\n"
     417                            "Wenn Sie ausbrechen wollen - liegt das wirkliche ABUSE noch vor Ihnen. "))
    424418
    425419
    426420         (setq plot_end
    427                (concatenate 'string 
     421               (concatenate 'string
    428422                            "Glckwunsch! Sie haben das Undenkbare berlebt  und sind bis in den Kontroll-Raum "
    429423                            "vorgedrungen. Sie haben den Schalter umgelegt, somit die Wasserversorgung "
    430                             "umgeleitet und der Verbreitung von Abuse Einhalt geboten! "))) 
     424                            "umgeleitet und der Verbreitung von Abuse Einhalt geboten! ")))
    431425)
    432426
  • abuse/trunk/data-mac/lisp/guns.lsp

    r102 r582  
    88*/
    99
    10 (setq gun_tints (make-array 11 :initial-contents (list 
     10(setq gun_tints (make-array 11 :initial-contents (list
    1111                                                  normal_tint
    1212                                                  (def_tint "art/tints/guns/orange.spe") ; orange
     
    2222
    2323
    24 (setq ai_ammo (make-array 9 :initial-contents (list MBULLET_ICON5 
    25                                                 MBULLET_ICON5 
     24(setq ai_ammo (make-array 9 :initial-contents (list MBULLET_ICON5
     25                                                MBULLET_ICON5
    2626                                                GRENADE_ICON2
    27                                                 ROCKET_ICON2 
     27                                                ROCKET_ICON2
    2828                                                PLASMA_ICON20
    29                                                 MBULLET_ICON5 
    30                                                 MBULLET_ICON5 
    31                                                 MBULLET_ICON5 
     29                                                MBULLET_ICON5
     30                                                MBULLET_ICON5
     31                                                MBULLET_ICON5
    3232                                                MBULLET_ICON5)))
    3333
     
    5050                                        (setq sgb_bright_color (find_rgb 255 255 200))
    5151                                        (setq sgb_medium_color (find_rgb 150 150 0))
    52                                         (if creator 
     52                                        (if creator
    5353                                            (progn
    5454                                              (setq sgb_speed (+ sgb_speed (/ (xvel) 2)))
     
    6464                                        (setq sgb_lasty (y))
    6565                                        (setq sgb_angle angle)
    66                                        
     66
    6767                                        (setq sgb_bright_color (find_rgb 255 128 64))
    6868                                        (setq sgb_medium_color (find_rgb 255 0 0))
    69                                         (if creator 
     69                                        (if creator
    7070                                            (progn
    7171                                              (setq sgb_speed (+ sgb_speed (/ (xvel) 2)))
     
    7777                            (play_sound GRENADE_THROW 127 x y)
    7878                            (set_course angle 20)
    79                             (if creator 
     79                            (if creator
    8080                                (progn
    8181                                  (link_object creator)
     
    8383                                  (set_yvel (+ (yvel) (with_object creator (yvel))))
    8484                                  ))
    85                            
     85
    8686                            (set_frame_angle 0 359 angle)
    8787                            )))
     
    9393
    9494                            (if (and target   ;; don't link if not in line of site
    95                                      (can_see (x) (y) 
     95                                     (can_see (x) (y)
    9696                                              (with_object target (x))
    9797                                              (with_object target (y)) nil))
     
    111111                                        (setq sgb_lastx (x))
    112112                                        (setq sgb_lasty (y))
    113                                         (if creator 
     113                                        (if creator
    114114                                              (link_object creator))
    115115                                        (set_course angle 200)
     
    119119                                          (if (not (eq bx T))
    120120                                              (if (eq bx nil)
    121                                                   (add_object EXPLODE5 (- (x) (random 5)) 
     121                                                  (add_object EXPLODE5 (- (x) (random 5))
    122122                                                              (- (y) (random 5)) 0)
    123123                                                (progn
    124                                                   (add_object EXPLODE3 (- (x) (random 5)) 
     124                                                  (add_object EXPLODE3 (- (x) (random 5))
    125125                                                              (- (y) (random 5)) 0)
    126                                                   (do_damage 10 bx (* (cos sgb_angle) 20) 
     126                                                  (do_damage 10 bx (* (cos sgb_angle) 20)
    127127                                                             (* (sin sgb_angle) 10)))))
    128128                                          (setq sgb_lastx (x))
     
    137137                            (play_sound FIREBOMB_SND 127 (x) (y))
    138138                            (set_course angle 20)
    139                             (if creator 
     139                            (if creator
    140140                                (progn
    141141                                  (link_object creator)
     
    148148                                        (set_course angle 25)
    149149                                        (set_aistate angle)
    150                                         (if creator 
     150                                        (if creator
    151151                                              (link_object creator))
    152152                                        (dfris_ai)
     
    158158                                        (setq sgb_lastx (x))
    159159                                        (setq sgb_lasty (y))
    160                                         (if creator 
     160                                        (if creator
    161161                                              (link_object creator))
    162162                                        (set_course angle 45)
     
    164164                                          (if (not (eq bx T))
    165165                                              (if (not (eq bx nil))
    166                                                   (do_damage 30 bx (* (cos sgb_angle) 20) 
     166                                                  (do_damage 30 bx (* (cos sgb_angle) 20)
    167167                                                             (* (sin sgb_angle) 10)))))
    168168                                        )))
    169                            
     169
    170170
    171171          (9 (with_object (add_object STRAIT_ROCKET x y)
    172172                                      (progn
    173173                                        (play_sound MGUN_SND 127 (x) (y))
    174                                         (if creator 
     174                                        (if creator
    175175                                              (link_object creator))
    176176                                        (set_aistate angle)
     
    188188                                        (setq sgb_bright_color (find_rgb 255 0 0))
    189189                                        (setq sgb_medium_color (find_rgb 150 0 0))
    190                                         (if creator 
     190                                        (if creator
    191191                                            (progn
    192192                                              (setq sgb_speed (+ sgb_speed (/ (xvel) 2)))
     
    195195                                        )))
    196196
    197           ) 
     197          )
    198198)
    199199
     
    227227
    228228                  (1;; unfold
    229                    (if (next_picture) T 
     229                   (if (next_picture) T
    230230                     (progn (set_aistate 3)
    231231                            (set_state spray.aim)
     
    235235
    236236                  (2;; fold up
    237                    (if (next_picture) T 
     237                   (if (next_picture) T
    238238                     (progn (set_state stopped)
    239239                            (set_aistate 0))))
    240240
    241                  
     241
    242242                  (3;; swivel down
    243243                   (if (> (state_time) spray.fire_delay)
     
    268268        (set_state stopped)
    269269        T))))
    270                
    271 
    272              
    273              
    274     (defun spray_gun_cons () 
     270
     271
     272
     273
     274    (defun spray_gun_cons ()
    275275      (setq spray.bullet_speed 20)
    276276      (setq spray.angle_speed  10)
     
    294294        spray.end_angle
    295295        spray.angle_speed
    296         spray.angle)     
     296        spray.angle)
    297297
    298298  (fields ("hp"                 ai_health)
     
    314314
    315315(def_char TRACK_GUN
    316   (vars 
     316  (vars
    317317        fire_delay            ; how long between each shot
    318318        fire_delay_left
     
    331331        (constructor track_cons)
    332332        (draw_fun    gun_draw)
    333         (damage_fun   guner_damage))   
     333        (damage_fun   guner_damage))
    334334
    335335  (flags (can_block  T)
     
    387387        (setq angle new_angle))))
    388388
    389 (defun track_ai ()   
     389(defun track_ai ()
    390390  (if (eq (hp) 0)                                                  ;; are we dead?
    391391      nil
     
    410410                                              (- angle pangle)
    411411                                            (+ angle (- 360 pangle)))))
    412                           (let ((closest_dist (if (> clock_dist 180) 
     412                          (let ((closest_dist (if (> clock_dist 180)
    413413                                                  (- 360 clock_dist)
    414414                                                clock_dist)))
     
    419419                                  (track_set_angle (mod (+ angle angle_add) 360))
    420420                                (track_set_angle (mod (+ (- angle angle_add) 360) 360)))
    421                               (if (< angle_add 5);; pretty close to target, FIRE!                               
     421                              (if (< angle_add 5);; pretty close to target, FIRE!
    422422                                  (track_fire))))))
    423423                    (setq fire_delay_left (- fire_delay_left 1)))
     
    430430        (set_targetable nil)
    431431        (set_state stopped)
    432         T)))) 
    433          
    434        
    435 
    436 
    437 
     432        T))))
     433
     434
     435
     436
     437
  • abuse/trunk/data-mac/lisp/jugger.lsp

    r102 r582  
    44(defun jug_ai ()
    55  (if (<= (hp) 0)
    6       (if (eq (state) dieing)         
     6      (if (eq (state) dieing)
    77          (if (not (next_picture))
    88              (progn
     
    1212        (set_state dieing))
    1313    (if (activated)
    14         (progn       
     14        (progn
    1515          (set_targetable T)
    1616          (push_char 35 40)
    17           (select (aistate) 
     17          (select (aistate)
    1818                  (0 ;; prepare to walk toward player
    1919                   (if (eq stationary 0)
     
    3131                         (set_direction (toward))
    3232                         (let ((curx (x));; save position in case we fall off a cliff
    33                                (cury (y)))                   
    34                            (if (next_picture) 
     33                               (cury (y)))
     34                           (if (next_picture)
    3535                               (if (eq (current_frame) 8)
    3636                                   (play_sound JSTOMP_SND 127 (x) (y)))
     
    5454                             (xspeed (* throw_xvel (direction)))
    5555                             (yspeed throw_yvel))
    56                          (with_object (add_object GRENADE (x) (- (y) 24) 1) 
     56                         (with_object (add_object GRENADE (x) (- (y) 24) 1)
    5757                                      (progn
    5858                                        (user_fun myself)
     
    6363                  (3 ;; wait for fire animation
    6464                   (if (next_picture) nil (set_aistate 0))))
    65           T) 
     65          T)
    6666      (progn (set_targetable nil)
    6767             T))))
    68            
     68
    6969(defun jug_cons ()
    7070  (setq throw_xvel 13)
     
    9292          ("aistate"       ai_state))
    9393
    94   (states "art/jug.spe" 
     94  (states "art/jug.spe"
    9595          (stopped "robo0001.pcx")
    9696          (running (seq "rwlk" 1 13))
     
    113113               (set_targetable T)           ;; can lock into us
    114114               (push_char 30 55)))          ;; push player away
    115            
     115
    116116           (if (or (< (total_objects) 1)    ;; if not linked or link is on
    117117                   (not (eq (with_object (get_object 0) (aistate)) 0)))
     
    134134
    135135           (if (<= (hp) 0)                        ;; are we dead, if so blow up
    136                (progn   
    137                  (add_object EXPLODE1 (+ (x) 5) (- (y) 10)     0) 
     136               (progn
     137                 (add_object EXPLODE1 (+ (x) 5) (- (y) 10)     0)
    138138                 (add_object EXPLODE1 (+ (x) -5) (- (y) 15)    2)  ;; wait 2 frames before appearing
    139139                 (add_object EXPLODE1 (+ (x) 10) (- (y) 2)     1)
     
    148148           (push_char 30 55)
    149149           (< (state_time) 3))))  ;; return nil (dead) if we've been in this state for 3 frames
    150      
    151                      
    152 
    153 (defun explo_damage (amount from hitx hity push_xvel push_yvel)   
     150
     151
     152
     153(defun explo_damage (amount from hitx hity push_xvel push_yvel)
    154154  (add_object EXPLODE6 (+ (x) (- 10 (random 20))) (- (y) (random 30))     0)
    155155  (damage_fun amount from hitx hity 0 0)
     
    167167  (flags (hurtable T)
    168168         (can_block T))
    169   (abilities (run_top_speed 4)       
     169  (abilities (run_top_speed 4)
    170170             (start_hp      70)
    171171             (push_xrange   1))
     
    175175          ("rob_hiden"    rob_hide)
    176176          ("hp"           ai_health))
    177   (states "art/rob1.spe" 
     177  (states "art/rob1.spe"
    178178          (rob_hiding             "hiding")
    179179          (stopped (seq "clen" 1 10))))
     
    195195                   nil nil nil)
    196196      T)))
    197  
     197
    198198(defun who_cache (type) `((,STRAIT_ROCKET) nil))
    199199
     
    207207  (flags (hurtable T))
    208208  (abilities (start_hp 20))
    209   (vars fire_delay burst_delay burst_total burst_wait burst_left 
     209  (vars fire_delay burst_delay burst_total burst_wait burst_left
    210210        max_xvel   max_yvel    smoke_time fire_time)
    211211  (fields ("fire_delay"   who_fdelay)
     
    217217          ("aistate"      ai_state))
    218218
    219   (states "art/rob2.spe" 
     219  (states "art/rob2.spe"
    220220          (stopped (seq "wgo" 1 3))
    221221          (running (seq "wgo" 1 3))
     
    231231        (setq fire_time (- fire_time 1))
    232232        (if (eq fire_time 0)
    233             (progn 
     233            (progn
    234234              (setq burst_left burst_total)
    235235              (setq burst_wait 0))))
     
    244244
    245245
    246 (defun wrob_cons ()       
     246(defun wrob_cons ()
    247247  (setq fire_delay 4)
    248248  (setq burst_delay 1)
     
    267267                   (set_aistate 1))))
    268268              (1;; stop and fire
    269                (burst_fire  (+ (x) (* (direction) 28)) (- (y) 35)                     
     269               (burst_fire  (+ (x) (* (direction) 28)) (- (y) 35)
    270270                            (if (> (direction) 0)
    271271                                (mod (- 375 (/ (* burst_left 30) burst_total)) 360)
     
    274274                   (set_aistate 0))))
    275275      T)))
    276              
    277    
     276
     277
    278278
    279279
    280280(def_char WALK_ROB
    281281  (funs (ai_fun wrob_ai)
    282         (constructor wrob_cons) 
     282        (constructor wrob_cons)
    283283        (damage_fun  guner_damage))
    284284  (abilities (run_top_speed 12))
    285285  (flags (hurtable T) (can_block T))
    286286  (range 300 100)
    287   (vars fire_delay burst_delay burst_total burst_wait burst_left 
     287  (vars fire_delay burst_delay burst_total burst_wait burst_left
    288288        max_xvel   max_yvel    smoke_time fire_time)
    289289  (fields ("fire_delay"   wrob_fdelay)
     
    295295          ("aistate"      ai_state))
    296296
    297   (states "art/rob2.spe" 
     297  (states "art/rob2.spe"
    298298          (stopped "wwlk0001.pcx")
    299299          (running (seq "wwlk" 1 10))
  • abuse/trunk/data-mac/lisp/ladder.lsp

    r102 r582  
    4343          (stopped "step")
    4444          (running "step_gone")))
    45  
    46        
    47        
     45
     46
  • abuse/trunk/data-mac/lisp/light.lsp

    r102 r582  
    99                       (eq (with_object (get_object 0) (aistate)) 0)
    1010                     nil)))
    11                    
     11
    1212
    1313(defun dim_ai ()
     
    7070  (flags (unlistable T))
    7171  (fields  ("aistate"    ai_state)
    72            ("xvel"       dimmer_step_amount) 
    73            ("yvel"       dimmer_steps) 
     72           ("xvel"       dimmer_step_amount)
     73           ("yvel"       dimmer_steps)
    7474           ("aitype"     dimmer_dist)
    7575           ("xacel"      dimmer_dedist)
     
    8585        (constructor dim_cons))
    8686  (fields  ("aistate"   ai_state)
    87            ("xvel"      dimmer_step_amount) 
     87           ("xvel"      dimmer_step_amount)
    8888           ("yvel"      dimmer_steps)
    8989           ("yacel"     dimmer_silent))
  • abuse/trunk/data-mac/lisp/options.lsp

    r102 r582  
    5050
    5151; this option allows the game to exit a idle game after 1 minute
    52 ; and go into a demo 
     52; and go into a demo
    5353
    5454; (demo_break_enable)
  • abuse/trunk/data-mac/lisp/people.lsp

    r102 r582  
    33
    44(setq bright_tint (def_tint "art/tints/cop/bright.spe"))  ;; used when the player fires a weapon
    5 (setq player_tints (make-array 8 :initial-contents (list 
     5(setq player_tints (make-array 8 :initial-contents (list
    66                                                    0                                      ; 0 this is not used
    77                                                    (def_tint "art/tints/cop/blue.spe")    ; 1 bright blue
     
    1515)))
    1616
    17 (setq player_text_color (make-array 8 :initial-contents (list 
     17(setq player_text_color (make-array 8 :initial-contents (list
    1818                                                         43       ; 0 brown
    1919                                                         216      ; 1 blue
     
    2525                                                         192)))   ; 7 purple
    2626
    27 (setq cop_dead_parts (make-array (* 4 3) :initial-contents 
     27(setq cop_dead_parts (make-array (* 4 3) :initial-contents
    2828                               ;       head           arm            leg
    2929                             '((CP_1  "4dha") (CP_2  "4daa") (CP_3  "4dba")     ; disapear
     
    3535(do ((i 0 (setq i (+ i 1))))
    3636           ((>= i 12) nil)
    37            (setq (aref cop_dead_parts i) 
    38                  (make_dead_part (car (aref cop_dead_parts i))           
     37           (setq (aref cop_dead_parts i)
     38                 (make_dead_part (car (aref cop_dead_parts i))
    3939                                 (car (cdr (aref cop_dead_parts i))) 4 "art/cop.spe" 'dead_cop_part_draw)))
    4040
     
    4949
    5050
    51                                  
     51
    5252
    5353(defun give_player_health (amount)
     
    7070        T)))
    7171)
    72    
     72
    7373
    7474
     
    122122      nil
    123123    (select signal
    124             (SET_SNEAKY_TIME 
    125              (progn 
     124            (SET_SNEAKY_TIME
     125             (progn
    126126               (set_sneaky_time value)
    127127               (with_obj0 (set_sneaky_time value))))
    128128            (SET_VISOR_TIME (set_visor_time value))
    129             (SET_FAST_TIME 
    130              (progn 
     129            (SET_FAST_TIME
     130             (progn
    131131               (set_fast_time value)
    132132               (with_obj0 (set_fast_time value))))
    133             (SET_FADE_COUNT (set_fade_count value) 
     133            (SET_FADE_COUNT (set_fade_count value)
    134134                            (with_obj0 (set_fade_count value)))
    135              
     135
    136136            )))
    137                    
     137
    138138
    139139(defun cop_adjust_top (return)
     
    165165            (if (> ym 0)
    166166                (progn
    167                   (if (eq (current_frame) 0) (set_current_frame 9) 
     167                  (if (eq (current_frame) 0) (set_current_frame 9)
    168168                    (set_current_frame (- (current_frame) 1)))
    169169                  (set_y (+ (y) 3)))
     
    188188
    189189            0)
    190         (if (and (>= (yvel) 0) (or (> ym 0) 
     190        (if (and (>= (yvel) 0) (or (> ym 0)
    191191                                   (and (< ym 0) (> yd 8))))
    192192            (progn
     
    202202            (cop_adjust_top (mover xm ym but))))
    203203        ))))
    204      
    205      
     204
     205
    206206(defun undo_special_power (xm ym but)
    207207  (select special_power
     
    222222               (set_yvel (- (yvel) 1)))
    223223           )
    224          
    225 
    226           (FAST_POWER 
     224
     225
     226          (FAST_POWER
    227227           (setq used_special_power 1)
    228228           (setq last1_x (x))
     
    230230           (if (> (total_objects) 0)
    231231               (with_obj0
    232                             (if (> fire_delay1 0) 
     232                            (if (> fire_delay1 0)
    233233                                (setq fire_delay1 (- fire_delay1 1)))))
    234234
    235            
     235
    236236           (let ((in_area in_climbing_area)
    237237                 (old_yvel (yvel)))
     
    240240             (if (and (< ym 0) (eq old_yvel 0) (< (yvel) 0))
    241241                 (set_yvel (+ (yvel) (/ (yvel) 3))))
    242                  
     242
    243243             )
    244244
     
    246246           (setq last2_y (y)))
    247247
    248           (SNEAKY_POWER (if (<= used_special_power 15)                     
     248          (SNEAKY_POWER (if (<= used_special_power 15)
    249249                            (setq used_special_power (+ used_special_power 1))))
    250250          ))
     
    261261    (climb_handler xm ym but)))
    262262
    263 /*(defun cop_mover (xm ym but) 
    264   (if (> (yvel) 10) 
    265       (progn 
     263/*(defun cop_mover (xm ym but)
     264  (if (> (yvel) 10)
     265      (progn
    266266        (set_yacel 0)
    267267        (set_yvel (- (yvel) 1))))  ;; terminal velocity
    268268  (select (aistate)
    269           (JUST_START 
    270            (if (eq but 0)              ; wait till user lets go of button before moving       
     269          (JUST_START
     270           (if (eq but 0)              ; wait till user lets go of button before moving
    271271               (progn
    272272                 (set_aistate NORMAL_PLAY)
     
    299299                   (do_special_power xm ym but)
    300300                 (undo_special_power xm ym but))
    301                
     301
    302302               (let ((ret (player_move xm ym but))
    303303                     (other (me)))
    304                  (with_obj0 
     304                 (with_obj0
    305305                              (progn
    306306                                (set_x (with_object other (x)))
    307                                 (set_y (- (- (with_object other (y)) -29) 
     307                                (set_y (- (- (with_object other (y)) -29)
    308308                                          (with_object other (picture_height))))
    309309                                ))
     
    311311                          (not (eq (state) dead)) (not (eq (state) dieing)))
    312312                     (let ((ammo (ammo_total (current_weapon_type))))
    313                        (add_ammo (current_weapon_type) (with_obj0 
     313                       (add_ammo (current_weapon_type) (with_obj0
    314314                                                                    (user_fun 'FIRE ammo)))
    315315                       nil))
     
    365365                                             ;; save the level we are so joining clients know which one to load
    366366                                             (if (not (am_a_client))
    367                                                  (open_file "addon/deathmat/cur_lev.lsp" "wb" 
     367                                                 (open_file "addon/deathmat/cur_lev.lsp" "wb"
    368368                                                            (print `(setq current_net_level ,current_net_level))))
    369369
     
    376376
    377377
    378               ))) 
     378              )))
    379379  )
    380380
     
    383383          (JUST_START T)
    384384          (NORMAL_PLAY T)))
    385              
     385
    386386(defun change_mode (new_mode)
    387387  (setq disable_top_draw (if (should_draw_top? new_mode) 0 1))
     
    392392      (put_image (- (view_x2) 20) (+ (view_y1) 5) fast_image))
    393393                       (if (eq used_special_power 1)
    394                            (if (> (total_objects) 0)                   
     394                           (if (> (total_objects) 0)
    395395                               (let ((nowx (x))
    396396                                     (nowy (y))
     
    431431
    432432(defun player_draw (num)
    433   (if (eq num 0) 
     433  (if (eq num 0)
    434434      (if (eq just_fired 1)           ;; if they just fired a weapon, draw them lite up.. use the bright tint
    435435          (progn
     
    439439;       (draw_tint (aref player_tints (aitype)))
    440440        )
    441     (if (eq just_fired 1)   
     441    (if (eq just_fired 1)
    442442        (progn
    443443          (draw_double_tint (aref player_tints num) bright_tint)
    444           (setq just_fired 0))      ;; ok to change this in the draw function only if it is not accessed anywhere else!     
     444          (setq just_fired 0))      ;; ok to change this in the draw function only if it is not accessed anywhere else!
    445445      (draw_tint (aref player_tints num)))))
    446446
     
    468468            (setq b_ramp 0)))
    469469
    470         (if (local_player)     
     470        (if (local_player)
    471471            (tint_palette r_ramp g_ramp b_ramp))))
    472472
     
    474474  (select (aistate)
    475475          (JUST_START (player_draw (player_number)))
    476           (NORMAL_PLAY 
     476          (NORMAL_PLAY
    477477           (select special_power
    478478                   (NO_POWER (player_draw (player_number)))
     
    481481                                     (put_image (- (view_x2) 20) (+ (view_y1) 5) health_image)))
    482482                   (FAST_POWER (draw_fast) (player_draw (player_number)))
    483                    (FLY_POWER   (player_draw (player_number)) 
     483                   (FLY_POWER   (player_draw (player_number))
    484484                                (if (local_player)
    485485                                    (put_image (- (view_x2) 20) (+ (view_y1) 5) fly_image)))
    486                    (SNEAKY_POWER 
     486                   (SNEAKY_POWER
    487487                    (if (local_player)
    488488                        (put_image (- (view_x2) 20) (+ (view_y1) 5) sneaky_image))
     
    503503
    504504  (if (eq (total_players) 1)     ;; is this a single player game?
    505       (request_level_load  (if (eq has_saved_this_level 0) 
     505      (request_level_load  (if (eq has_saved_this_level 0)
    506506                               (progn
    507507                                 (set_hp 100)
     
    514514
    515515
    516 (defun start_cache (type) 
     516(defun start_cache (type)
    517517  `((,DARNEL) nil))
    518518
     
    539539                                    (aref player_text_color (player_number)))))
    540540                   (p_compass_draw (next_focus player)))))
    541  
     541
    542542
    543543(defun compass_draw ()
     
    626626          ))
    627627
    628  
     628
    629629(defun clone_ai ()
    630630  (if (and (< (state_time) 200) (not (eq (state) dead)))
     
    636636                (-1 (if (blocked_left (move -1 0 0))
    637637                        (set_direction 1)
    638                       nil)))       
     638                      nil)))
    639639            (if (or (> (state_time) 185) (eq (state) dieing))
    640640                (set_fade_count (+ (fade_count) 1))
    641               nil)         
     641              nil)
    642642            T)
    643643        nil))
     
    649649
    650650  (or (eq state stopped) (eq state running)
    651                         (eq state run_jump) (eq state run_jump_fall) 
     651                        (eq state run_jump) (eq state run_jump_fall)
    652652                        (eq state end_run_jump)))
    653653
     
    655655  (if (> (total_objects) 0)
    656656      (let ((other  (get_object 0)))
    657         (if (or (with_object other (morphing)) 
     657        (if (or (with_object other (morphing))
    658658                (eq (with_object other disable_top_draw) 1)
    659659                (not (top_draw_state (with_object other (state)))))
     
    664664                             (with_object other (player_number)))
    665665              (let ((nowx (x))
    666                     (nowy (y)))                         
     666                    (nowy (y)))
    667667                (set_x (with_object other (if (> (direction) 0) (x) (+ (x) 2))))
    668668                (set_y (- (- (with_object other (y)) -29) (with_object other (picture_height))))
     
    695695(defun player_fire_weapon (type target)
    696696  (let ((angle (with_obj0 (player_angle_suggestion))))
    697                            
     697
    698698    (let ((firex (+ (x) (* (cos angle) 17) (xvel)))
    699699          (firey (+ (- (y) (* (sin angle) 16) 20) (yvel))))
    700       (if (can_see (x) (- (y) 16) firex firey nil)     
     700      (if (can_see (x) (- (y) 16) firex firey nil)
    701701          (progn
    702702            (fire_object  (get_object 0) type firex firey angle target)
     
    704704        nil))))
    705705
    706 /* (defun top_ai () 
     706/* (defun top_ai ()
    707707  (if (> (total_objects) 0)
    708708      (let ((myself (get_object 0)))
    709      
     709
    710710        (set_state rotate)
    711         (let ((angle (with_object myself 
     711        (let ((angle (with_object myself
    712712                                            (if (> (direction) 0)
    713713                                                (player_angle_suggestion)
     
    722722            (select (aistate)
    723723                    (2                  ; start fire up
    724                      (progn 
     724                     (progn
    725725                       (set_state rotate_fire)
    726                        (set_frame_angle 0 359 (with_object myself 
     726                       (set_frame_angle 0 359 (with_object myself
    727727                                            (if (> (direction) 0)
    728728                                                (player_angle_suggestion)
     
    735735;;                          (let ((otype (otype)))
    736736;;                            (with_object myself (add_ammo otype -1)))
    737 ;;                          (with_object (add_object (ammo_type) (x) (- (y) 16) 1) 
     737;;                          (with_object (add_object (ammo_type) (x) (- (y) 16) 1)
    738738;;                                       (user_fun myself))
    739739                          (set_aistate 3)))
     
    752752                         )))
    753753          (set_otype (with_object myself (weapon_to_type (current_weapon_type)))))))
    754   (move 0 0 0) 
     754  (move 0 0 0)
    755755  T)
    756756
     
    762762  (select signal
    763763          ('FIRE (if (eq (aistate) 0)  ;;  not already firing
    764                      (if (> value 0)   ;; have ammo             
    765                          (progn               
     764                     (if (> value 0)   ;; have ammo
     765                         (progn
    766766                           (setq fire_delay1 3)
    767767                           (set_aistate 2)
     
    769769                               -1
    770770                             0))
    771                        (progn                 
     771                       (progn
    772772                         (setq fire_delay1 7)
    773773                         (set_aistate 2)
     
    775775
    776776                         0))
    777                    0))   
     777                   0))
    778778          ('RESET_FIRE_OK (>= (state_time) fire_delay1))))
    779779
     
    812812                       (setq fire_delay1 12)
    813813                       (set_aistate 2)
    814                        (if (player_fire_weapon (ammo_type) 
    815                                            (with_obj0 (find_object_in_area 
     814                       (if (player_fire_weapon (ammo_type)
     815                                           (with_obj0 (find_object_in_area
    816816                                                                        (- (x) 160) (- (y) 160)
    817                                                                         (+ (x) 160) (+ (y) 160) 
     817                                                                        (+ (x) 160) (+ (y) 160)
    818818                                                                        bad_guy_list)))
    819819                           -1 0))
     
    835835           (DFRIS_TOP     (list DFRIS_BULLET))
    836836   nil)))
    837            
     837
    838838
    839839(defun make_top_char (symbol base ufun dfun)
     
    850850                       (stopped        (seq ,base 1 24))))))
    851851
    852              
     852
    853853
    854854(make_top_char 'MGUN_TOP     "4gma" 'laser_ufun         'top_draw)
     
    869869                 (if (and (touching_bg) (with_object (bg) (pressing_action_key)))
    870870                     (set_aistate 2)))
    871               (2 (set_state running)       
     871              (2 (set_state running)
    872872                 (set_aistate 3))
    873               (3 (set_aistate 4))           
    874               (4 
     873              (3 (set_aistate 4))
     874              (4
    875875               (let ((spot (get_save_slot)))
    876876                 (set_state stopped)
     
    892892               )))
    893893  T)
    894          
     894
    895895
    896896(def_char RESTART_POSITION
     
    909909          (request_level_load (concatenate 'string "levels/level" (digstr (aistate) 2) ".spe")))))
    910910  T)
    911        
     911
    912912
    913913(def_char NEXT_LEVEL
    914   (funs (ai_fun next_level_ai)) 
     914  (funs (ai_fun next_level_ai))
    915915  (flags (can_block T))
    916916  (fields ("aistate" next_level))
     
    947947          (set_direction 1))
    948948      (set_fade_count (- (fade_count) 1)))))
    949    
    950                      
     949
     950
    951951(def_char TELE_BEAM
    952952  (funs (ai_fun tele_beam_ai))
  • abuse/trunk/data-mac/lisp/platform.lsp

    r102 r582  
    4848      (let ((speed (plat_speed)))
    4949        (let ((newx (- destx (/ (* (- destx sourcex) (xvel)) speed)))
    50               (newy (- desty (/ (* (- desty sourcey) (xvel)) speed)))) 
     50              (newy (- desty (/ (* (- desty sourcey) (xvel)) speed))))
    5151          (progn
    5252            (platform_push (- newx (x)) (- newy (y)))
     
    5757(defun platform_ai ()
    5858  (if (or (eq (total_objects) 2)                     ;; no switch to listen to processed as normal
    59           (and (eq (total_objects) 3) 
     59          (and (eq (total_objects) 3)
    6060               (not (eq (with_object (get_object 2) (aistate)) 0))))  ;; see if switch is active
    6161      (progn
     
    7878                 (play_sound PLAT_A_SND 127 (x) (y))
    7979                 (set_aitype (- 1 (aitype)))
    80                  (set_xvel (plat_speed));; steps to go           
     80                 (set_xvel (plat_speed));; steps to go
    8181                 (go_state 3))
    82                
     82
    8383                (3 ;; go to dest
    84                  (if (eq (xvel) 6) 
     84                 (if (eq (xvel) 6)
    8585                     (play_sound PLAT_D_SND 127 (x) (y)))
    8686                 (platform_move (get_object (aitype)) (get_object (- 1 (aitype)))))
     
    8888    (set_state stopped))
    8989  T)
    90                  
    9190
    9291
     
    120119
    121120
     121
  • abuse/trunk/data-mac/lisp/playwav.lsp

    r102 r582  
    99      nil
    1010    (progn
    11       (print (concatenate 'string "Playing " (argv arg_on) 
     11      (print (concatenate 'string "Playing " (argv arg_on)
    1212                                  ", type c <ENTER> to continue"))
    1313      (play_sound (def_sound (argv arg_on)))
  • abuse/trunk/data-mac/lisp/powerup.lsp

    r102 r582  
    22;; See licensing information for more details on usage rights
    33
    4 (defun key_ai () (if (touching_bg) 
    5                      (progn 
     4(defun key_ai () (if (touching_bg)
     5                     (progn
    66                       (play_sound YEAH_SOUND 127 (x) (y))
    77                       nil) T))
    88
    9 (defun hp_up () 
     9(defun hp_up ()
    1010        (next_picture)
    1111
     
    3737  (states "art/compass.spe" (stopped "compass" )))
    3838
    39 (defun fast_ai () 
     39(defun fast_ai ()
    4040  (next_picture)
    41   (if (touching_bg) 
    42       (progn (with_object (bg) 
     41  (if (touching_bg)
     42      (progn (with_object (bg)
    4343                          (progn
    4444                            (setq special_power FAST_POWER)
  • abuse/trunk/data-mac/lisp/sfx.lsp

    r566 r582  
    4747(def_sound 'TICK_SND       (sfxdir "timerfst.wav"))
    4848
    49 (setq PLAYER_PAIN (make-array 4 :initial-contents 
     49(setq PLAYER_PAIN (make-array 4 :initial-contents
    5050                              (list (def_sound (sfxdir "plpain01.wav"))
    5151                                    (def_sound (sfxdir "plpain02.wav"))
     
    5858                                   (def_sound (sfxdir "pldeth05.wav"))
    5959                                   (def_sound (sfxdir "pldeth07.wav")))))
    60                                    
     60
    6161
    6262;; jugger stomp
     
    8080
    8181;; shotgun/laser taking from the lava sample
    82 (def_sound 'ZAP_SND       (sfxdir "zap2.wav")) 
     82(def_sound 'ZAP_SND       (sfxdir "zap2.wav"))
    8383
    8484;; rocket launch sound
     
    9393
    9494;; machine gun hitting the floor, sounds 1 & 2, played randomly
    95 (def_sound    'MG_HIT_SND1 (sfxdir "mghit01.wav"))   
     95(def_sound    'MG_HIT_SND1 (sfxdir "mghit01.wav"))
    9696(def_sound    'MG_HIT_SND2 (sfxdir "mghit02.wav"))
    9797
     
    131131;; electricity shooting up from the ground
    132132(def_sound 'ELECTRIC_SND   (sfxdir "elect02.wav"))
    133  
     133
    134134;; rocket being fired
    135135(def_sound 'ROCKET_SND     (sfxdir "rocket02.wav"))
     
    185185
    186186
    187 (setq AMB_SOUNDS (make-array 17 :initial-contents (list 
     187(setq AMB_SOUNDS (make-array 17 :initial-contents (list
    188188                               (def_sound (sfxdir "ambtech1.wav"))   ;; 0
    189189                               (def_sound (sfxdir "ambtech2.wav"))  ;; 1
     
    205205                               )))
    206206
    207 (setq voice_hints (make-array 12 :initial-contents (list 
     207(setq voice_hints (make-array 12 :initial-contents (list
    208208                                                    (def_sound "sfx/voice/aimsave.wav")
    209209                                                    (def_sound "sfx/voice/ammosave.wav")
     
    238238      T)))
    239239
    240        
    241 (defun ambs_cons () 
     240
     241(defun ambs_cons ()
    242242  (set_xvel 100)  ;; delay time to 100
    243243  (set_yvel 127)) ;; set volume default to 127
    244244
    245 (def_char AMBIENT_SOUND 
     245(def_char AMBIENT_SOUND
    246246  (funs (ai_fun          amb_sound_ai)
    247247        (draw_fun        dev_draw)
     
    250250  (range 500 500)
    251251  (fields ("aitype" amb_num)
    252           ("yvel"   amb_vol)     
     252          ("yvel"   amb_vol)
    253253          ("xvel"   amb_rep)
    254254          ("xacel"  amb_rand))
    255255  (states "art/misc.spe"
    256256          (stopped "sfx_player")))
    257        
     257
    258258(setq song_list '("music/abuse01.hmi" "music/abuse02.hmi"))
    259259(setq current_song song_list)
     
    265265        (break)
    266266        (setq current_song (cdr current_song))
    267         (if (not current_song) 
     267        (if (not current_song)
    268268            (setq current_song song_list))
    269269        (break)
    270270        )))
    271271
    272                                    
     272
    273273(defun level_loaded (name)
    274274  (trace)
  • abuse/trunk/data-mac/lisp/startup.lsp

    r102 r582  
    66(setq load_warn nil)
    77
    8 (if (local_load "addon/deathmat/username.lsp") 
     8(if (local_load "addon/deathmat/username.lsp")
    99  (set_login username))
    1010
    11 (if (local_load "addon/deathmat/gamename.lsp") 
     11(if (local_load "addon/deathmat/gamename.lsp")
    1212  (set_game_name gamename)
    1313  (set_game_name "Joe's Game"))
  • abuse/trunk/data-mac/lisp/switch.lsp

    r102 r582  
    22;; See licensing information for more details on usage rights
    33
    4 (defun switcher_ai () 
     4(defun switcher_ai ()
    55  (next_picture)
    66  (select (aistate)
     
    99               (progn
    1010                 (play_sound SWITCH_SND 127 (x) (y))
    11                  (set_state running)             
     11                 (set_state running)
    1212                 (set_aistate 1))))
    13           (1     ; wait for player to let go of button   
     13          (1     ; wait for player to let go of button
    1414           (if (not (with_object (bg) (pressing_action_key)))
    1515               (set_aistate 2)))
     
    1919                 (play_sound SWITCH_SND 127 (x) (y))
    2020                 (set_state stopped)
    21                  (set_aistate 4))))     
     21                 (set_aistate 4))))
    2222           (4     ; wait for player to let go of button
    2323            (if (not (with_object (bg) (pressing_action_key)))
     
    2525           )
    2626T)
    27              
    28 
    29 (defun switch_once_ai () 
     27
     28
     29(defun switch_once_ai ()
    3030  (select (aistate)
    3131          (0      ; waiting for player to press, then turn to on
     
    3838                 (set_aistate 1)))))
    3939  T)
    40          
     40
    4141(defun lower_reload () (lower))   ;; move object below all other objects
    42      
     42
    4343(def_char SWITCH
    4444  (funs (ai_fun switcher_ai)
    4545        (reload_fun lower_reload))
    46   (range 0 0) 
     46  (range 0 0)
    4747  (states "art/misc.spe"
    4848          (stopped '("switch_off1" "switch_off2"))
     
    5252  (funs (ai_fun switch_once_ai)
    5353        (reload_fun lower_reload))
    54   (range 0 0) 
     54  (range 0 0)
    5555  (states "art/misc.spe"
    5656          (stopped '("switch_off1" "switch_off2"))
     
    6767  (vars reset_time)
    6868  (fields ("reset_time" switch_reset))
    69   (range 0 0) 
     69  (range 0 0)
    7070  (states "art/misc.spe"
    7171          (stopped '("switch_off1" "switch_off2"))
     
    9999  (if (> (total_objects) 1)
    100100      (select (aistate)
    101               (0 (if (not (eq (with_object (get_object 0) (aistate)) 0))                     
     101              (0 (if (not (eq (with_object (get_object 0) (aistate)) 0))
    102102                     (let ((mex (x))
    103103                           (mey (y)))
     
    124124                       (with_object (get_object 1) (set_fade_count (- count 1)))
    125125                       T)))))
    126                              
     126
    127127    nil))
    128128
     
    138138  (set_aitype 1)
    139139  (add_hp -10))
    140  
     140
    141141
    142142/* -- compiled code
     
    144144  (if (eq (aistate) 0)
    145145      (if (and (< (distx) (xvel)) (< (disty) (yvel)))
    146           (progn 
     146          (progn
    147147            (if (eq (hp) 0)  ;; don't time out
    148148                (set_aistate 1)
     
    152152
    153153        (if (eq (hp) 0)
    154             (if (or (> (distx) (xacel)) (> (disty) (yacel)))       
     154            (if (or (> (distx) (xacel)) (> (disty) (yacel)))
    155155                (set_aistate 0))
    156156          (set_aistate (- (aistate) 1))))
     
    158158
    159159(defun sensor_draw ()
    160   (if (edit_mode) 
     160  (if (edit_mode)
    161161      (progn
    162162        (draw)
     
    216216          (stopped "off")
    217217          (blocking "on")))
    218                    
     218
    219219/*
    220220(defun sensor_linker_ai ()
    221221  (if (eq (aistate) 0)
    222222      (if (and (< (distx) (xvel)) (< (disty) (yvel)))
    223           (progn 
     223          (progn
    224224            (if (eq (hp) 0)  ;; don't time out
    225225                (set_aistate 1)
     
    229229
    230230    (if (eq (hp) 0)
    231         (if (or (> (distx) (xacel)) (> (disty) (yacel)))           
     231        (if (or (> (distx) (xacel)) (> (disty) (yacel)))
    232232            (set_aistate 0))
    233233      (set_aistate (- (aistate) 1)))))
     
    251251          (stopped "off")
    252252          (blocking "on")))
    253  
     253
    254254*/
    255255
     
    258258      (let ((st (with_object (get_object current) (state))))
    259259        (if (or (eq st dead) (eq st blown_back_dead))
    260             (let ((dead_guy (get_object current)))           
     260            (let ((dead_guy (get_object current)))
    261261              (remove_object (get_object current))
    262262              dead_guy)
     
    268268      (let ((find (dead_object (- (total_objects) 1))))
    269269        (if find
    270             (add_object (with_object (get_object 0) (otype)) 
     270            (add_object (with_object (get_object 0) (otype))
    271271                        (with_object find (x))
    272272                        (with_object find (y))))))
    273                          
     273
    274274  T)
    275275
     
    282282
    283283
    284 (defun death_sen_ai () 
     284(defun death_sen_ai ()
    285285  (if (eq (total_objects) 0)
    286286      (progn
  • abuse/trunk/data-mac/lisp/teleport.lsp

    r102 r582  
    77    (with_object (get_object 0)
    88                 (if (eq (otype) TP_DOOR)
    9                      (if (eq is_opening 0)                       
     9                     (if (eq is_opening 0)
    1010                         (if (and (< (distx) 100) (< (disty) 80))
    1111                             T
     
    3232          (play_sound DOOR_DOWN 127 (x) (y)))
    3333      (set_current_frame (- (current_frame) 1)))))
    34  
     34
    3535
    3636(defun tpd_ai ()     ;; teleporting door ai
     
    4949                (othery (with_object (get_object 0) (y))))
    5050            (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)
    5353                                  (set_y othery)))))))
    5454T)
     
    5656
    5757(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))
    5959
    6060(def_char TP_DOOR
  • abuse/trunk/data-mac/lisp/userfuns.lsp

    r102 r582  
    88      (set_lives first x)
    99      (set_all_lives (next_focus first) x))))
    10  
    1110
    12 (defun select_place (x place)
     11
     12(defun select_place (x place)
    1313  (- (/ x place) (* (/ x (* place 10)) 10)))
    1414
    15 (defun dig2char (x) 
     15(defun dig2char (x)
    1616  (code-char (+ x (char-code "0"))))
    1717
     
    2525    (reverse-seq name first last))
    2626)
    27 (defun forward-seq (name first last) 
    28   (if (> first last) 
    29       nil 
    30     (cons (concatenate 'string name (digstr first 4) ".pcx") 
     27(defun forward-seq (name first last)
     28  (if (> first last)
     29      nil
     30    (cons (concatenate 'string name (digstr first 4) ".pcx")
    3131          (forward-seq name (+ 1 first) last))))
    32 (defun reverse-seq (name last first) 
    33   (if (< last first) 
    34       nil 
    35     (cons (concatenate 'string name (digstr last 4) ".pcx") 
     32(defun reverse-seq (name last first)
     33  (if (< last first)
     34      nil
     35    (cons (concatenate 'string name (digstr last 4) ".pcx")
    3636          (reverse-seq name (- last 1) first))))
    3737*/
  • abuse/trunk/data-mac/lisp/weapons.lsp

    r102 r582  
    99      (if (eq bx T)
    1010          T
    11         (progn 
     11        (progn
    1212          (if (null bx)
    1313              (if (eq (random 2) 0)
     
    2020            (progn
    2121;             (add_panim EXPLO2 (x) (y) (direction))
    22 ;             (add_object EXP_LIGHT (x) (y) 80) 
     22;             (add_object EXP_LIGHT (x) (y) 80)
    2323              (do_damage 5 bx (if (> 0 (direction)) -10 10) 0)
    2424              ))
     
    2929  (if (and (eq (tick) 0)
    3030           (if (< (total_objects) 1)
    31                nil           
     31               nil
    3232             (let ((mex (x))
    3333                   (mey (y)))
    34                (not (with_object (get_object 0) (find_object_in_area (- mex 7) 
    35                                                                      (- mey 7) 
    36                                                                      (+ mex 7) 
     34               (not (with_object (get_object 0) (find_object_in_area (- mex 7)
     35                                                                     (- mey 7)
     36                                                                     (+ mex 7)
    3737                                                                     (+ mey 7) bad_guy_list))))))
    3838      (progn (next_picture) T)
     
    4444
    4545  (add_object EXPLODE1 (- (x) (random 5)) (+ (y) (random 20)) 0)
    46   (hurt_radius (x) (y) 60 40 (if (> (total_objects) 0) (get_object 0) nil) 10)     
     46  (hurt_radius (x) (y) 60 40 (if (> (total_objects) 0) (get_object 0) nil) 10)
    4747
    4848  (and (or (< (state_time) 3) (not (eq (xvel) 0)))
    4949       (< (state_time) 20)
    5050       (select (direction)
    51               (1 (progn ;(set_xvel 30) 
     51              (1 (progn ;(set_xvel 30)
    5252                        (not (blocked_right (move 0 0 0)))
    5353                        ))
    54               (-1 (progn ;(set_xvel -30) 
     54              (-1 (progn ;(set_xvel -30)
    5555                         (not (blocked_left (move 0 0 0))))))))
    56      
    57 
    58 
    59 
    60 
    61 (defun mbullet_ufun (creator) 
     56
     57
     58
     59
     60
     61(defun mbullet_ufun (creator)
    6262  (set_direction (with_object creator (direction)))
    6363
     
    7676
    7777
    78 (defun firebomb_ufun (creator) 
     78(defun firebomb_ufun (creator)
    7979  (set_direction (with_object creator (direction)))
    8080  (link_object creator)
     
    8383
    8484
    85 (defun player_mine_ufun (creator) 
     85(defun player_mine_ufun (creator)
    8686  (set_x (with_object creator (x)))
    8787  (set_y (with_object creator (y)))
     
    9494  (select (aistate)
    9595          (0
    96            ;; wait till no player (just in case), or player lets go of fire button 
    97            (if (or (eq 0 (total_objects)) 
     96           ;; wait till no player (just in case), or player lets go of fire button
     97           (if (or (eq 0 (total_objects))
    9898                   (and (eq (with_object (get_object 0) (player_b1_suggest)) 0)
    9999                        (eq (with_object (get_object 0) (player_b2_suggest)) 0)))
     
    107107               (do_explo 50 40)
    108108             ))))
    109      
     109
    110110
    111111(def_char MBULLET
    112   (funs (ai_fun     mbullet_ai) 
     112  (funs (ai_fun     mbullet_ai)
    113113        (draw_fun   dev_draw)     ; you can't see the bullets
    114114        (user_fun   mbullet_ufun))
     
    118118
    119119
    120 (defun grenade_ufun (creator) 
     120(defun grenade_ufun (creator)
    121121  (set_direction (with_object creator (direction)))
    122122  (play_sound GRENADE_THROW 127 (x) (y))
    123123  (select (aitype)
    124           (1 (progn (set_xvel (if (> (direction) 0) 
    125                                   (+ 13 (random 2)) 
     124          (1 (progn (set_xvel (if (> (direction) 0)
     125                                  (+ 13 (random 2))
    126126                                (+ -13 (random 2)))) (set_yvel -4)))
    127           (2 (progn (set_xvel (if (> (direction) 0) 
    128                                   (+ 7 (random 2)) 
     127          (2 (progn (set_xvel (if (> (direction) 0)
     128                                  (+ 7 (random 2))
    129129                                (+ -7 (random 2)))) (set_yvel -10))))
    130130  (set_xvel (+ (xvel) (with_object creator (xvel))))
     
    133133
    134134(defun grenade_cache (type)
    135   (list (list EXPLODE1 EXP_LIGHT) 
     135  (list (list EXPLODE1 EXP_LIGHT)
    136136        (list GRENADE_SND)))
    137137
    138138
    139139(def_char GRENADE
    140   (funs (ai_fun   grenade_ai) 
     140  (funs (ai_fun   grenade_ai)
    141141        (get_cache_list_fun grenade_cache)
    142142        (user_fun grenade_ufun))
     
    147147
    148148(def_char FIREBOMB
    149   (funs (ai_fun   firebomb_ai) 
     149  (funs (ai_fun   firebomb_ai)
    150150        (user_fun firebomb_ufun)
    151151        (get_cache_list_fun grenade_cache)
     
    159159          (walking "firebomb")))
    160160
    161      
     161
    162162
    163163(defun ammo_cache (type)    ;; tells what other chars to load in with this character
     
    169169           (MBULLET_ICON20   `(,SHOTGUN_BULLET ,MGUN_TOP))
    170170           (ROCKET_ICON2     `(,ROCKET ,ROCKET_TOP))
    171            (ROCKET_ICON5     `(,ROCKET ,ROCKET_TOP))     
     171           (ROCKET_ICON5     `(,ROCKET ,ROCKET_TOP))
    172172           (FBOMB_ICON1      `(,FIREBOMB ,FIREBOMB_TOP))
    173173           (FBOMB_ICON5      `(,FIREBOMB ,FIREBOMB_TOP))
    174174
    175175           (PLASMA_ICON20    `(,PLASMAGUN_BULLET))
    176            (PLASMA_ICON50    `(,PLASMAGUN_BULLET))         
     176           (PLASMA_ICON50    `(,PLASMAGUN_BULLET))
    177177
    178178           (LSABER_ICON50    `(,LSABER_BULLET ,PGUN_TOP))
     
    183183   nil)))
    184184
    185      
     185
    186186
    187187/*  written in C
     
    192192    (dev_draw)))
    193193
    194 (defun weapon_icon_ai () 
     194(defun weapon_icon_ai ()
    195195  (if (eq0 (aistate))
    196196      (if (activated)
     
    200200                (set_aistate 1))
    201201
    202             (if (touching_bg) 
     202            (if (touching_bg)
    203203                (progn
    204204                  (play_sound AMMO_SND 127 (x) (y))
     
    206206                          (MBULLET_ICON5   (giver 0));; these numbers correspond to status bar position
    207207                          (MBULLET_ICON20  (giver 0))
    208                           (GRENADE_ICON2   (giver 1))           
     208                          (GRENADE_ICON2   (giver 1))
    209209                          (GRENADE_ICON10  (giver 1))
    210210
     
    229229              T))
    230230        T)
    231     (if (touching_bg) 
     231    (if (touching_bg)
    232232        (progn
    233233          (play_sound AMMO_SND 127 (x) (y))
     
    235235                  (MBULLET_ICON5   (giver 0));; these numbers correspond to status bar position
    236236                  (MBULLET_ICON20  (giver 0))
    237                   (GRENADE_ICON2   (giver 1))           
     237                  (GRENADE_ICON2   (giver 1))
    238238                  (GRENADE_ICON10  (giver 1))
    239239
     
    259259
    260260(defun make_ammo_icon (symbol icon_name increment)
    261   (eval (list 'def_char symbol       
     261  (eval (list 'def_char symbol
    262262              '(funs (ai_fun weapon_icon_ai)
    263263                     (get_cache_list_fun ammo_cache)
     
    282282
    283283
    284 (defun guner_cons () 
     284(defun guner_cons ()
    285285  (set_xvel 7)     ;; fire speed
    286286  (set_yvel 50)    ;; speed of bullet
     
    303303            (progn
    304304              (play_sound BLOWN_UP 127 (x) (y))
    305               (add_object EXPLODE1 (- hitx (random 10)) (- hity (random 25)) 0)     
    306               (add_object EXPLODE1 (+ hitx (random 10)) (+ hity (random 25)) 1)     
    307               (add_object EXPLODE1 (- hitx (random 10)) (- hity (random 10)) 2)     
     305              (add_object EXPLODE1 (- hitx (random 10)) (- hity (random 25)) 0)
     306              (add_object EXPLODE1 (+ hitx (random 10)) (+ hity (random 25)) 1)
     307              (add_object EXPLODE1 (- hitx (random 10)) (- hity (random 10)) 2)
    308308              (add_object EXPLODE1 (+ hitx (random 10)) (+ hity (random 10)) 3) ))))
    309309)
     
    313313
    314314
    315                
     315
    316316(defun shot_ai () (eq (bmove nil) T))
    317317(defun gun_ai ()
     
    330330                                   (progn
    331331                                     (with_object (add_object VIS_SHOT
    332                                                               (+ (x) (* (cos a) 10)) 
     332                                                              (+ (x) (* (cos a) 10))
    333333                                                              (- (y) (+ 10 (* (sin a) 10))))
    334334                                                  (progn
     
    346346
    347347
    348 (defun rocket_ai () 
     348(defun rocket_ai ()
    349349  (if (not (frame_panic))
    350350      (let ((rand (rand_on)))
    351         (with_object (add_object SMALL_LIGHT_CLOUD (+ (x) (random 3)) 
     351        (with_object (add_object SMALL_LIGHT_CLOUD (+ (x) (random 3))
    352352                                 (- (y) (random 3) (/ (picture_height) 2)))
    353353                     (set_fade_count 11))
     
    360360                            (- (aistate) angle)
    361361                          (+ (aistate) (- 360 angle)))))
    362         (let ((closest_dist (if (> clock_dist 180) 
     362        (let ((closest_dist (if (> clock_dist 180)
    363363                                (- 360 clock_dist)
    364364                              clock_dist)))
     
    377377  (set_frame_angle 0 359 (aistate))
    378378  (if (or (eq (hp) 0)
    379           (not (eq (bmove (if (> (total_objects) 0) (get_object 0) nil)) T)) 
    380           (and (> (total_objects) 1) 
     379          (not (eq (bmove (if (> (total_objects) 0) (get_object 0) nil)) T))
     380          (and (> (total_objects) 1)
    381381               (< (abs (- (with_object (get_object 1) (x)) (x) )) 10)
    382382               (< (abs (- (- (with_object (get_object 1) (y)) (y)) 15 )) 10)))
     
    385385        nil)
    386386  T))
    387          
    388 
    389 (defun rocket_ufun (creator) 
     387
     388
     389(defun rocket_ufun (creator)
    390390  (link_object creator)
    391391  (play_sound ROCKET_SND 127 (x) (y))
    392392
    393   (let ((target (with_object creator (find_object_in_area 
     393  (let ((target (with_object creator (find_object_in_area
    394394                                      (- (x) 160) (- (y) 160)
    395395                                      (+ (x) 160) (+ (y) 160) bad_guy_list))))
     
    406406(def_char ROCKET
    407407  (funs (ai_fun   rocket_ai)
    408         (get_cache_list_fun rocket_cache)       
     408        (get_cache_list_fun rocket_cache)
    409409        (get_cache_list_fun grenade_cache)
    410410        (user_fun rocket_ufun))
     
    423423  (setq sgb_lasty (y))
    424424  (setq sgb_speed (/ (* sgb_speed 6) 5))
    425   (set_course sgb_angle sgb_speed) 
     425  (set_course sgb_angle sgb_speed)
    426426  (if (eq sgb_lifetime 0)
    427427      nil
     
    452452
    453453
    454 (defun sgun_ufun (creator) 
     454(defun sgun_ufun (creator)
    455455  (set_direction (with_object creator (direction)))
    456456  (set_y (- (y) 4))
     
    466466               (< (abs (- (y) (with_object target (y)))) 100))
    467467          (setq sgb_angle (site_angle target))
    468         (if (> (direction) 0)       
     468        (if (> (direction) 0)
    469469            (setq sgb_angle 0)
    470470          (setq sgb_angle 180)))))
     
    474474
    475475(def_char SHOTGUN_BULLET
    476   (vars sgb_speed sgb_angle sgb_lastx sgb_lasty 
     476  (vars sgb_speed sgb_angle sgb_lastx sgb_lasty
    477477        sgb_bright_color sgb_medium_color sgb_lifetime)
    478478  (funs (ai_fun   sgun_ai)
Note: See TracChangeset for help on using the changeset viewer.