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-frabs/addon
Files:
40 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/data-frabs/addon/aliens/alichars.lsp

    r566 r582  
    4545
    4646(defun alien_wait_time ()
    47   (select difficulty 
     47  (select difficulty
    4848          ('easy    6)
    4949          ('medium  4)
     
    5959        nil
    6060      T)))
    61      
    62      
     61
     62
    6363(defun roof_above () (not (can_see (x) (y) (x) (- (y) 120) nil)))
    6464
    6565(defun ali_dodge ()
    6666  (if (eq need_to_dodge 1)
    67       (progn 
     67      (progn
    6868        (setq need_to_dodge 0)
    6969        (if (eq (random 2) 1)
     
    113113                           (and (< (distx) 130) (< (y) (with_object (bg) (y))))
    114114                         (not (eq (with_object (get_object 0) (aistate)) 0)))
    115                        (progn 
     115                       (progn
    116116                         (set_state fall_start)                  (set_direction (toward))
    117117                         (set_aistate 1))))
     
    128128                  (9 ;; landing / turn around (general finish animation state)
    129129                   (if (next_picture) T
    130                      (if (try_move 0 2) 
     130                     (if (try_move 0 2)
    131131                         (progn
    132132                           (set_gravity 1)
    133133                           (set_aistate 1))
    134                        (progn (set_state stopped)                         
     134                       (progn (set_state stopped)
    135135                              (go_state 2)))))  ;; running
    136136
     
    159159                             (set_state turn_around)
    160160                             (set_aistate 9)))))
    161              
     161
    162162                  (4 ;; wait for pounce
    163163                   (if (ali_dodge) T
     
    171171                             (go_state 6))))))
    172172
    173                   (6 ;; jump             
     173                  (6 ;; jump
    174174                   (setq need_to_dodge 0)
    175175                   (if (blocked_down (move (direction) -1 0))
     
    192192            (damage_fun amount from hitx hity push_xvel push_yvel)
    193193            (play_sound ALPAIN_SND 127 (x) (y))
    194             (setq need_to_dodge 1)         
     194            (setq need_to_dodge 1)
    195195            (if (<= (hp) 0)
    196196                (progn
     
    238238             (push_xrange     1)
    239239             (jump_top_speed 15))
    240  
     240
    241241  (flags (hurtable  T)
    242242         (force_health T))
    243243
    244244  (states "addon/aliens/aliens.spe"
    245           (stopped              "fhwk0001.pcx") 
     245          (stopped              "fhwk0001.pcx")
    246246          (fall_start   "fhattack.pcx")
    247247          (falling              "fhattack.pcx")
     
    266266              (with_object (get_object 0) (not (eq (aistate) 0))))
    267267              (set_aistate 1))
    268         (select (current_frame) 
     268        (select (current_frame)
    269269            (12 (set_current_frame 13)
    270270                (with_object (add_object_after FACE_HUGGER (+ (x) (* (toward) 20)) (y))
     
    290290        )))
    291291  T)
    292            
     292
    293293
    294294(def_char FACE_HUGGER_EGG
     
    318318         (stopped "eggunh.pcx")))
    319319
    320 (defun fh_d_egg_ai () 
     320(defun fh_d_egg_ai ()
    321321        (progn
    322322        (try_move 0 10)
     
    328328         (stopped "afhj0001.pcx")))
    329329
    330 (defun d_fh_jar_ai () 
     330(defun d_fh_jar_ai ()
    331331        (progn
    332332        (lower)))
     
    334334(def_char FACE_HUGGER_JAR_ALIVE
    335335   (funs (ai_fun a_fh_jar_ai)
    336         (damage_fun             jar_damage)) 
     336        (damage_fun             jar_damage))
    337337   (flags (hurtable  T))
    338338   (states "addon/aliens/aliens.spe"
     
    348348                )))
    349349
    350 (defun a_fh_jar_ai () 
     350(defun a_fh_jar_ai ()
    351351  (if (eq (aistate) 0)
    352352        (progn
     
    376376(defun ad_dodge ()
    377377  (if (eq need_to_dodge 1)
    378       (progn 
     378      (progn
    379379        (setq need_to_dodge 0)
    380380        (if (eq (random 2) 1)
     
    383383              (go_state 6))         ;; jump at player
    384384          (if (roof_above)
    385               (progn                   
    386                 (set_yvel -17)  ;; jump up 
     385              (progn
     386                (set_yvel -17)  ;; jump up
    387387                (set_xvel 0)
    388388                (go_state 12))
     
    406406        (playerx (+ (with_object (bg) (x)) (with_object (bg) (* (xvel) 8))))
    407407        (playery (+ (- (with_object (bg) (y)) 15) (with_object (bg) (* (yvel) 2)))))
    408    
     408
    409409    (if (and (can_see (x) (y) firex firey nil) (can_see firex firey playerx playery nil))
    410410        (progn
     
    428428                                        (setq sgb_bright_color (find_rgb 255 255 200))
    429429                                        (setq sgb_medium_color (find_rgb 150 150 0))
    430                                         (if creator 
     430                                        (if creator
    431431                                            (progn
    432432                                              (setq sgb_speed (+ sgb_speed (/ (xvel) 2)))
     
    442442                                        (setq sgb_lasty (y))
    443443                                        (setq sgb_angle angle)
    444                                        
     444
    445445                                        (setq sgb_bright_color (find_rgb 255 128 64))
    446446                                        (setq sgb_medium_color (find_rgb 255 0 0))
    447                                         (if creator 
     447                                        (if creator
    448448                                            (progn
    449449                                              (setq sgb_speed (+ sgb_speed (/ (xvel) 2)))
     
    455455                            (play_sound GRENADE_THROW 127 x y)
    456456                            (set_course angle 20)
    457                             (if creator 
     457                            (if creator
    458458                                (progn
    459459                                  (link_object creator)
     
    461461                                  (set_yvel (+ (yvel) (with_object creator (yvel))))
    462462                                  ))
    463                            
     463
    464464                            (set_frame_angle 0 359 angle)
    465465                            )))
     
    471471
    472472                            (if (and target   ;; don't link if not in line of site
    473                                      (can_see (x) (y) 
     473                                     (can_see (x) (y)
    474474                                              (with_object target (x))
    475475                                              (with_object target (y)) nil))
     
    489489                                        (setq sgb_lastx (x))
    490490                                        (setq sgb_lasty (y))
    491                                         (if creator 
     491                                        (if creator
    492492                                              (link_object creator))
    493493                                        (set_course angle 200)
     
    497497                                          (if (not (eq bx T))
    498498                                              (if (eq bx nil)
    499                                                   (add_object EXPLODE5 (- (x) (random 5)) 
     499                                                  (add_object EXPLODE5 (- (x) (random 5))
    500500                                                              (- (y) (random 5)) 0)
    501501                                                (progn
    502                                                   (add_object EXPLODE3 (- (x) (random 5)) 
     502                                                  (add_object EXPLODE3 (- (x) (random 5))
    503503                                                              (- (y) (random 5)) 0)
    504                                                   (do_damage 10 bx (* (cos sgb_angle) 20) 
     504                                                  (do_damage 10 bx (* (cos sgb_angle) 20)
    505505                                                             (* (sin sgb_angle) 10)))))
    506506                                          (setq sgb_lastx (x))
     
    515515                            (play_sound FIREBOMB_SND 127 (x) (y))
    516516                            (set_course angle 20)
    517                             (if creator 
     517                            (if creator
    518518                                (progn
    519519                                  (link_object creator)
     
    526526                                        (set_course angle 25)
    527527                                        (set_aistate angle)
    528                                         (if creator 
     528                                        (if creator
    529529                                              (link_object creator))
    530530                                        (dfris_ai)
     
    536536                                        (setq sgb_lastx (x))
    537537                                        (setq sgb_lasty (y))
    538                                         (if creator 
     538                                        (if creator
    539539                                              (link_object creator))
    540540                                        (set_course angle 45)
     
    542542                                          (if (not (eq bx T))
    543543                                              (if (not (eq bx nil))
    544                                                   (do_damage 30 bx (* (cos sgb_angle) 20) 
     544                                                  (do_damage 30 bx (* (cos sgb_angle) 20)
    545545                                                             (* (sin sgb_angle) 10)))))
    546546                                        )))
    547                            
     547
    548548
    549549          (9 (with_object (add_object STRAIT_ROCKET x y)
    550550                                      (progn
    551551                                        (play_sound MGUN_SND 127 (x) (y))
    552                                         (if creator 
     552                                        (if creator
    553553                                              (link_object creator))
    554554                                        (set_aistate angle)
     
    566566                                        (setq sgb_bright_color (find_rgb 255 0 0))
    567567                                        (setq sgb_medium_color (find_rgb 150 0 0))
    568                                         (if creator 
     568                                        (if creator
    569569                                            (progn
    570570                                              (setq sgb_speed (+ sgb_speed (/ (xvel) 2)))
     
    583583                                        (setq sgb_bright_color (find_rgb 170 210 50))
    584584                                        (setq sgb_medium_color (find_rgb 120 180 70))
    585                                         (if creator 
     585                                        (if creator
    586586                                            (progn
    587587                                              (setq sgb_speed (+ sgb_speed (/ (xvel) 2)))
     
    611611                           (and (< (distx) 130) (< (y) (with_object (bg) (y))))
    612612                         (not (eq (with_object (get_object 0) (aistate)) 0)))
    613                        (progn 
     613                       (progn
    614614                         (set_state fall_start)                  (set_direction (toward))
    615615                         (set_aistate 1))))
     
    626626                  (9 ;; landing / turn around (general finish animation state)
    627627                   (if (next_picture) T
    628                      (if (try_move 0 2) 
     628                     (if (try_move 0 2)
    629629                         (progn
    630630                           (set_gravity 1)
    631631                           (set_aistate 1))
    632                        (progn (set_state stopped)                         
     632                       (progn (set_state stopped)
    633633                              (go_state 2)))))  ;; running
    634634
     
    661661                             (set_state turn_around)
    662662                             (set_aistate 9)))))
    663              
     663
    664664                  (4 ;; wait for pounce
    665665                   (if (ad_dodge) T
     
    673673                             (go_state 6))))))
    674674
    675                   (6 ;; jump             
     675                  (6 ;; jump
    676676                   (setq need_to_dodge 0)
    677677                   (if (blocked_down (move (direction) -1 0))
     
    680680
    681681                  (8 ;; fire at player
    682                    (if (ad_dodge) T                 
     682                   (if (ad_dodge) T
    683683                     (if (eq (state) fire_wait)
    684684                         (if (next_picture)
     
    711711                  (13 ;; roof walking
    712712                   (alscream_check)
    713                    (if (or (and (< (y) (with_object (bg) (y))) 
    714                                 (< (distx) 10) (eq (random 8) 0)) 
     713                   (if (or (and (< (y) (with_object (bg) (y)))
     714                                (< (distx) 10) (eq (random 8) 0))
    715715                           (eq need_to_dodge 1))  ;; shooting at us, fall down
    716716                       (progn
     
    728728                                         (- 0 (get_ability run_top_speed)))))
    729729                           (if (and (can_see (x) (- (y) 21) (+ (x) xspeed) (- (y) 21) nil)
    730                                     (not (can_see (+ (x) xspeed) (- (y) 21) 
     730                                    (not (can_see (+ (x) xspeed) (- (y) 21)
    731731                                                  (+ (x) xspeed) (- (y) 22) nil)))
    732732                               (progn
    733733                                 (set_x (+ (x) xspeed))
    734                                  (if (not (next_picture)) 
     734                                 (if (not (next_picture))
    735735                                     (set_state top_walk)))
    736736                             (set_aistate 1)))))))
    737        
     737
    738738                  (14 ;; cieling shoot
    739739                   (if (next_picture)
     
    778778             (push_xrange     2)
    779779             (jump_top_speed 16))
    780  
     780
    781781  (flags (hurtable  T)
    782782         (force_health T))
     
    833833                           (and (< (distx) 130) (< (y) (with_object (bg) (y))))
    834834                         (not (eq (with_object (get_object 0) (aistate)) 0)))
    835                        (progn 
     835                       (progn
    836836                         (set_state fall_start)                  (set_direction (toward))
    837837                         (set_aistate 1))))
     
    848848                  (9 ;; landing / turn around (general finish animation state)
    849849                   (if (next_picture) T
    850                      (if (try_move 0 2) 
     850                     (if (try_move 0 2)
    851851                         (progn
    852852                           (set_gravity 1)
    853853                           (set_aistate 1))
    854                        (progn (set_state stopped)                         
     854                       (progn (set_state stopped)
    855855                              (go_state 2)))))  ;; running
    856856
     
    883883                             (set_state turn_around)
    884884                             (set_aistate 9)))))
    885              
     885
    886886                  (4 ;; wait for pounce
    887887                   (if (ali_dodge) T
     
    895895                             (go_state 6))))))
    896896
    897                   (6 ;; jump             
     897                  (6 ;; jump
    898898                   (setq need_to_dodge 0)
    899899                   (if (blocked_down (move (direction) -1 0))
     
    902902
    903903                  (8 ;; fire at player
    904                    (if (ad_dodge) T                 
     904                   (if (ad_dodge) T
    905905                     (if (eq (state) fire_wait)
    906906                         (if (next_picture)
     
    946946             (push_xrange     2)
    947947             (jump_top_speed 12))
    948  
     948
    949949  (flags (hurtable  T)
    950950         (force_health T))
  • abuse/trunk/data-frabs/addon/aliens/powerold.lsp

    r566 r582  
    55;; New Power Up objects
    66
    7 (defun shlmp_ai () 
     7(defun shlmp_ai ()
    88  (try_move 0 10)
    99  (next_picture)
     
    4747         (constructor   slamp_cons)
    4848         (draw_fun              dev_draw))
    49   (states "art/misc.spe"         
     49  (states "art/misc.spe"
    5050          (stopped           "lhold")))
    5151
     
    113113              (setq b_ramp (+ b_ramp 7))
    114114            (setq b_ramp 0)))
    115         (if (local_player)     
     115        (if (local_player)
    116116            (tint_palette r_ramp g_ramp b_ramp))))
    117117
     
    138138                (progn
    139139                (setq min2 (+ min2 1))
    140                 (setq min1 0))) 
     140                (setq min1 0)))
    141141        (if (eq min2 10)
    142142                (setq min2 0))
     
    150150                                (if (local_player)
    151151                                    (put_image (- (view_x2) 20) (+ (view_y1) 5) fly_image)))
    152                    (SNEAKY_POWER 
     152                   (SNEAKY_POWER
    153153                    (if (local_player)
    154154                        (put_image (- (view_x2) 20) (+ (view_y1) 5) sneaky_image))
  • abuse/trunk/data-frabs/addon/aliens/powerups.lsp

    r566 r582  
    55;; New Power Up objects
    66
    7 (defun shlmp_ai () 
     7(defun shlmp_ai ()
    88  (try_move 0 10)
    99  (next_picture)
     
    4747         (constructor   slamp_cons)
    4848         (draw_fun              dev_draw))
    49   (states "art/misc.spe"         
     49  (states "art/misc.spe"
    5050          (stopped           "lhold")))
    5151
  • abuse/trunk/data-frabs/addon/claudio/claudio.lsp

    r566 r582  
    5656               (push_char 35 40)
    5757               (select (aistate)
    58  
     58
    5959                    (0 ;; prepare to walk toward player
    6060                       (if (eq stationary 0)
     
    7979                         (curx (x));; save position in case we fall off a cliff
    8080                               (cury (y))
    81                         )                   
    82                        (if (next_picture) 
     81                        )
     82                       (if (next_picture)
    8383                            (if (eq (current_frame) 8)
    8484                                  (play_sound DROIDMOV_SND 127 (x) (y))
     
    115115                              (yspeed throw_yvel)
    116116                         )
    117                          (with_object 
    118                         (add_object GRENADE (+ (x) (* (direction) 16)) (- (y) 24) 1) 
     117                         (with_object
     118                        (add_object GRENADE (+ (x) (* (direction) 16)) (- (y) 24) 1)
    119119                                (progn
    120120                                (user_fun myself)
     
    139139);; end * if
    140140);; end droidjug_ai ()
    141            
     141
    142142(defun jug_cons ()
    143143  (setq throw_xvel 13)
     
    165165          ("aistate"       ai_state))
    166166
    167   (states "addon/claudio/droid.spe" 
     167  (states "addon/claudio/droid.spe"
    168168          (stopped "ds0002.pcx")
    169169          (running (seq "d" 1 4))
     
    183183        (setq fire_time (- fire_time 1))
    184184        (if (eq fire_time 0)
    185             (progn 
     185            (progn
    186186              (setq burst_left burst_total)
    187187              (setq burst_wait 0))))
     
    195195      (setq burst_wait (- burst_wait 1)))))
    196196
    197 (defun wrob_cons ()       
     197(defun wrob_cons ()
    198198  (setq fire_delay 4)
    199199  (setq burst_delay 1)
     
    213213       )
    214214
    215        (if (activated)         ;; ** 
     215       (if (activated)         ;; **
    216216          (progn                  ;;***
    217217               (set_targetable T)
     
    233233                  )
    234234                 );; end aistate 0
    235  
     235
    236236                  (1;; stop and fire
    237                      (burst_fire  (+ (x) (* (direction) 16)) (- (y) 22)               
     237                     (burst_fire  (+ (x) (* (direction) 16)) (- (y) 22)
    238238                            (if (> (direction) 0)
    239239                                (mod (- 375 (/ (* burst_left 30) burst_total)) 360)
     
    248248
    249249               (if (<= (hp) 0)                        ;; are we dead, if so blow up
    250                    (progn       
    251                         (add_object EXPLODE6 (+ (x) 5) (- (y) 10)     0) 
     250                   (progn
     251                        (add_object EXPLODE6 (+ (x) 5) (- (y) 10)     0)
    252252                        (add_object EXPLODE6 (+ (x) -5) (- (y) 15)    2)  ;; wait 2 frames before appearing
    253253                        (add_object EXPLODE6 (+ (x) 10) (- (y) 2)     1)
     
    260260                  )
    261261             )
    262                
     262
    263263      T);; end of *** progn
    264264    T);; end of ** if activated
    265265  );; end of * if
    266 );; end of ai 
    267    
     266);; end of ai
     267
    268268(def_char DROID
    269269
    270270  (funs (ai_fun droid_ai)
    271271          (constructor wrob_cons)
    272           (get_cache_list_fun explo_damage_cache)       
     272          (get_cache_list_fun explo_damage_cache)
    273273        (damage_fun explo_damage)
    274274  );; end funs
     
    278278  );; end abilities
    279279
    280   (flags (hurtable T) 
     280  (flags (hurtable T)
    281281         (can_block T)
    282282         (unactive_shield T)
     
    285285  (range 300 100)
    286286
    287   (vars fire_delay 
    288         burst_delay 
    289         burst_total 
    290         burst_wait 
    291         burst_left 
    292           max_xvel   
    293         max_yvel   
    294         smoke_time 
     287  (vars fire_delay
     288        burst_delay
     289        burst_total
     290        burst_wait
     291        burst_left
     292          max_xvel
     293        max_yvel
     294        smoke_time
    295295        fire_time
    296296  );; end vars
     
    306306  );; end fields
    307307
    308   (states "addon/claudio/droid.spe" 
     308  (states "addon/claudio/droid.spe"
    309309          (stopped "ds0001.pcx")
    310310          (running (seq "d" 1 10))
     
    335335       )
    336336
    337        (if (activated)         ;; ** 
     337       (if (activated)         ;; **
    338338          (progn                  ;;***
    339339               (set_targetable T)
     
    342342             (select (aistate)
    343343                  (0;; walk toward player
    344                      (if  (or (< (disty) -5) (> (disty) 5) (< (distx) -10) (> (distx) 10) (not (eq (direction) (toward))) )   
     344                     (if  (or (< (disty) -5) (> (disty) 5) (< (distx) -10) (> (distx) 10) (not (eq (direction) (toward))) )
    345345                       (progn
    346346                          (if (eq (mod (state_time) 6) 0) ;; play sound every 6 ticks
     
    358358                     )
    359359                 );; end aistate 0
    360  
     360
    361361                  (1;; stop and eat
    362                     (if  (or (< (disty) -5) (> (disty) 5) (< (distx) -10) (> (distx) 10) (not (eq (direction) (toward))) )   
     362                    (if  (or (< (disty) -5) (> (disty) 5) (< (distx) -10) (> (distx) 10) (not (eq (direction) (toward))) )
    363363                       (set_aistate 0)
    364364                       (progn
     
    370370                      )
    371371                    (with_object (bg)
    372                       (if (< (hp)0)   
     372                      (if (< (hp)0)
    373373                            (set_state stopped)
    374374                      )
    375375                     )
    376376                );; end aistate 1
    377              );; end select               
     377             );; end select
    378378      T);; end of *** progn
    379379    T);; end of ** if activated
    380380  );; end of * if
    381 );; end of ai     
     381);; end of ai
    382382
    383383(def_char T_REX
     
    385385  (funs (ai_fun trex_ai)
    386386        ;;  (constructor wrob_cons)
    387         ;;  (get_cache_list_fun explo_damage_cache)     
     387        ;;  (get_cache_list_fun explo_damage_cache)
    388388      ;;  (damage_fun explo_damage)
    389389  );; end funs
     
    393393  );; end abilities
    394394
    395   (flags (hurtable T) 
     395  (flags (hurtable T)
    396396         (can_block T)
    397397         (unactive_shield T)
     
    400400  (range 300 100)
    401401
    402   (vars fire_delay 
    403         burst_delay 
    404         burst_total 
    405         burst_wait 
    406         burst_left 
    407           max_xvel   
    408         max_yvel   
    409         smoke_time 
     402  (vars fire_delay
     403        burst_delay
     404        burst_total
     405        burst_wait
     406        burst_left
     407          max_xvel
     408        max_yvel
     409        smoke_time
    410410        fire_time
    411411  );; end vars
    412412
    413   (fields 
     413  (fields
    414414          ("hp"           ai_health)
    415415          ("aistate"      ai_state)
    416416  );; end fields
    417417
    418   (states "addon/claudio/trex1.spe" 
     418  (states "addon/claudio/trex1.spe"
    419419          (stopped "stand")
    420420          (running (seq "w" 1 10))
     
    444444(defun wrob_ai ()
    445445  (if (<= (hp) 0) ;; *
    446      
     446
    447447       nil   ;; inactivate this "nil" and activate the following if-section when using versions 2 and 3
    448448
     
    452452    ;; )
    453453
    454        (if (activated)         ;; ** 
     454       (if (activated)         ;; **
    455455          (progn                  ;;***
    456456               (set_targetable T)
     
    472472                  )
    473473                 );; end aistate 0
    474  
     474
    475475                  (1;; stop and fire
    476                      (burst_fire  (+ (x) (* (direction) 16)) (- (y) 22)               
     476                     (burst_fire  (+ (x) (* (direction) 16)) (- (y) 22)
    477477                            (if (> (direction) 0)
    478478                                (mod (- 375 (/ (* burst_left 30) burst_total)) 360)
     
    491491
    492492               (if (<= (hp) 0)                        ;; are we dead, if so blow up
    493                    (progn       
    494                         (add_object EXPLODE6 (+ (x) 5) (- (y) 10)     0) 
     493                   (progn
     494                        (add_object EXPLODE6 (+ (x) 5) (- (y) 10)     0)
    495495                        (add_object EXPLODE6 (+ (x) -5) (- (y) 15)    2)  ;; wait 2 frames before appearing
    496496                        (add_object EXPLODE6 (+ (x) 10) (- (y) 2)     1)
     
    503503                  )
    504504             )
    505                
     505
    506506      T);; end of *** progn
    507507    T);; end of ** if activated
    508508  );; end of * if
    509 );; end of ai 
     509);; end of ai
    510510
    511511(def_char WALK_ROB
     
    513513  (funs (ai_fun wrob_ai)
    514514          (constructor wrob_cons)
    515           (get_cache_list_fun explo_damage_cache)       
     515          (get_cache_list_fun explo_damage_cache)
    516516        (damage_fun explo_damage)
    517517  );; end funs
    518518
    519519  (abilities (run_top_speed 6)
    520              (start_hp 70) 
     520             (start_hp 70)
    521521  );; end abilities
    522522
    523   (flags (hurtable T) 
     523  (flags (hurtable T)
    524524         (can_block T)
    525525         (unactive_shield T)
     
    528528  (range 300 100)
    529529
    530   (vars fire_delay 
    531         burst_delay 
    532         burst_total 
    533         burst_wait 
    534         burst_left 
    535           max_xvel   
    536         max_yvel   
    537         smoke_time 
     530  (vars fire_delay
     531        burst_delay
     532        burst_total
     533        burst_wait
     534        burst_left
     535          max_xvel
     536        max_yvel
     537        smoke_time
    538538        fire_time
    539539   );; end vars
     
    550550  );; end fields
    551551
    552   (states "addon/claudio/rob2.spe" 
     552  (states "addon/claudio/rob2.spe"
    553553          (stopped "wwlk0001.pcx")
    554554          (running (seq "wwlk" 1 10))
     
    561561  );; end states
    562562
    563 );; end def_char WALK_ROB             
     563);; end def_char WALK_ROB
    564564
    565565;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
     
    574574    (with_object (get_object 0)
    575575                 (if (eq (otype) SPACE_DOOR)
    576                      (if (eq is_opening 0)                       
     576                     (if (eq is_opening 0)
    577577                         (if (and (< (distx) 50) (< (disty) 40))
    578578                             T
     
    599599          (play_sound SWISH 70 (x) (y)))
    600600      (set_current_frame (- (current_frame) 1)))))
    601  
     601
    602602(defun tpdspace_ai ()     ;; teleporting door ai
    603603  (if (or (and (< (distx) 50) (< (disty) 40))
     
    615615                (othery (with_object (get_object 0) (y))))
    616616            (with_object (get_object 0) (link_object player))
    617             (with_object player (progn 
    618                                   (set_x otherx) 
     617            (with_object player (progn
     618                                  (set_x otherx)
    619619                                  (set_y othery)))))))
    620620T)
     
    679679      (do_damage 20 (bg)))
    680680  (select (aistate)
    681           (0 
     681          (0
    682682
    683683            (if (eq (random 100) 0)
     
    686686                   (set_aistate 1)))
    687687             (next_picture))
    688           (1 
     688          (1
    689689
    690690           (next_picture)
     
    735735
    736736(defun sewer_ai ()
    737  
     737
    738738  (select (aistate)
    739           (0 
     739          (0
    740740
    741741            (if (eq (random 100) 0)
     
    744744                   (set_aistate 1)))
    745745             (next_picture))
    746           (1 
     746          (1
    747747
    748748           (next_picture)
     
    759759      (do_damage 2 (bg)))
    760760  (select (aistate)
    761           (0 
     761          (0
    762762
    763763            (if (eq (random 100) 0)
     
    766766                   (set_aistate 1)))
    767767             (next_picture))
    768           (1 
     768          (1
    769769
    770770           (next_picture)
     
    777777(defun wfall_ai ()
    778778  (select (aistate)
    779           (0 
     779          (0
    780780
    781781            (if (eq (random 100) 0)
     
    784784                   (set_aistate 1)))
    785785             (next_picture))
    786           (1 
     786          (1
    787787
    788788           (next_picture)
     
    849849
    850850(def_char LAMP_EX1
    851                                
     851
    852852  (funs (ai_fun  exlamp_ai))
    853853  (flags (can_block T)
     
    859859
    860860
    861 (defun slamp_ai () 
     861(defun slamp_ai ()
    862862(if (activated)
    863863 (set_state running)
     
    869869(def_char LAMP_BIG
    870870  (funs (ai_fun   slamp_ai))
    871   (states "addon/claudio/lamp.spe" 
     871  (states "addon/claudio/lamp.spe"
    872872     (stopped "l0002.pcx")
    873873     (running "l0001.pcx")
     
    892892  (funs (ai_fun switcher_ai)
    893893        (reload_fun lower_reload))
    894   (range 0 0) 
     894  (range 0 0)
    895895  (states "addon/claudio/sswitch.spe"
    896896          (stopped '("ssw0001" "ssw0002"))
     
    913913
    914914(defun dumbrel_ai ()
    915  
    916   (if (not (eq smoke_time 0))                 
     915
     916  (if (not (eq smoke_time 0))
    917917      (progn
    918918        (setq smoke_time (- smoke_time 1))
     
    920920            (add_object SMALL_DARK_CLOUD (x) (y)))))
    921921
    922   (if (eq (aistate) 0)                       
     922  (if (eq (aistate) 0)
    923923      (if (or (eq (total_objects) 0) (not (eq (with_object (get_object 0) (aistate)) 0)))
    924924          (if (next_picture) T
     
    931931          (set_state stopped)
    932932          T))
    933     (if (eq (hp) 0)                         
     933    (if (eq (hp) 0)
    934934        (progn
    935935        (play_sound GRENADE_SND 127 (x) (y))
     
    938938          (add_object EXPLODE1 (x) (+ (- (y) (random 20)) -20)                     4)
    939939          nil)
    940       (progn     
    941         (if (eq (mod (state_time) 5) 0)     
     940      (progn
     941        (if (eq (mod (state_time) 5) 0)
    942942            (play_sound DRILL_SND 127 (x) (y)))
    943         (if (> (with_object (bg) (x)) (x))   
     943        (if (> (with_object (bg) (x)) (x))
    944944            (progn
    945945              (set_xvel (+ (xvel) 1))
     
    949949                    (set_direction 1)
    950950                    (set_state turn_around))))
    951           (if (< (with_object (bg) (x)) (x)) 
     951          (if (< (with_object (bg) (x)) (x))
    952952              (progn
    953953                (set_xvel (- (xvel) 1))
     
    967967                (set_yvel (- (yvel) 1)))))
    968968
    969         (if (eq (random 5) 0)               
     969        (if (eq (random 5) 0)
    970970            (set_xvel (+ (xvel) 1))
    971971          (if (eq (random 5) 0)
     
    976976              (set_yvel (- (yvel) 1))))
    977977
    978         (if (next_picture) T (set_state running)) 
    979            
     978        (if (next_picture) T (set_state running))
     979
    980980        (bounce_move '(set_xvel (/ (xvel) 2)) '(set_xvel (/ (xvel) 2))
    981981                     '(set_yvel (/ (yvel) 2)) '(set_yvel (/ (yvel) 2)) nil)
    982      
     982
    983983        (if (> fire_time 0)              ;; if we need to wait till next burst
    984984            (progn
    985985              (setq fire_time (- fire_time 1))
    986986              (if (eq fire_time 0)
    987                   (progn 
     987                  (progn
    988988                    (setq burst_left burst_total)
    989989                    (setq burst_wait 0))))
     
    10021002                              (setq burst_left (- burst_left 1)))
    10031003                            (setq burst_wait burst_delay)
    1004                             (fire_object (me) (aitype) firex firey angle (bg)) 
     1004                            (fire_object (me) (aitype) firex firey angle (bg))
    10051005                            )))))
    1006             (setq burst_wait (- burst_wait 1))))               
     1006            (setq burst_wait (- burst_wait 1))))
    10071007        T))))
    10081008
    10091009(defun dumbrel_damage (amount from hitx hity push_xvel push_yvel)
    1010   (if (and from (with_object from (and (> (total_objects) 0) 
    1011                                        (with_object (get_object 0) 
     1010  (if (and from (with_object from (and (> (total_objects) 0)
     1011                                       (with_object (get_object 0)
    10121012                                                    (or (eq (otype) FLYER)
    10131013                                                        (eq (otype) GREEN_FLYER))
     
    10371037))))
    10381038
    1039 (defun dumbrel_cons ()   
     1039(defun dumbrel_cons ()
    10401040  (setq fire_delay 20)
    10411041  (setq burst_delay 5)
     
    10491049  (funs (ai_fun dumbrel_ai)
    10501050          (constructor dumbrel_cons)
    1051           (get_cache_list_fun explo_damage_cache)       
     1051          (get_cache_list_fun explo_damage_cache)
    10521052        (damage_fun dumbrel_damage)
    10531053  );; end funs
    10541054
    1055   (abilities (start_hp 100) 
     1055  (abilities (start_hp 100)
    10561056  );; end abilities
    10571057
    1058   (flags (hurtable T) 
     1058  (flags (hurtable T)
    10591059         (can_block T)
    10601060         (unactive_shield T)
     
    10631063  (range 300 100)
    10641064
    1065   (vars fire_delay 
    1066         burst_delay 
    1067         burst_total 
    1068         burst_wait 
    1069         burst_left 
    1070           max_xvel   
    1071         max_yvel   
    1072         smoke_time 
     1065  (vars fire_delay
     1066        burst_delay
     1067        burst_total
     1068        burst_wait
     1069        burst_left
     1070          max_xvel
     1071        max_yvel
     1072        smoke_time
    10731073        fire_time
    10741074   );; end vars
    10751075
    1076   (states "addon/claudio/umbrel3.spe" 
     1076  (states "addon/claudio/umbrel3.spe"
    10771077          (stopped "u0001.pcx")
    10781078          (running (seq "u" 1 4))
     
    10801080  );; end states
    10811081
    1082 );; end def_char 
     1082);; end def_char
    10831083
    10841084
     
    10911091(defun antship_ai ()
    10921092
    1093   (if (not (eq smoke_time 0))                 
     1093  (if (not (eq smoke_time 0))
    10941094      (progn
    10951095          (setq smoke_time (- smoke_time 1))
     
    11151115          T)
    11161116      )
    1117    
     1117
    11181118      (if (<= (hp) 0)
    1119          
     1119
    11201120         (progn
    11211121
     
    11231123              (next_picture)
    11241124
    1125               (progn         
     1125              (progn
    11261126                (set_state dieing)
    11271127                (play_sound GRENADE_SND 127 (x) (y))
     
    11311131              )
    11321132
    1133           )       
     1133          )
    11341134        )
    1135         (progn     
     1135        (progn
    11361136            (if (eq (mod (state_time) 5) 0)
    11371137              (play_sound ASHIP_SND 127 (x) (y))
     
    11401140            (progn
    11411141              (set_xvel (+ (xvel) 1))
    1142               (if (> (xvel) max_xvel) 
     1142              (if (> (xvel) max_xvel)
    11431143               (set_xvel max_xvel)
    11441144            )
     
    11501150             )
    11511151           )
    1152              (if (< (with_object (bg) (x)) (x)) 
     1152             (if (< (with_object (bg) (x)) (x))
    11531153                (progn
    11541154                (set_xvel (- (xvel) 1))
    1155                 (if (< (xvel) (- 0 max_xvel)) 
     1155                (if (< (xvel) (- 0 max_xvel))
    11561156                   (set_xvel (- 0 max_xvel))
    11571157                  )
     
    11791179       )
    11801180
    1181         (if (eq (random 5) 0)               
     1181        (if (eq (random 5) 0)
    11821182            (set_xvel (+ (xvel) 1))
    11831183            (if (eq (random 5) 0)
     
    11881188              (set_yvel (- (yvel) 1))))
    11891189
    1190         (if (next_picture) T (set_state running)) 
    1191            
     1190        (if (next_picture) T (set_state running))
     1191
    11921192        (bounce_move '(set_xvel (/ (xvel) 8)) '(set_xvel (/ (xvel) 8))
    11931193                     '(set_yvel (/ (yvel) 8)) '(set_yvel (/ (yvel) 8)) nil)
    1194      
    1195         (if (> fire_time 0)             
     1194
     1195        (if (> fire_time 0)
    11961196            (progn
    11971197              (setq fire_time (- fire_time 1))
    11981198              (if (eq fire_time 0)
    1199                   (progn 
     1199                  (progn
    12001200                    (setq burst_left burst_total)
    12011201                    (setq burst_wait 0))))
     
    12141214                              (setq burst_left (- burst_left 1)))
    12151215                            (setq burst_wait burst_delay)
    1216                             (fire_object (me) (aitype) firex firey angle (bg)) 
     1216                            (fire_object (me) (aitype) firex firey angle (bg))
    12171217                            )))))
    1218             (setq burst_wait (- burst_wait 1))))               
     1218            (setq burst_wait (- burst_wait 1))))
    12191219        T)))
    12201220
     
    12221222
    12231223(defun antship_damage (amount from hitx hity push_xvel push_yvel)
    1224   (if (and from (with_object from (and (> (total_objects) 0) 
    1225                                        (with_object (get_object 0) 
     1224  (if (and from (with_object from (and (> (total_objects) 0)
     1225                                       (with_object (get_object 0)
    12261226                                                    (or (eq (otype) FLYER)
    12271227                                                        (eq (otype) GREEN_FLYER))
     
    12541254))))
    12551255
    1256 (defun antship_cons ()   
     1256(defun antship_cons ()
    12571257  (setq fire_delay 30)
    12581258  (setq burst_delay 8)
     
    12681268  (funs (ai_fun antship_ai)
    12691269          (constructor antship_cons)
    1270           (get_cache_list_fun explo_damage_cache)       
     1270          (get_cache_list_fun explo_damage_cache)
    12711271        (damage_fun antship_damage)
    12721272  );; end funs
    12731273
    1274   (abilities (start_hp 300) 
     1274  (abilities (start_hp 300)
    12751275  );; end abilities
    12761276
    1277   (flags (hurtable T) 
     1277  (flags (hurtable T)
    12781278         (can_block T)
    12791279         (unactive_shield T)
     
    12821282  (range 400 200)
    12831283
    1284   (vars fire_delay 
    1285         burst_delay 
    1286         burst_total 
    1287         burst_wait 
    1288         burst_left 
    1289           max_xvel   
    1290         max_yvel   
    1291         smoke_time 
     1284  (vars fire_delay
     1285        burst_delay
     1286        burst_total
     1287        burst_wait
     1288        burst_left
     1289          max_xvel
     1290        max_yvel
     1291        smoke_time
    12921292        fire_time
    12931293   );; end vars
    12941294
    1295   (states "addon/claudio/antship.spe" 
     1295  (states "addon/claudio/antship.spe"
    12961296          (stopped "s0001.pcx")
    12971297          (running (seq "s" 2 6))
     
    13001300  );; end states
    13011301
    1302 );; end def_char 
     1302);; end def_char
    13031303
    13041304
     
    13101310
    13111311(defun dskull_ai ()
    1312   (if (not (eq smoke_time 0))                 
     1312  (if (not (eq smoke_time 0))
    13131313      (progn
    13141314        (setq smoke_time (- smoke_time 1))
     
    13191319 )
    13201320
    1321   (if (eq (aistate) 0)                       
     1321  (if (eq (aistate) 0)
    13221322      (if (or (eq (total_objects) 0) (not (eq (with_object (get_object 0) (aistate)) 0)))
    13231323          (if (next_picture) T
     
    13301330          (set_state stopped)
    13311331          T))
    1332     (if (eq (hp) 0)                         
     1332    (if (eq (hp) 0)
    13331333        (progn
    13341334        (play_sound GRENADE_SND 127 (x) (y))
     
    13371337          (add_object EXPLODE1 (x) (+ (- (y) (random 20)) -20)                     4)
    13381338          nil)
    1339       (progn     
    1340         (if (eq (mod (state_time) 10) 0)     
     1339      (progn
     1340        (if (eq (mod (state_time) 10) 0)
    13411341            (play_sound SKULL_SND 127 (x) (y)))
    1342         (if (> (with_object (bg) (x)) (x))   
     1342        (if (> (with_object (bg) (x)) (x))
    13431343            (progn
    13441344              (set_xvel (+ (xvel) 1))
     
    13481348                    (set_direction 1)
    13491349                    (set_state turn_around))))
    1350           (if (< (with_object (bg) (x)) (x)) 
     1350          (if (< (with_object (bg) (x)) (x))
    13511351              (progn
    13521352                (set_xvel (- (xvel) 1))
     
    13661366                (set_yvel (- (yvel) 1)))))
    13671367
    1368         (if (eq (random 5) 0)               
     1368        (if (eq (random 5) 0)
    13691369            (set_xvel (+ (xvel) 1))
    13701370          (if (eq (random 5) 0)
     
    13751375              (set_yvel (- (yvel) 1))))
    13761376
    1377         (if (next_picture) T (set_state running)) 
    1378            
     1377        (if (next_picture) T (set_state running))
     1378
    13791379        (bounce_move '(set_xvel (/ (xvel) 2)) '(set_xvel (/ (xvel) 2))
    13801380                     '(set_yvel (/ (yvel) 2)) '(set_yvel (/ (yvel) 2)) nil)
    1381      
    1382         (if (> fire_time 0)             
     1381
     1382        (if (> fire_time 0)
    13831383            (progn
    13841384              (setq fire_time (- fire_time 1))
    13851385              (if (eq fire_time 0)
    1386                   (progn 
     1386                  (progn
    13871387                    (setq burst_left burst_total)
    13881388                    (setq burst_wait 0))))
     
    14011401                              (setq burst_left (- burst_left 1)))
    14021402                            (setq burst_wait burst_delay)
    1403                             (fire_object (me) (aitype) firex firey angle (bg)) 
     1403                            (fire_object (me) (aitype) firex firey angle (bg))
    14041404                            )))))
    1405             (setq burst_wait (- burst_wait 1))))               
     1405            (setq burst_wait (- burst_wait 1))))
    14061406        T))))
    14071407
    14081408
    14091409(defun dskull_damage (amount from hitx hity push_xvel push_yvel)
    1410   (if (and from (with_object from (and (> (total_objects) 0) 
    1411                                        (with_object (get_object 0) 
     1410  (if (and from (with_object from (and (> (total_objects) 0)
     1411                                       (with_object (get_object 0)
    14121412                                                    (or (eq (otype) FLYER)
    14131413                                                        (eq (otype) GREEN_FLYER))
     
    14291429))))
    14301430
    1431 (defun dskull_cons ()     
     1431(defun dskull_cons ()
    14321432  (setq fire_delay 20)
    14331433  (setq burst_delay 5)
     
    14411441  (funs (ai_fun dskull_ai)
    14421442          (constructor dskull_cons)
    1443           (get_cache_list_fun explo_damage_cache)       
     1443          (get_cache_list_fun explo_damage_cache)
    14441444        (damage_fun dskull_damage)
    14451445  );; end funs
    14461446
    1447   (abilities (start_hp 100) 
     1447  (abilities (start_hp 100)
    14481448  );; end abilities
    14491449
    1450   (flags (hurtable T) 
     1450  (flags (hurtable T)
    14511451         (can_block T)
    14521452         (unactive_shield T)
     
    14551455  (range 300 100)
    14561456
    1457   (vars fire_delay 
    1458         burst_delay 
    1459         burst_total 
    1460         burst_wait 
    1461         burst_left 
    1462           max_xvel   
    1463         max_yvel   
    1464         smoke_time 
     1457  (vars fire_delay
     1458        burst_delay
     1459        burst_total
     1460        burst_wait
     1461        burst_left
     1462          max_xvel
     1463        max_yvel
     1464        smoke_time
    14651465        fire_time
    14661466   );; end vars
    14671467
    1468   (states "addon/claudio/skull.spe" 
     1468  (states "addon/claudio/skull.spe"
    14691469          (stopped "s0001.pcx")
    1470           (running '("s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" 
    1471                    "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" 
    1472                    "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" 
     1470          (running '("s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx"
     1471                   "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx"
     1472                   "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx"
    14731473                   "s0024.pcx" "s0024.pcx" "s0024.pcx" "s0024.pcx" "s0024.pcx" "s0024.pcx" "s0024.pcx" "s0024.pcx"))
    14741474        (flinch_up  (seq "s" 2 18))
     
    14771477  );; end states
    14781478
    1479 );; end def_char 
     1479);; end def_char
    14801480
    14811481(def_explo 'EXPLODE0 "addon/claudio/bigexp.spe" "fire"           7)
     
    14901490(load_tiles
    14911491          "addon/claudio/pal81f.spe"    ;; space foretiles 1, numbered from 2200,  palette space1
    1492             "addon/claudio/pal82f.spe"    ;; space foretiles 2, numbered from 2250,  palette space2 
    1493             ;; "addon/claudio/pal83.spe" ;; space foretiles 3, numbered from 8300,  palette space3     
     1492            "addon/claudio/pal82f.spe"    ;; space foretiles 2, numbered from 2250,  palette space2
     1493            ;; "addon/claudio/pal83.spe" ;; space foretiles 3, numbered from 8300,  palette space3
    14941494            "addon/claudio/pal90.spe"    ;; stars backtiles 1, numbered from 475,
    14951495            "addon/claudio/pal2.spe"     ;; sewers backtiles,  numbered from 380,
    1496             "addon/claudio/pal21.spe"    ;; stars backtiles 2, numbered from 500, 
    1497             "addon/claudio/pal5.spe"     ;; corallo backtiles, numbered from 430, 
     1496            "addon/claudio/pal21.spe"    ;; stars backtiles 2, numbered from 500,
     1497            "addon/claudio/pal5.spe"     ;; corallo backtiles, numbered from 430,
    14981498            ;; "addon/claudio/extiles.spe"  ;; extra foretiles,   numbered from 10000, palette extra1
    14991499)
     
    15121512;; Contact these authors if you want to get more infor about their work.                 ;;
    15131513;; Otherwise, deactivate                                                                 ;;
    1514 ;; the following section as indicated below in order to use the characters               ;; 
     1514;; the following section as indicated below in order to use the characters               ;;
    15151515;; and tiles by Claudio Bolzoni only.                                                    ;;
    15161516;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  • abuse/trunk/data-frabs/addon/claudio/oldclaud.lsp

    r566 r582  
    5656               (push_char 35 40)
    5757               (select (aistate)
    58  
     58
    5959                    (0 ;; prepare to walk toward player
    6060                       (if (eq stationary 0)
     
    7979                         (curx (x));; save position in case we fall off a cliff
    8080                               (cury (y))
    81                         )                   
    82                        (if (next_picture) 
     81                        )
     82                       (if (next_picture)
    8383                            (if (eq (current_frame) 8)
    8484                                  (play_sound DROIDMOV_SND 127 (x) (y))
     
    115115                              (yspeed throw_yvel)
    116116                         )
    117                          (with_object 
    118                         (add_object GRENADE (+ (x) (* (direction) 16)) (- (y) 24) 1) 
     117                         (with_object
     118                        (add_object GRENADE (+ (x) (* (direction) 16)) (- (y) 24) 1)
    119119                                (progn
    120120                                (user_fun myself)
     
    139139);; end * if
    140140);; end droidjug_ai ()
    141            
     141
    142142(defun jug_cons ()
    143143  (setq throw_xvel 13)
     
    165165          ("aistate"       ai_state))
    166166
    167   (states "addon/claudio/droid.spe" 
     167  (states "addon/claudio/droid.spe"
    168168          (stopped "ds0002.pcx")
    169169          (running (seq "d" 1 4))
     
    183183        (setq fire_time (- fire_time 1))
    184184        (if (eq fire_time 0)
    185             (progn 
     185            (progn
    186186              (setq burst_left burst_total)
    187187              (setq burst_wait 0))))
     
    195195      (setq burst_wait (- burst_wait 1)))))
    196196
    197 (defun wrob_cons ()       
     197(defun wrob_cons ()
    198198  (setq fire_delay 4)
    199199  (setq burst_delay 1)
     
    213213       )
    214214
    215        (if (activated)         ;; ** 
     215       (if (activated)         ;; **
    216216          (progn                  ;;***
    217217               (set_targetable T)
     
    233233                  )
    234234                 );; end aistate 0
    235  
     235
    236236                  (1;; stop and fire
    237                      (burst_fire  (+ (x) (* (direction) 16)) (- (y) 22)               
     237                     (burst_fire  (+ (x) (* (direction) 16)) (- (y) 22)
    238238                            (if (> (direction) 0)
    239239                                (mod (- 375 (/ (* burst_left 30) burst_total)) 360)
     
    248248
    249249               (if (<= (hp) 0)                        ;; are we dead, if so blow up
    250                    (progn       
    251                         (add_object EXPLODE6 (+ (x) 5) (- (y) 10)     0) 
     250                   (progn
     251                        (add_object EXPLODE6 (+ (x) 5) (- (y) 10)     0)
    252252                        (add_object EXPLODE6 (+ (x) -5) (- (y) 15)    2)  ;; wait 2 frames before appearing
    253253                        (add_object EXPLODE6 (+ (x) 10) (- (y) 2)     1)
     
    260260                  )
    261261             )
    262                
     262
    263263      T);; end of *** progn
    264264    T);; end of ** if activated
    265265  );; end of * if
    266 );; end of ai 
    267    
     266);; end of ai
     267
    268268(def_char DROID
    269269
    270270  (funs (ai_fun droid_ai)
    271271          (constructor wrob_cons)
    272           (get_cache_list_fun explo_damage_cache)       
     272          (get_cache_list_fun explo_damage_cache)
    273273        (damage_fun explo_damage)
    274274  );; end funs
     
    278278  );; end abilities
    279279
    280   (flags (hurtable T) 
     280  (flags (hurtable T)
    281281         (can_block T)
    282282         (unactive_shield T)
     
    285285  (range 300 100)
    286286
    287   (vars fire_delay 
    288         burst_delay 
    289         burst_total 
    290         burst_wait 
    291         burst_left 
    292           max_xvel   
    293         max_yvel   
    294         smoke_time 
     287  (vars fire_delay
     288        burst_delay
     289        burst_total
     290        burst_wait
     291        burst_left
     292          max_xvel
     293        max_yvel
     294        smoke_time
    295295        fire_time
    296296  );; end vars
     
    306306  );; end fields
    307307
    308   (states "addon/claudio/droid.spe" 
     308  (states "addon/claudio/droid.spe"
    309309          (stopped "ds0001.pcx")
    310310          (running (seq "d" 1 10))
     
    335335       )
    336336
    337        (if (activated)         ;; ** 
     337       (if (activated)         ;; **
    338338          (progn                  ;;***
    339339               (set_targetable T)
     
    342342             (select (aistate)
    343343                  (0;; walk toward player
    344                      (if  (or (< (disty) -5) (> (disty) 5) (< (distx) -10) (> (distx) 10) (not (eq (direction) (toward))) )   
     344                     (if  (or (< (disty) -5) (> (disty) 5) (< (distx) -10) (> (distx) 10) (not (eq (direction) (toward))) )
    345345                       (progn
    346346                          (if (eq (mod (state_time) 6) 0) ;; play sound every 6 ticks
     
    358358                     )
    359359                 );; end aistate 0
    360  
     360
    361361                  (1;; stop and eat
    362                     (if  (or (< (disty) -5) (> (disty) 5) (< (distx) -10) (> (distx) 10) (not (eq (direction) (toward))) )   
     362                    (if  (or (< (disty) -5) (> (disty) 5) (< (distx) -10) (> (distx) 10) (not (eq (direction) (toward))) )
    363363                       (set_aistate 0)
    364364                       (progn
     
    370370                      )
    371371                    (with_object (bg)
    372                       (if (< (hp)0)   
     372                      (if (< (hp)0)
    373373                            (set_state stopped)
    374374                      )
    375375                     )
    376376                );; end aistate 1
    377              );; end select               
     377             );; end select
    378378      T);; end of *** progn
    379379    T);; end of ** if activated
    380380  );; end of * if
    381 );; end of ai     
     381);; end of ai
    382382
    383383(def_char T_REX
     
    385385  (funs (ai_fun trex_ai)
    386386        ;;  (constructor wrob_cons)
    387         ;;  (get_cache_list_fun explo_damage_cache)     
     387        ;;  (get_cache_list_fun explo_damage_cache)
    388388      ;;  (damage_fun explo_damage)
    389389  );; end funs
     
    393393  );; end abilities
    394394
    395   (flags (hurtable T) 
     395  (flags (hurtable T)
    396396         (can_block T)
    397397         (unactive_shield T)
     
    400400  (range 300 100)
    401401
    402   (vars fire_delay 
    403         burst_delay 
    404         burst_total 
    405         burst_wait 
    406         burst_left 
    407           max_xvel   
    408         max_yvel   
    409         smoke_time 
     402  (vars fire_delay
     403        burst_delay
     404        burst_total
     405        burst_wait
     406        burst_left
     407          max_xvel
     408        max_yvel
     409        smoke_time
    410410        fire_time
    411411  );; end vars
    412412
    413   (fields 
     413  (fields
    414414          ("hp"           ai_health)
    415415          ("aistate"      ai_state)
    416416  );; end fields
    417417
    418   (states "addon/claudio/trex1.spe" 
     418  (states "addon/claudio/trex1.spe"
    419419          (stopped "stand")
    420420          (running (seq "w" 1 10))
     
    444444(defun wrob_ai ()
    445445  (if (<= (hp) 0) ;; *
    446      
     446
    447447       nil   ;; inactivate this "nil" and activate the following if-section when using versions 2 and 3
    448448
     
    452452    ;; )
    453453
    454        (if (activated)         ;; ** 
     454       (if (activated)         ;; **
    455455          (progn                  ;;***
    456456               (set_targetable T)
     
    472472                  )
    473473                 );; end aistate 0
    474  
     474
    475475                  (1;; stop and fire
    476                      (burst_fire  (+ (x) (* (direction) 16)) (- (y) 22)               
     476                     (burst_fire  (+ (x) (* (direction) 16)) (- (y) 22)
    477477                            (if (> (direction) 0)
    478478                                (mod (- 375 (/ (* burst_left 30) burst_total)) 360)
     
    491491
    492492               (if (<= (hp) 0)                        ;; are we dead, if so blow up
    493                    (progn       
    494                         (add_object EXPLODE6 (+ (x) 5) (- (y) 10)     0) 
     493                   (progn
     494                        (add_object EXPLODE6 (+ (x) 5) (- (y) 10)     0)
    495495                        (add_object EXPLODE6 (+ (x) -5) (- (y) 15)    2)  ;; wait 2 frames before appearing
    496496                        (add_object EXPLODE6 (+ (x) 10) (- (y) 2)     1)
     
    503503                  )
    504504             )
    505                
     505
    506506      T);; end of *** progn
    507507    T);; end of ** if activated
    508508  );; end of * if
    509 );; end of ai 
     509);; end of ai
    510510
    511511(def_char WALK_ROB
     
    513513  (funs (ai_fun wrob_ai)
    514514          (constructor wrob_cons)
    515           (get_cache_list_fun explo_damage_cache)       
     515          (get_cache_list_fun explo_damage_cache)
    516516        (damage_fun explo_damage)
    517517  );; end funs
    518518
    519519  (abilities (run_top_speed 6)
    520              (start_hp 70) 
     520             (start_hp 70)
    521521  );; end abilities
    522522
    523   (flags (hurtable T) 
     523  (flags (hurtable T)
    524524         (can_block T)
    525525         (unactive_shield T)
     
    528528  (range 300 100)
    529529
    530   (vars fire_delay 
    531         burst_delay 
    532         burst_total 
    533         burst_wait 
    534         burst_left 
    535           max_xvel   
    536         max_yvel   
    537         smoke_time 
     530  (vars fire_delay
     531        burst_delay
     532        burst_total
     533        burst_wait
     534        burst_left
     535          max_xvel
     536        max_yvel
     537        smoke_time
    538538        fire_time
    539539   );; end vars
     
    550550  );; end fields
    551551
    552   (states "addon/claudio/rob2.spe" 
     552  (states "addon/claudio/rob2.spe"
    553553          (stopped "wwlk0001.pcx")
    554554          (running (seq "wwlk" 1 10))
     
    561561  );; end states
    562562
    563 );; end def_char WALK_ROB             
    564    
     563);; end def_char WALK_ROB
     564
    565565;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    566566;;                                                                                       ;;
     
    574574    (with_object (get_object 0)
    575575                 (if (eq (otype) SPACE_DOOR)
    576                      (if (eq is_opening 0)                       
     576                     (if (eq is_opening 0)
    577577                         (if (and (< (distx) 50) (< (disty) 40))
    578578                             T
     
    599599          (play_sound SWISH 70 (x) (y)))
    600600      (set_current_frame (- (current_frame) 1)))))
    601  
     601
    602602(defun tpdspace_ai ()     ;; teleporting door ai
    603603  (if (or (and (< (distx) 50) (< (disty) 40))
     
    615615                (othery (with_object (get_object 0) (y))))
    616616            (with_object (get_object 0) (link_object player))
    617             (with_object player (progn 
    618                                   (set_x otherx) 
     617            (with_object player (progn
     618                                  (set_x otherx)
    619619                                  (set_y othery)))))))
    620620T)
     
    679679      (do_damage 20 (bg)))
    680680  (select (aistate)
    681           (0 
     681          (0
    682682
    683683            (if (eq (random 100) 0)
     
    686686                   (set_aistate 1)))
    687687             (next_picture))
    688           (1 
     688          (1
    689689
    690690           (next_picture)
     
    735735
    736736(defun sewer_ai ()
    737  
     737
    738738  (select (aistate)
    739           (0 
     739          (0
    740740
    741741            (if (eq (random 100) 0)
     
    744744                   (set_aistate 1)))
    745745             (next_picture))
    746           (1 
     746          (1
    747747
    748748           (next_picture)
     
    759759      (do_damage 2 (bg)))
    760760  (select (aistate)
    761           (0 
     761          (0
    762762
    763763            (if (eq (random 100) 0)
     
    766766                   (set_aistate 1)))
    767767             (next_picture))
    768           (1 
     768          (1
    769769
    770770           (next_picture)
     
    777777(defun wfall_ai ()
    778778  (select (aistate)
    779           (0 
     779          (0
    780780
    781781            (if (eq (random 100) 0)
     
    784784                   (set_aistate 1)))
    785785             (next_picture))
    786           (1 
     786          (1
    787787
    788788           (next_picture)
     
    849849
    850850(def_char LAMP_EX1
    851                                
     851
    852852  (funs (ai_fun  exlamp_ai))
    853853  (flags (can_block T)
     
    859859
    860860
    861 (defun slamp_ai () 
     861(defun slamp_ai ()
    862862(if (activated)
    863863 (set_state running)
     
    869869(def_char LAMP_BIG
    870870  (funs (ai_fun   slamp_ai))
    871   (states "addon/claudio/lamp.spe" 
     871  (states "addon/claudio/lamp.spe"
    872872     (stopped "l0002.pcx")
    873873     (running "l0001.pcx")
     
    878878(def_char LAMP_SMALL ;; original art by Craig Redinger
    879879  (funs (ai_fun   slamp_ai))
    880   (states "addon/craig/craig.spe" 
     880  (states "addon/craig/craig.spe"
    881881     (stopped "lamp_off")
    882882     (running "lamp_on")
     
    890890;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    891891
    892 (defun antihp_up () 
     892(defun antihp_up ()
    893893        (next_picture)
    894894
     
    921921  (funs (ai_fun switcher_ai)
    922922        (reload_fun lower_reload))
    923   (range 0 0) 
     923  (range 0 0)
    924924  (states "addon/claudio/sswitch.spe"
    925925          (stopped '("ssw0001" "ssw0002"))
     
    946946
    947947(defun dumbrel_ai ()
    948  
    949   (if (not (eq smoke_time 0))                 
     948
     949  (if (not (eq smoke_time 0))
    950950      (progn
    951951        (setq smoke_time (- smoke_time 1))
     
    953953            (add_object SMALL_DARK_CLOUD (x) (y)))))
    954954
    955   (if (eq (aistate) 0)                       
     955  (if (eq (aistate) 0)
    956956      (if (or (eq (total_objects) 0) (not (eq (with_object (get_object 0) (aistate)) 0)))
    957957          (if (next_picture) T
     
    964964          (set_state stopped)
    965965          T))
    966     (if (eq (hp) 0)                         
     966    (if (eq (hp) 0)
    967967        (progn
    968968        (play_sound GRENADE_SND 127 (x) (y))
     
    971971          (add_object EXPLODE1 (x) (+ (- (y) (random 20)) -20)                     4)
    972972          nil)
    973       (progn     
    974         (if (eq (mod (state_time) 5) 0)     
     973      (progn
     974        (if (eq (mod (state_time) 5) 0)
    975975            (play_sound DRILL_SND 127 (x) (y)))
    976         (if (> (with_object (bg) (x)) (x))   
     976        (if (> (with_object (bg) (x)) (x))
    977977            (progn
    978978              (set_xvel (+ (xvel) 1))
     
    982982                    (set_direction 1)
    983983                    (set_state turn_around))))
    984           (if (< (with_object (bg) (x)) (x)) 
     984          (if (< (with_object (bg) (x)) (x))
    985985              (progn
    986986                (set_xvel (- (xvel) 1))
     
    10001000                (set_yvel (- (yvel) 1)))))
    10011001
    1002         (if (eq (random 5) 0)               
     1002        (if (eq (random 5) 0)
    10031003            (set_xvel (+ (xvel) 1))
    10041004          (if (eq (random 5) 0)
     
    10091009              (set_yvel (- (yvel) 1))))
    10101010
    1011         (if (next_picture) T (set_state running)) 
    1012            
     1011        (if (next_picture) T (set_state running))
     1012
    10131013        (bounce_move '(set_xvel (/ (xvel) 2)) '(set_xvel (/ (xvel) 2))
    10141014                     '(set_yvel (/ (yvel) 2)) '(set_yvel (/ (yvel) 2)) nil)
    1015      
     1015
    10161016        (if (> fire_time 0)              ;; if we need to wait till next burst
    10171017            (progn
    10181018              (setq fire_time (- fire_time 1))
    10191019              (if (eq fire_time 0)
    1020                   (progn 
     1020                  (progn
    10211021                    (setq burst_left burst_total)
    10221022                    (setq burst_wait 0))))
     
    10351035                              (setq burst_left (- burst_left 1)))
    10361036                            (setq burst_wait burst_delay)
    1037                             (fire_object (me) (aitype) firex firey angle (bg)) 
     1037                            (fire_object (me) (aitype) firex firey angle (bg))
    10381038                            )))))
    1039             (setq burst_wait (- burst_wait 1))))               
     1039            (setq burst_wait (- burst_wait 1))))
    10401040        T))))
    10411041
    10421042(defun dumbrel_damage (amount from hitx hity push_xvel push_yvel)
    1043   (if (and from (with_object from (and (> (total_objects) 0) 
    1044                                        (with_object (get_object 0) 
     1043  (if (and from (with_object from (and (> (total_objects) 0)
     1044                                       (with_object (get_object 0)
    10451045                                                    (or (eq (otype) FLYER)
    10461046                                                        (eq (otype) GREEN_FLYER))
     
    10701070))))
    10711071
    1072 (defun dumbrel_cons ()   
     1072(defun dumbrel_cons ()
    10731073  (setq fire_delay 20)
    10741074  (setq burst_delay 5)
     
    10821082  (funs (ai_fun dumbrel_ai)
    10831083          (constructor dumbrel_cons)
    1084           (get_cache_list_fun explo_damage_cache)       
     1084          (get_cache_list_fun explo_damage_cache)
    10851085        (damage_fun dumbrel_damage)
    10861086  );; end funs
    10871087
    1088   (abilities (start_hp 100) 
     1088  (abilities (start_hp 100)
    10891089  );; end abilities
    10901090
    1091   (flags (hurtable T) 
     1091  (flags (hurtable T)
    10921092         (can_block T)
    10931093         (unactive_shield T)
     
    10961096  (range 300 100)
    10971097
    1098   (vars fire_delay 
    1099         burst_delay 
    1100         burst_total 
    1101         burst_wait 
    1102         burst_left 
    1103           max_xvel   
    1104         max_yvel   
    1105         smoke_time 
     1098  (vars fire_delay
     1099        burst_delay
     1100        burst_total
     1101        burst_wait
     1102        burst_left
     1103          max_xvel
     1104        max_yvel
     1105        smoke_time
    11061106        fire_time
    11071107   );; end vars
    11081108
    1109   (states "addon/claudio/umbrel3.spe" 
     1109  (states "addon/claudio/umbrel3.spe"
    11101110          (stopped "u0001.pcx")
    11111111          (running (seq "u" 1 4))
     
    11131113  );; end states
    11141114
    1115 );; end def_char 
     1115);; end def_char
    11161116
    11171117
     
    11241124(defun antship_ai ()
    11251125
    1126   (if (not (eq smoke_time 0))                 
     1126  (if (not (eq smoke_time 0))
    11271127      (progn
    11281128          (setq smoke_time (- smoke_time 1))
     
    11481148          T)
    11491149      )
    1150    
     1150
    11511151      (if (<= (hp) 0)
    1152          
     1152
    11531153         (progn
    11541154
     
    11561156              (next_picture)
    11571157
    1158               (progn         
     1158              (progn
    11591159                (set_state dieing)
    11601160                (play_sound GRENADE_SND 127 (x) (y))
     
    11641164              )
    11651165
    1166           )       
     1166          )
    11671167        )
    1168         (progn     
     1168        (progn
    11691169            (if (eq (mod (state_time) 5) 0)
    11701170              (play_sound ASHIP_SND 127 (x) (y))
     
    11731173            (progn
    11741174              (set_xvel (+ (xvel) 1))
    1175               (if (> (xvel) max_xvel) 
     1175              (if (> (xvel) max_xvel)
    11761176               (set_xvel max_xvel)
    11771177            )
     
    11831183             )
    11841184           )
    1185              (if (< (with_object (bg) (x)) (x)) 
     1185             (if (< (with_object (bg) (x)) (x))
    11861186                (progn
    11871187                (set_xvel (- (xvel) 1))
    1188                 (if (< (xvel) (- 0 max_xvel)) 
     1188                (if (< (xvel) (- 0 max_xvel))
    11891189                   (set_xvel (- 0 max_xvel))
    11901190                  )
     
    12121212       )
    12131213
    1214         (if (eq (random 5) 0)               
     1214        (if (eq (random 5) 0)
    12151215            (set_xvel (+ (xvel) 1))
    12161216            (if (eq (random 5) 0)
     
    12211221              (set_yvel (- (yvel) 1))))
    12221222
    1223         (if (next_picture) T (set_state running)) 
    1224            
     1223        (if (next_picture) T (set_state running))
     1224
    12251225        (bounce_move '(set_xvel (/ (xvel) 8)) '(set_xvel (/ (xvel) 8))
    12261226                     '(set_yvel (/ (yvel) 8)) '(set_yvel (/ (yvel) 8)) nil)
    1227      
    1228         (if (> fire_time 0)             
     1227
     1228        (if (> fire_time 0)
    12291229            (progn
    12301230              (setq fire_time (- fire_time 1))
    12311231              (if (eq fire_time 0)
    1232                   (progn 
     1232                  (progn
    12331233                    (setq burst_left burst_total)
    12341234                    (setq burst_wait 0))))
     
    12471247                              (setq burst_left (- burst_left 1)))
    12481248                            (setq burst_wait burst_delay)
    1249                             (fire_object (me) (aitype) firex firey angle (bg)) 
     1249                            (fire_object (me) (aitype) firex firey angle (bg))
    12501250                            )))))
    1251             (setq burst_wait (- burst_wait 1))))               
     1251            (setq burst_wait (- burst_wait 1))))
    12521252        T)))
    12531253
     
    12551255
    12561256(defun antship_damage (amount from hitx hity push_xvel push_yvel)
    1257   (if (and from (with_object from (and (> (total_objects) 0) 
    1258                                        (with_object (get_object 0) 
     1257  (if (and from (with_object from (and (> (total_objects) 0)
     1258                                       (with_object (get_object 0)
    12591259                                                    (or (eq (otype) FLYER)
    12601260                                                        (eq (otype) GREEN_FLYER))
     
    12871287))))
    12881288
    1289 (defun antship_cons ()   
     1289(defun antship_cons ()
    12901290  (setq fire_delay 30)
    12911291  (setq burst_delay 8)
     
    13011301  (funs (ai_fun antship_ai)
    13021302          (constructor antship_cons)
    1303           (get_cache_list_fun explo_damage_cache)       
     1303          (get_cache_list_fun explo_damage_cache)
    13041304        (damage_fun antship_damage)
    13051305  );; end funs
    13061306
    1307   (abilities (start_hp 300) 
     1307  (abilities (start_hp 300)
    13081308  );; end abilities
    13091309
    1310   (flags (hurtable T) 
     1310  (flags (hurtable T)
    13111311         (can_block T)
    13121312         (unactive_shield T)
     
    13151315  (range 400 200)
    13161316
    1317   (vars fire_delay 
    1318         burst_delay 
    1319         burst_total 
    1320         burst_wait 
    1321         burst_left 
    1322           max_xvel   
    1323         max_yvel   
    1324         smoke_time 
     1317  (vars fire_delay
     1318        burst_delay
     1319        burst_total
     1320        burst_wait
     1321        burst_left
     1322          max_xvel
     1323        max_yvel
     1324        smoke_time
    13251325        fire_time
    13261326   );; end vars
    13271327
    1328   (states "addon/claudio/antship.spe" 
     1328  (states "addon/claudio/antship.spe"
    13291329          (stopped "s0001.pcx")
    13301330          (running (seq "s" 2 6))
     
    13331333  );; end states
    13341334
    1335 );; end def_char 
     1335);; end def_char
    13361336
    13371337
     
    13431343
    13441344(defun dskull_ai ()
    1345   (if (not (eq smoke_time 0))                 
     1345  (if (not (eq smoke_time 0))
    13461346      (progn
    13471347        (setq smoke_time (- smoke_time 1))
     
    13521352 )
    13531353
    1354   (if (eq (aistate) 0)                       
     1354  (if (eq (aistate) 0)
    13551355      (if (or (eq (total_objects) 0) (not (eq (with_object (get_object 0) (aistate)) 0)))
    13561356          (if (next_picture) T
     
    13631363          (set_state stopped)
    13641364          T))
    1365     (if (eq (hp) 0)                         
     1365    (if (eq (hp) 0)
    13661366        (progn
    13671367        (play_sound GRENADE_SND 127 (x) (y))
     
    13701370          (add_object EXPLODE1 (x) (+ (- (y) (random 20)) -20)                     4)
    13711371          nil)
    1372       (progn     
    1373         (if (eq (mod (state_time) 10) 0)     
     1372      (progn
     1373        (if (eq (mod (state_time) 10) 0)
    13741374            (play_sound SKULL_SND 127 (x) (y)))
    1375         (if (> (with_object (bg) (x)) (x))   
     1375        (if (> (with_object (bg) (x)) (x))
    13761376            (progn
    13771377              (set_xvel (+ (xvel) 1))
     
    13811381                    (set_direction 1)
    13821382                    (set_state turn_around))))
    1383           (if (< (with_object (bg) (x)) (x)) 
     1383          (if (< (with_object (bg) (x)) (x))
    13841384              (progn
    13851385                (set_xvel (- (xvel) 1))
     
    13991399                (set_yvel (- (yvel) 1)))))
    14001400
    1401         (if (eq (random 5) 0)               
     1401        (if (eq (random 5) 0)
    14021402            (set_xvel (+ (xvel) 1))
    14031403          (if (eq (random 5) 0)
     
    14081408              (set_yvel (- (yvel) 1))))
    14091409
    1410         (if (next_picture) T (set_state running)) 
    1411            
     1410        (if (next_picture) T (set_state running))
     1411
    14121412        (bounce_move '(set_xvel (/ (xvel) 2)) '(set_xvel (/ (xvel) 2))
    14131413                     '(set_yvel (/ (yvel) 2)) '(set_yvel (/ (yvel) 2)) nil)
    1414      
    1415         (if (> fire_time 0)             
     1414
     1415        (if (> fire_time 0)
    14161416            (progn
    14171417              (setq fire_time (- fire_time 1))
    14181418              (if (eq fire_time 0)
    1419                   (progn 
     1419                  (progn
    14201420                    (setq burst_left burst_total)
    14211421                    (setq burst_wait 0))))
     
    14341434                              (setq burst_left (- burst_left 1)))
    14351435                            (setq burst_wait burst_delay)
    1436                             (fire_object (me) (aitype) firex firey angle (bg)) 
     1436                            (fire_object (me) (aitype) firex firey angle (bg))
    14371437                            )))))
    1438             (setq burst_wait (- burst_wait 1))))               
     1438            (setq burst_wait (- burst_wait 1))))
    14391439        T))))
    14401440
    14411441
    14421442(defun dskull_damage (amount from hitx hity push_xvel push_yvel)
    1443   (if (and from (with_object from (and (> (total_objects) 0) 
    1444                                        (with_object (get_object 0) 
     1443  (if (and from (with_object from (and (> (total_objects) 0)
     1444                                       (with_object (get_object 0)
    14451445                                                    (or (eq (otype) FLYER)
    14461446                                                        (eq (otype) GREEN_FLYER))
     
    14621462))))
    14631463
    1464 (defun dskull_cons ()     
     1464(defun dskull_cons ()
    14651465  (setq fire_delay 20)
    14661466  (setq burst_delay 5)
     
    14741474  (funs (ai_fun dskull_ai)
    14751475          (constructor dskull_cons)
    1476           (get_cache_list_fun explo_damage_cache)       
     1476          (get_cache_list_fun explo_damage_cache)
    14771477        (damage_fun dskull_damage)
    14781478  );; end funs
    14791479
    1480   (abilities (start_hp 100) 
     1480  (abilities (start_hp 100)
    14811481  );; end abilities
    14821482
    1483   (flags (hurtable T) 
     1483  (flags (hurtable T)
    14841484         (can_block T)
    14851485         (unactive_shield T)
     
    14881488  (range 300 100)
    14891489
    1490   (vars fire_delay 
    1491         burst_delay 
    1492         burst_total 
    1493         burst_wait 
    1494         burst_left 
    1495           max_xvel   
    1496         max_yvel   
    1497         smoke_time 
     1490  (vars fire_delay
     1491        burst_delay
     1492        burst_total
     1493        burst_wait
     1494        burst_left
     1495          max_xvel
     1496        max_yvel
     1497        smoke_time
    14981498        fire_time
    14991499   );; end vars
    15001500
    1501   (states "addon/claudio/skull.spe" 
     1501  (states "addon/claudio/skull.spe"
    15021502          (stopped "s0001.pcx")
    1503           (running '("s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" 
    1504                    "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" 
    1505                    "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" 
     1503          (running '("s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx"
     1504                   "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx" "s0002.pcx"
     1505                   "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx" "s0001.pcx"
    15061506                   "s0024.pcx" "s0024.pcx" "s0024.pcx" "s0024.pcx" "s0024.pcx" "s0024.pcx" "s0024.pcx" "s0024.pcx"))
    15071507        (flinch_up  (seq "s" 2 18))
     
    15101510  );; end states
    15111511
    1512 );; end def_char 
     1512);; end def_char
    15131513
    15141514(def_explo 'EXPLODE0 "addon/claudio/bigexp.spe" "fire"           7)
     
    15231523(load_tiles
    15241524          "addon/claudio/pal81.spe"    ;; space foretiles 1, numbered from 8100,  palette space1
    1525             "addon/claudio/pal82.spe"    ;; space foretiles 2, numbered from 8200,  palette space2 
    1526             ;; "addon/claudio/pal83.spe" ;; space foretiles 3, numbered from 8300,  palette space3     
     1525            "addon/claudio/pal82.spe"    ;; space foretiles 2, numbered from 8200,  palette space2
     1526            ;; "addon/claudio/pal83.spe" ;; space foretiles 3, numbered from 8300,  palette space3
    15271527            "addon/claudio/pal90.spe"    ;; stars backtiles 1, numbered from 9000,
    15281528            "addon/claudio/pal2.spe"     ;; sewers backtiles,  numbered from 2000,
    1529             "addon/claudio/pal21.spe"    ;; stars backtiles 2, numbered from 2100, 
    1530             "addon/claudio/pal5.spe"     ;; corallo backtiles, numbered from 5000, 
     1529            "addon/claudio/pal21.spe"    ;; stars backtiles 2, numbered from 2100,
     1530            "addon/claudio/pal5.spe"     ;; corallo backtiles, numbered from 5000,
    15311531            "addon/claudio/extiles.spe"  ;; extra foretiles,   numbered from 10000, palette extra1
    15321532)
     
    15451545;; Contact these authors if you want to get more infor about their work.                 ;;
    15461546;; Otherwise, deactivate                                                                 ;;
    1547 ;; the following section as indicated below in order to use the characters               ;; 
     1547;; the following section as indicated below in order to use the characters               ;;
    15481548;; and tiles by Claudio Bolzoni only.                                                    ;;
    15491549;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  • abuse/trunk/data-frabs/addon/deathmat/deathmat.lsp

    r566 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(load "lisp/input.lsp")
  • abuse/trunk/data-frabs/addon/deathmat/dstartup.lsp

    r566 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-frabs/addon/deathmat/large.lsp

    r566 r582  
    1 (select (random 4) 
    2         (0 (setq net_levels 
     1(select (random 4)
     2        (0 (setq net_levels
    33        '("netlevel/limeston.spe"
    44            "netlevel/bugs.spe"
    55          "netlevel/jdm3.spe")))
    6       (1 (setq net_levels 
     6      (1 (setq net_levels
    77        '("netlevel/bugs.spe"
    88            "netlevel/limeston.spe"
    99          "netlevel/jdm3.spe")))
    10       (2 (setq net_levels 
     10      (2 (setq net_levels
    1111        '("netlevel/limeston.spe"
    1212            "netlevel/jdm3.spe"
    1313          "netlevel/bugs.spe")))
    14       (3 (setq net_levels 
     14      (3 (setq net_levels
    1515        '("netlevel/jdm3.spe"
    1616            "netlevel/bugs.spe"
    17             "netlevel/limeston.spe"))) 
    18       ) 
     17            "netlevel/limeston.spe")))
     18      )
  • abuse/trunk/data-frabs/addon/deathmat/medium.lsp

    r566 r582  
    1 (select (random 4) 
    2         (0 (setq net_levels 
     1(select (random 4)
     2        (0 (setq net_levels
    33        '("netlevel/spacymed.spe"
    44            "netlevel/teardrop.spe"
     
    88            "netlevel/bugsmed.spe"
    99            "netlevel/00dm.spe")))
    10       (1 (setq net_levels 
     10      (1 (setq net_levels
    1111        '("netlevel/aquarius.spe"
    1212            "netlevel/madrace.spe"
     
    1616            "netlevel/00dm.spe"
    1717            "netlevel/spacymed.spe")))
    18         (2 (setq net_levels 
     18        (2 (setq net_levels
    1919        '("netlevel/laazrckt.spe"
    2020          "netlevel/00dm.spe"
     
    2424            "netlevel/teardrop.spe"
    2525            "netlevel/madrace.spe")))
    26       (3 (setq net_levels 
     26      (3 (setq net_levels
    2727        '("netlevel/teardrop.spe"
    2828            "netlevel/laazrckt.spe"
     
    3232            "netlevel/madrace.spe"
    3333            "netlevel/aquarius.spe")))
    34       ) 
     34      )
  • abuse/trunk/data-frabs/addon/deathmat/small.lsp

    r566 r582  
    1 (select (random 4) 
    2         (0 (setq net_levels 
     1(select (random 4)
     2        (0 (setq net_levels
    33        '("netlevel/alitlhot.spe"
    44            "netlevel/getcross.spe"
     
    1010            "netlevel/ruins.spe"
    1111            "netlevel/occult.spe"
    12             "netlevel/cistern.spe"))) 
    13       (1 (setq net_levels 
     12            "netlevel/cistern.spe")))
     13      (1 (setq net_levels
    1414        '("netlevel/treesmal.spe"
    1515            "netlevel/cistern.spe"
     
    2121            "netlevel/ruins.spe"
    2222            "netlevel/kotcross.spe"
    23             "netlevel/alitlhot.spe"))) 
    24       (2 (setq net_levels 
     23            "netlevel/alitlhot.spe")))
     24      (2 (setq net_levels
    2525        '("netlevel/kotcross.spe"
    2626            "netlevel/spacytdm.spe"
     
    3232            "netlevel/getcross.spe"
    3333            "netlevel/ruins.spe"
    34             "netlevel/bugssml.spe"))) 
    35       (3 (setq net_levels 
     34            "netlevel/bugssml.spe")))
     35      (3 (setq net_levels
    3636        '("netlevel/ruins.spe"
    3737            "netlevel/getcross.spe"
     
    4343            "netlevel/spacytdm.spe"
    4444            "netlevel/occult.spe"
    45             "netlevel/bugssml.spe"))) 
    46       ) 
     45            "netlevel/bugssml.spe")))
     46      )
  • abuse/trunk/data-frabs/addon/leon/leon.lsp

    r566 r582  
    1414    (progn
    1515      (print "Please make sure you unzipped the game with the -d option")
    16       (print "so that all directories get created properly.")     
    17       (print "example : pkunzip -d abusXXXX.zip")     
     16      (print "so that all directories get created properly.")
     17      (print "example : pkunzip -d abusXXXX.zip")
    1818      (quit)))
    1919(setq load_warn T)
     
    2222(load "lisp/common.lsp")
    2323(load "lisp/userfuns.lsp")
    24 (load "lisp/options.lsp")     
     24(load "lisp/options.lsp")
    2525(load "lisp/startup.lsp")
    2626(if (not (local_load "lisp/input.lsp"))   ; get local copy first
     
    6464
    6565
    66 (setq bad_guy_list (list DARNEL ANT_ROOF TRACK_GUN SPRAY_GUN JUGGER ROB1 WHO ROCKET FLYER GREEN_FLYER BOSS_ANT 
     66(setq bad_guy_list (list DARNEL ANT_ROOF TRACK_GUN SPRAY_GUN JUGGER ROB1 WHO ROCKET FLYER GREEN_FLYER BOSS_ANT
    6767ANT ANT_JUMPER ANT_PRED ANT_GREATER2 NJUGGER))
    6868
  • abuse/trunk/data-frabs/addon/leon/lisp/deco.lsp

    r566 r582  
    77  T
    88)
    9    
    10                      
     9
     10
    1111(def_char ANTBODY
    1212  (funs (ai_fun antbody_ai)
     
    1414  (flags (unlistable T)(add_front T)) ;; This class is obsolete, just keeping it here for compatibility
    1515  (states "art/ant.spe"  (stopped (seq "adib" 1 16))))
    16                      
     16
    1717(def_char DECO_ANTBODY
    1818  (funs (ai_fun antbody_ai)
  • abuse/trunk/data-frabs/addon/leon/lisp/grenade.lsp

    r566 r582  
    3636    )
    3737    (if (and (eq tk 8) (> yv 0) )
    38       (progn 
     38      (progn
    3939        (set_yvel (- 0 yv) )
    4040        (set_xvel (* (/ xv 7) 5) )
     
    4242          (set_xvel 0)
    4343          nil )
    44         (set_gravity 1) 
     44        (set_gravity 1)
    4545        (play_sound (aref GREN_SND (random 2)) 127 (x) (y))
    4646      )
     
    4848    )
    4949  )
    50   (if (or (> (yvel) 0) (< (yvel) 0) (> (xvel) 0) (< (xvel) 0) ) 
     50  (if (or (> (yvel) 0) (< (yvel) 0) (> (xvel) 0) (< (xvel) 0) )
    5151    (next_picture)
    5252    nil
     
    5454  (if (> (total_objects) 0)
    5555    (let ( (mex (x)) (mey (y)) )
    56       (if (with_object (get_object 0) (find_object_in_area      (- mex 7) 
    57                                                                 (- mey 7) 
    58                                                                 (+ mex 7) 
     56      (if (with_object (get_object 0) (find_object_in_area      (- mex 7)
     57                                                                (- mey 7)
     58                                                                (+ mex 7)
    5959                                                                (+ mey 7) bad_guy_list))
    60      
     60
    6161        (set_hp 31)
    6262        nil
     
    6565  )
    6666  (if (> (hp) 30)
    67     (progn 
     67    (progn
    6868      (do_explo 40 36)
    6969      nil
    7070    )
    71     (progn 
     71    (progn
    7272      (add_hp 1)
    7373      T
  • abuse/trunk/data-frabs/addon/leon/lisp/lmisc.lsp

    r566 r582  
    22  (if (eq (random 75) 0) (play_sound LAVA_SND 24 (x) (y)) )
    33  (select (aistate)
    4           (0 
     4          (0
    55             (if (eq (state_time) dam_spd)
    66                 (progn
     
    3636                 (if (and (touching_bg) (with_object (bg) (pressing_action_key)))
    3737                     (set_aistate 2)))
    38               (2 (set_state running)       
     38              (2 (set_state running)
    3939                 (set_aistate 3))
    40               (3 (set_aistate 4))           
    41               (4 
     40              (3 (set_aistate 4))
     41              (4
    4242               (let ((spot (get_save_slot)))
    4343                 (set_state stopped)
     
    5959               )))
    6060  T)
    61          
     61
    6262
    6363(def_char LRESTART_POSITION
     
    9494
    9595
    96 (defun Med_ai () 
     96(defun Med_ai ()
    9797  (if (eq0 (aistate))     (progn
    9898            (try_move 0 10)
     
    111111  (states "addon/leon/lmisc.spe" (stopped "medkit.pcx" )))
    112112
    113 (defun none_ai () 
     113(defun none_ai ()
    114114  (next_picture)
    115   (if (touching_bg) 
    116       (progn (with_object (bg) 
     115  (if (touching_bg)
     116      (progn (with_object (bg)
    117117                          (progn
    118118                            (setq special_power NO_POWER)
     
    142142        (set_y nowy)))
    143143  T)
    144        
     144
    145145
    146146(defun sensbeam_draw ()
     
    158158  (states "art/misc.spe"
    159159          (stopped "force_field")))
    160        
     160
    161161
    162162(defun swtele_ai ()     ;; teleporting door ai
     
    167167          (let ((otherx (+ (with_object (get_object 1) (x)) (- (with_object player (x) ) (x) ) ) )
    168168                (othery (+ (with_object (get_object 1) (y)) (- (with_object player (y) ) (y) ) ) ))
    169             (with_object player (progn 
    170                                   (set_x otherx) 
     169            (with_object player (progn
     170                                  (set_x otherx)
    171171                                  (set_y othery)
    172172                                  (bottom_draw)
    173173;;                                (with_object (get_object 0)
    174174;;                                    (progn
    175 ;;                                      (set_x otherx) 
     175;;                                      (set_x otherx)
    176176;;                                    (set_y othery)
    177177;;                                      (top_ai)
     
    191191          (stopped "switch_mover")))
    192192
    193 (setq AMB_SOUNDS2 (make-array 3 :initial-contents (list 
     193(setq AMB_SOUNDS2 (make-array 3 :initial-contents (list
    194194                               (def_sound "addon/leon/sfx/ambship1.wav")   ;; 0
    195195                               (def_sound "addon/leon/sfx/ambship2.wav")   ;; 1
     
    216216      T)))
    217217
    218        
    219 (defun ambs_cons2 () 
     218
     219(defun ambs_cons2 ()
    220220  (set_xvel 10)  ;; delay time to 10
    221221  (set_yvel 127)) ;; set volume default to 127
     
    228228  (range 500 500)
    229229  (fields ("aitype" amb_num)
    230           ("yvel"   amb_vol)     
     230          ("yvel"   amb_vol)
    231231          ("xvel"   amb_rep)
    232232          ("xacel"  amb_rand))
  • abuse/trunk/data-frabs/addon/leon/lisp/lnant.lsp

    r566 r582  
    1 (setq ant_tints (make-array 14 :initial-contents (list 
     1(setq ant_tints (make-array 14 :initial-contents (list
    22                                                (def_tint "art/tints/ant/green.spe")
    3                                                 (def_tint "art/tints/ant/blue.spe") 
     3                                                (def_tint "art/tints/ant/blue.spe")
    44                                                (def_tint "art/tints/ant/brown.spe")
    55                                                (def_tint "art/tints/ant/egg.spe")
     
    2727             (let ((d (direction))
    2828                   (type (aitype)))
    29                (if (or (eq create_total 0) (eq create_total 1))           
     29               (if (or (eq create_total 0) (eq create_total 1))
    3030                   (set_current_frame 4)
    3131                 (progn
     
    4444            (2 (next_picture))))
    4545  T)
    46            
     46
    4747
    4848
     
    7676(defun anthole_ai ()
    7777  (select (aistate)
    78     (0 
     78    (0
    7979      (if (and (activated) (< (total_objects) (+ (xvel) 1) ) )
    8080        (go_state 2)
    8181      )
    8282    )
    83     (3 
     83    (3
    8484      (if (and (activated) (< (total_objects) (+ (xvel) 1) ) )
    85         (progn         
     85        (progn
    8686          (if (eq (current_frame) 4)
    8787            (set_current_frame 1)
     
    101101    )
    102102
    103     (1 
     103    (1
    104104      (if (eq (state_time) (yvel))
    105105        (select (otype) (ANTHOLE (go_state 0))
     
    189189  (range 250 20)
    190190  (draw_range 40 40)
    191   (funs (ai_fun     ,aifun)     
     191  (funs (ai_fun     ,aifun)
    192192        (draw_fun   ,drawfun)
    193193        (constructor ant_cons)
     
    204204             (push_xrange     1)
    205205             (jump_top_speed (+ jumpyvel jumpxvel) ))
    206  
    207   (flags 
     206
     207  (flags
    208208         (hurtable  T)
    209209         (force_health T))
    210210
    211   (states "art/ant.spe" 
     211  (states "art/ant.spe"
    212212          (hanging (rep "ant" 2))
    213213
    214214          (fall_start "affc0001.pcx")
    215215          (falling    "affc0002.pcx")
    216          
     216
    217217          (stopped "awlk0001.pcx")
    218218          (running (seq "awlk" 1 10))
     
    240240
    241241
    242 (setq ai_ammo (make-array 15 :initial-contents (list MBULLET_ICON5 
    243                                                 MBULLET_ICON5 
     242(setq ai_ammo (make-array 15 :initial-contents (list MBULLET_ICON5
     243                                                MBULLET_ICON5
    244244                                                GRENADE_ICON2
    245                                                 ROCKET_ICON2 
     245                                                ROCKET_ICON2
    246246                                                PLASMA_ICON20
    247                                                 MBULLET_ICON5 
    248                                                 MBULLET_ICON5 
    249                                                 MBULLET_ICON5 
     247                                                MBULLET_ICON5
     248                                                MBULLET_ICON5
     249                                                MBULLET_ICON5
    250250                                                MBULLET_ICON5
    251251                                                MBULLET_ICON20
     
    259259
    260260  (if (and (not (eq (state) dead))
    261            (or (not from) 
    262                (with_object from (if (eq (total_objects) 0) 
     261           (or (not from)
     262               (with_object from (if (eq (total_objects) 0)
    263263                                     (not (eq (otype) ANT_ROOF))
    264264                                   (with_object (get_object 0) (not (eq (otype) ANT_ROOF)))))))
     
    270270            (damage_fun amount from hitx hity push_xvel push_yvel)
    271271            (play_sound APAIN_SND 127 (x) (y))
    272             (setq need_to_dodge 1)         
     272            (setq need_to_dodge 1)
    273273            (if (<= (hp) 0)
    274274                (progn
     
    293293             (let ((d (direction))
    294294                   (type (aitype)))
    295                   (with_object (add_object ANTBODY (x) (y)) 
     295                  (with_object (add_object ANTBODY (x) (y))
    296296                    (progn
    297297                              (set_aitype type)
     
    303303             (let ((d (direction))
    304304                   (type (aitype)))
    305                   (with_object (add_object DECO_ANTBODY (x) (y)) 
     305                  (with_object (add_object DECO_ANTBODY (x) (y))
    306306                    (progn
    307307                              (set_aitype type)
     
    321321
    322322(defun pred_draw ()
    323   (if (edit_mode) 
    324     (ant_draw) 
     323  (if (edit_mode)
     324    (ant_draw)
    325325  (draw_predator)))
    326326
     
    339339                             (let ((d (direction))
    340340                   (type (aitype)))
    341                   (with_object (add_object GRANTBODY (x) (y)) 
     341                  (with_object (add_object GRANTBODY (x) (y))
    342342                    (progn
    343343                              (set_aitype type)
     
    359359  T
    360360)
    361    
    362                      
     361
     362
    363363(def_char GRANTBODY
    364364  (funs (ai_fun grantbody_ai)
     
    410410        (let ((d (direction))
    411411          (type (aitype)))
    412             (with_object (add_object ANTBODY (x) (y)) 
     412            (with_object (add_object ANTBODY (x) (y))
    413413              (progn
    414414                (set_aitype type)
  • abuse/trunk/data-frabs/addon/leon/lisp/nextlev3.lsp

    r566 r582  
    77          (request_level_load (concatenate 'string "addon/leon/level" (digstr (aistate) 2) ".spe")))))
    88  T)
    9        
     9
    1010
    1111(def_char NEXT_LEVEL3
    12   (funs (ai_fun next_level3_ai)) 
     12  (funs (ai_fun next_level3_ai))
    1313  (flags (can_block T))
    1414  (fields ("aistate" next_level))
     
    2929(def_char SW_ENDLEV
    3030  (funs (ai_fun sw_endlev_ai)
    31         (draw_fun dev_draw)) 
     31        (draw_fun dev_draw))
    3232  (fields ("aistate" next_level))
    3333  (states "art/misc.spe"
  • abuse/trunk/data-frabs/addon/leon/lisp/nguns.lsp

    r566 r582  
    1010                        (setq sgb_bright_color (find_rgb 255 245 235))
    1111                        (setq sgb_medium_color (find_rgb 150 145 140))
    12                         (if creator 
     12                        (if creator
    1313                            (progn
    1414                              (setq sgb_speed (+ sgb_speed (/ (xvel) 2)))
     
    3131                                        (setq sgb_bright_color (find_rgb 255 255 200))
    3232                                        (setq sgb_medium_color (find_rgb 150 150 0))
    33                                         (if creator 
     33                                        (if creator
    3434                                            (progn
    3535                                              (setq sgb_speed (+ sgb_speed (/ (xvel) 2)))
     
    4545                                        (setq sgb_lasty (y))
    4646                                        (setq sgb_angle angle)
    47                                        
     47
    4848                                        (setq sgb_bright_color (find_rgb 255 128 64))
    4949                                        (setq sgb_medium_color (find_rgb 255 0 0))
    50                                         (if creator 
     50                                        (if creator
    5151                                            (progn
    5252                                              (setq sgb_speed (+ sgb_speed (/ (xvel) 2)))
     
    5858                            (play_sound GRENADE_THROW 127 x y)
    5959                            (set_course angle 20)
    60                             (if creator 
     60                            (if creator
    6161                                (progn
    6262                                  (link_object creator)
     
    6464                                  (set_yvel (+ (yvel) (with_object creator (yvel))))
    6565                                  ))
    66                            
     66
    6767                            (set_frame_angle 0 359 angle)
    6868                            )))
     
    7474
    7575                            (if (and target   ;; don't link if not in line of site
    76                                      (can_see (x) (y) 
     76                                     (can_see (x) (y)
    7777                                              (with_object target (x))
    7878                                              (with_object target (y)) nil))
     
    9292                                        (setq sgb_lastx (x))
    9393                                        (setq sgb_lasty (y))
    94                                         (if creator 
     94                                        (if creator
    9595                                              (link_object creator))
    9696                                        (set_course angle 200)
     
    100100                                          (if (not (eq bx T))
    101101                                              (if (eq bx nil)
    102                                                   (add_object EXPLODE5 (- (x) (random 5)) 
     102                                                  (add_object EXPLODE5 (- (x) (random 5))
    103103                                                              (- (y) (random 5)) 0)
    104104                                                (progn
    105                                                   (add_object EXPLODE3 (- (x) (random 5)) 
     105                                                  (add_object EXPLODE3 (- (x) (random 5))
    106106                                                              (- (y) (random 5)) 0)
    107                                                   (do_damage 10 bx (* (cos sgb_angle) 20) 
     107                                                  (do_damage 10 bx (* (cos sgb_angle) 20)
    108108                                                             (* (sin sgb_angle) 10)))))
    109109                                          (setq sgb_lastx (x))
     
    118118                            (play_sound FIREBOMB_SND 127 (x) (y))
    119119                            (set_course angle 20)
    120                             (if creator 
     120                            (if creator
    121121                                (progn
    122122                                  (link_object creator)
     
    129129                                        (set_course angle 25)
    130130                                        (set_aistate angle)
    131                                         (if creator 
     131                                        (if creator
    132132                                              (link_object creator))
    133133                                        (dfris_ai)
     
    139139                                        (setq sgb_lastx (x))
    140140                                        (setq sgb_lasty (y))
    141                                         (if creator 
     141                                        (if creator
    142142                                              (link_object creator))
    143143                                        (set_course angle 45)
     
    145145                                          (if (not (eq bx T))
    146146                                              (if (not (eq bx nil))
    147                                                   (do_damage 30 bx (* (cos sgb_angle) 20) 
     147                                                  (do_damage 30 bx (* (cos sgb_angle) 20)
    148148                                                             (* (sin sgb_angle) 10)))))
    149149                                        )))
    150                            
     150
    151151
    152152          (9 (with_object (add_object STRAIT_ROCKET x y)
    153153                                      (progn
    154154                                        (play_sound MGUN_SND 127 (x) (y))
    155                                         (if creator 
     155                                        (if creator
    156156                                              (link_object creator))
    157157                                        (set_aistate angle)
     
    169169                                        (setq sgb_bright_color (find_rgb 255 0 0))
    170170                                        (setq sgb_medium_color (find_rgb 150 0 0))
    171                                         (if creator 
     171                                        (if creator
    172172                                            (progn
    173173                                              (setq sgb_speed (+ sgb_speed (/ (xvel) 2)))
     
    193193          (zap 6 16 x y (- angle 30))
    194194          )
    195           ) 
     195          )
    196196)
    197197
     
    199199  (setq sgb_lastx (x))
    200200  (setq sgb_lasty (y))
    201   (set_course sgb_angle sgb_speed) 
     201  (set_course sgb_angle sgb_speed)
    202202  (if (eq sgb_lifetime 0)
    203203      nil
     
    215215
    216216(def_char LASR_BULLET
    217   (vars sgb_speed sgb_angle sgb_lastx sgb_lasty 
     217  (vars sgb_speed sgb_angle sgb_lastx sgb_lasty
    218218        sgb_bright_color sgb_medium_color sgb_lifetime sgb_dam)
    219219  (funs (ai_fun   las_ai)
  • abuse/trunk/data-frabs/addon/leon/lisp/njug.lsp

    r566 r582  
    1111        (playerx (+ (with_object (bg) (x)) (with_object (bg) (* (xvel) 1))))
    1212        (playery (+ (- (with_object (bg) (y)) 15) (with_object (bg) (* (yvel) 1)))))
    13    
     13
    1414    (if (and (can_see (x) (y) firex firey nil) (can_see firex firey playerx playery nil))
    1515        (progn
     
    2727        (set_state dieing))
    2828    (if (activated)
    29         (progn       
     29        (progn
    3030          (set_targetable T)
    3131          (push_char 35 40)
    32           (select (aistate) 
     32          (select (aistate)
    3333                  (0 ;; prepare to walk toward player
    3434                   (if (eq stationary 0)
     
    4646                         (set_direction (toward))
    4747                         (let ((curx (x));; save position in case we fall off a cliff
    48                                (cury (y)))                   
    49                            (if (next_picture) 
     48                               (cury (y)))
     49                           (if (next_picture)
    5050                               (if (eq (current_frame) 8)
    5151                                   (play_sound JSTOMP_SND 127 (x) (y)))
     
    7474                  (3 ;; wait for fire animation
    7575                   (if (next_picture) nil (set_aistate 0))))
    76           T) 
     76          T)
    7777      (progn (set_targetable nil)
    7878             T))))
     
    8181  (setq throw_xvel 3)
    8282  (setq throw_yvel -10)
    83   (set_aitype 1))         
     83  (set_aitype 1))
    8484
    8585(def_char NJUGGER
     
    101101          ("aistate"       ai_state))
    102102
    103   (states "art/jug.spe" 
     103  (states "art/jug.spe"
    104104          (stopped "robo0001.pcx")
    105105          (running (seq "rwlk" 1 13))
  • abuse/trunk/data-frabs/addon/leon/lisp/rain.lsp

    r566 r582  
    3232
    3333  (select (aistate)
    34     (0 
     34    (0
    3535      (set_yvel (+ 100 (random 500) ) )
    3636      (set_yacel (random 3) )
    3737      (set_aistate 6)
    3838    )
    39     (4 (if (activated) 
     39    (4 (if (activated)
    4040         (go_state 0)
    4141       )
     
    4343    (6 (if (eq (state_time) (yvel) )
    4444         (progn
    45            (add_object THUNDER (with_object (bg) (x)) (with_object (bg) (y))) 
     45           (add_object THUNDER (with_object (bg) (x)) (with_object (bg) (y)))
    4646           (set_aistate 2)
    4747         )
     
    8787          (stopped "latter")))
    8888
    89 (setq THUNDER_SOUNDS (make-array 5 :initial-contents (list 
     89(setq THUNDER_SOUNDS (make-array 5 :initial-contents (list
    9090                               (def_sound "addon/leon/sfx/thunder.wav")   ;; 0
    9191                               (def_sound "addon/leon/sfx/thunder2.wav")   ;; 1
     
    110110          (stopped "latter")))
    111111
    112 (setq RAIN_SOUNDS (make-array 4 :initial-contents (list 
     112(setq RAIN_SOUNDS (make-array 4 :initial-contents (list
    113113                               (def_sound "addon/leon/sfx/rain.wav")   ;; 0
    114114                               (def_sound "addon/leon/sfx/rain2.wav")   ;; 1
  • abuse/trunk/data-frabs/addon/leon/lisp/slavesw.lsp

    r566 r582  
    11(def_char SWITCH_SLAVE
    22  (funs (ai_fun swslave_ai))
    3   (states "art/misc.spe" 
     3  (states "art/misc.spe"
    44          (stopped "0_indicator")
    55          (on_state "1_indicator")))
    6        
     6
    77(defun swslave_ai ()
    88  (if (> (total_objects) 0)
  • abuse/trunk/data-frabs/addon/leon/lisp/text.lsp

    r566 r582  
    33   ; Please keep all strings below shorter than the above line.
    44   ; Add as many strings as you like.
    5      
    6      
     5
     6
    77(defun get_message (message_num)
    8   (select message_num     
     8  (select message_num
    99   (0 "Dammit! I gotta get out of here!")
    1010   (1 "What the...")
     
    2424;                          (if (local_player) ;; Doesnt work for some reason
    2525;                              (show_help (get_message (aitype))))
    26                            ))                       
     26                           ))
    2727            (set_aistate 1)
    2828            T)
  • abuse/trunk/data-frabs/addon/newart/newart.lsp

    r566 r582  
    22
    33(load_tiles
    4           "addon/newart/frabs_1.spe" 
    5             "addon/newart/frabs_2.spe" 
     4          "addon/newart/frabs_1.spe"
     5            "addon/newart/frabs_2.spe"
    66            "addon/newart/final.spe"
    77            "addon/newart/mtile.spe"
    88            "addon/newart/stones.spe"
    9 ) 
     9)
    1010
    1111;; Background
    1212
    1313(load_tiles
    14           "addon/newart/frbsblue.spe" 
    15             "addon/newart/blcave.spe" 
     14          "addon/newart/frbsblue.spe"
     15            "addon/newart/blcave.spe"
    1616            "addon/newart/space.spe"
    17 ) 
     17)
  • abuse/trunk/data-frabs/addon/pong/common.lsp

    r44 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 --
     
    1111    (draw)
    1212    (set_y y)))
    13        
     13
    1414
    1515
     
    3838    nil)
    3939  T)
    40    
     40
    4141
    4242
     
    4444  (funs  (ai_fun   lhold_ai)
    4545         (draw_fun dev_draw))
    46   (states "art/misc.spe"         
     46  (states "art/misc.spe"
    4747          (stopped           "lhold")))
    4848
    4949
    5050
    51 (def_char OBJ_MOVER 
     51(def_char OBJ_MOVER
    5252  (funs (ai_fun       mover_ai)
    5353        (constructor  mover_cons)
     
    5858  (states "art/misc.spe" (stopped '("mover" "mover" ))))
    5959
    60 /*    Compiled C           
     60/*    Compiled C
    6161(defun mover_ai ()
    6262  (if (eq (total_objects) 2)
    6363      (let ((dest (get_object 0))
    6464            (mover (get_object 1)))
    65         (if (< (aistate) 2)             ; transfer object to next mover       
     65        (if (< (aistate) 2)             ; transfer object to next mover
    6666            (progn
    67               (with_object dest 
     67              (with_object dest
    6868                           (progn
    6969                             (link_object mover)
    7070                             (set_aistate (aitype))))
    7171              (remove_object mover))
    72           (progn             
     72          (progn
    7373            (set_aistate (- (aistate) 1))
    7474            (let ((newx (- (with_object dest (x)) (/ (* (- (with_object dest (x)) (x)) (aistate)) (aitype))))
    7575                  (newy (- (with_object dest (y)) (/ (* (- (with_object dest (y)) (y)) (aistate)) (aitype)))))
    76               (with_object mover 
    77                            (progn 
     76              (with_object mover
     77                           (progn
    7878                             (platform_push (- newx (x)) (- newy (y)))
    7979                             (set_x newx)
     
    9292      (let ((last (get_object (- x 1))))   ; see if the last object has the same position as us
    9393        (if (and (eq (with_object last (x)) (x)) (eq (with_object last (y)) (y)))
    94             (if (eq (aistate) 1)                       
     94            (if (eq (aistate) 1)
    9595                (if (eq (with_object last (fade_count)) 0)
    9696                    (set_aistate 1)
     
    107107  T)
    108108
    109 (defun respwan_cons () (set_xvel 50)) 
     109(defun respwan_cons () (set_xvel 50))
    110110
    111111
    112 (def_char RESPAWN 
     112(def_char RESPAWN
    113113  (funs (ai_fun      respawn_ai)
    114         (draw_fun    dev_draw) 
     114        (draw_fun    dev_draw)
    115115        (constructor respwan_cons))
    116116  (flags (unlistable T))
  • abuse/trunk/data-frabs/addon/pong/pong.lsp

    r566 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
     
    5858(setq pong_dir "addon/pong/")  ; in case we change the location of these files later
    5959                               ; this is always a very good idea to do because the user of
    60                                ; this program may/may not be able to install into this directory       
     60                               ; this program may/may not be able to install into this directory
    6161(setq pong_art (concatenate 'string pong_dir "pong.spe"))  ; all artwork is in this file
    6262
     
    106106      (let ((this-digit (/ score digs_left)))
    107107        (put_image x y (aref nums this-digit))
    108         (show_score (+ x (image_width (aref nums this-digit))) y 
     108        (show_score (+ x (image_width (aref nums this-digit))) y
    109109                    (/ digs_left 10) (- score (* digs_left this-digit))))))
    110110
     
    143143          (blow_up_tile tilex (+ tiley 1))
    144144          (blow_up_tile (+ tilex 1) tiley)))
    145              
     145
    146146    (with_object (bg) (add_hp 10))           ; give player points
    147147
     
    155155(defun check_collide (status)    ;; returns T if we hit something
    156156  (if (not (eq status T))                                  ; did we hit anything?
    157       (if (eq (car (cdr status)) 'object)                  ; did we hit an object?           
     157      (if (eq (car (cdr status)) 'object)                  ; did we hit an object?
    158158          (let ((object (car (cdr (cdr status)))))
    159159            (if (eq (with_object object (otype)) PADDLE)   ; did we hit the paddle?
     
    163163                      (if (> 20 (aistate)) (set_aistate 20)
    164164                        (if (< 160 (aistate)) (set_aistate 160)))
    165                       T) 
     165                      T)
    166166                  nil)
    167167              nil)
     
    185185(defun move_ball ()  ;; returns status of move
    186186  (let ((status (float_tick)))
    187     (if (not (eq status T))   ; T means we did not hit anything 
     187    (if (not (eq status T))   ; T means we did not hit anything
    188188        (let ((block_flags (car status)))
    189189          (if (or (blocked_left block_flags) (blocked_right block_flags)) ; bounce left/right
     
    208208  (select (aitype)
    209209          (0  ; normal play, bounce around and stuff..
    210            (check_collide (move_ball))             
     210           (check_collide (move_ball))
    211211           (if (> (y) 240)  ; check to see if we are dead
    212212               (progn
     
    221221                     T)))
    222222             T))
    223                  
     223
    224224           (1 ; ball is dead - go to paddle and fade in
    225225            (set_x (with_object (bg) (x)))
     
    229229                (set_aitype 0))
    230230            T)))
    231          
     231
    232232
    233233(def_char BALL
     
    253253      (mover xm 0 0)
    254254    0))
    255      
     255
    256256
    257257(def_char PADDLE
     
    280280  (next_picture)
    281281  (if (touching_bg)  ; are we touching the paddle
    282       (progn 
     282      (progn
    283283        (add_score 1000)
    284284        (with_object (add_object BALL (x) (y) 1) (progn (set_fade_count 15) (set_aistate 80)))
     
    327327(create_players PADDLE)
    328328(set_first_level (get_level_name current_level))
    329 (gc)    ; garbage collect 
     329(gc)    ; garbage collect
    330330(tmp-space)
    331331
  • abuse/trunk/data-frabs/addon/pong/userfuns.lsp

    r44 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
     
    2424    (reverse-seq name first last))
    2525)
    26 (defun forward-seq (name first last) 
    27   (if (> first last) 
    28       nil 
    29     (cons (concatenate 'string name (digstr first 4) ".pcx") 
     26(defun forward-seq (name first last)
     27  (if (> first last)
     28      nil
     29    (cons (concatenate 'string name (digstr first 4) ".pcx")
    3030          (forward-seq name (+ 1 first) last))))
    31 (defun reverse-seq (name last first) 
    32   (if (< last first) 
    33       nil 
    34     (cons (concatenate 'string name (digstr last 4) ".pcx") 
     31(defun reverse-seq (name last first)
     32  (if (< last first)
     33      nil
     34    (cons (concatenate 'string name (digstr last 4) ".pcx")
    3535          (reverse-seq name (- last 1) first))))
    3636
  • abuse/trunk/data-frabs/addon/twist/f2ai.lsp

    r566 r582  
    5757
    5858(defun gravity_sensor_draw ()
    59   (if (edit_mode) 
     59  (if (edit_mode)
    6060      (progn
    6161        (draw)
     
    9494
    9595(defun health_sensor_draw ()
    96   (if (edit_mode) 
     96  (if (edit_mode)
    9797      (progn
    9898        (draw)
     
    130130
    131131(defun level_sensor_draw ()
    132   (if (edit_mode) 
     132  (if (edit_mode)
    133133      (progn
    134134        (draw)
     
    149149        (setq fire_time (- fire_time 1))
    150150        (if (eq fire_time 0)
    151             (progn 
     151            (progn
    152152              (setq burst_left burst_total)
    153153              (setq burst_wait 0))))
     
    162162
    163163
    164 (defun wrob2_cons ()     
     164(defun wrob2_cons ()
    165165  (setq fire_delay 4)
    166166  (setq burst_delay 1)
     
    186186                   (set_aistate 1))))
    187187              (1;; stop and fire
    188                (burst_fire  (+ (x) (* (direction) 28)) (- (y) 35)                     
     188               (burst_fire  (+ (x) (* (direction) 28)) (- (y) 35)
    189189                            (if (> (direction) 0)
    190190                                (mod (- 375 (/ (* burst_left 30) burst_total)) 360)
     
    206206                           (set_state running)
    207207                           (set_aistate 1))
    208                
     208
    209209                     (if (with_object (bg) (pressing_action_key))
    210210                         (progn
     
    218218                         (y (- (y) 16))
    219219                         (fade (if (< (current_frame) 16) (current_frame) 15)))
    220                      (with_object (get_object 1) 
     220                     (with_object (get_object 1)
    221221                                  (progn
    222                                     (set_x x) 
    223                                     (set_y y) 
     222                                    (set_x x)
     223                                    (set_y y)
    224224                                    (user_fun SET_FADE_COUNT fade)
    225225                                    (setq is_teleporting 1)
    226226                                    )))
    227                                  
     227
    228228                 (let ((x (with_object (get_object 0) (x)))
    229                        (y (with_object (get_object 0) (- (y) 16))))               
     229                       (y (with_object (get_object 0) (- (y) 16))))
    230230                   (with_object (get_object 1)
    231                                 (progn 
     231                                (progn
    232232                                  (set_x x)
    233233                                  (set_y y)
     
    246246
    247247(defun teleport_sensor_draw ()
    248   (if (edit_mode) 
     248  (if (edit_mode)
    249249      (progn
    250250        (draw)
  • abuse/trunk/data-frabs/addon/twist/f2chars.lsp

    r566 r582  
    7474  (flags (hurtable T))
    7575  (abilities (start_hp 40))
    76   (vars fire_delay burst_delay burst_total burst_wait burst_left 
     76  (vars fire_delay burst_delay burst_total burst_wait burst_left
    7777        max_xvel   max_yvel    smoke_time fire_time)
    7878  (fields ("fire_delay"  who_fdelay)
     
    8484          ("aitype"      ai_type)
    8585          ("aistate"     ai_state))
    86  
     86
    8787  (range 200 200)
    8888  (states "addon/twist/art/robs.spe"
     
    9595(def_char WALK_ROB2
    9696  (funs (ai_fun wrob2_ai)
    97         (constructor wrob2_cons)       
     97        (constructor wrob2_cons)
    9898        (damage_fun  guner_damage))
    9999  (abilities (run_top_speed 12)
     
    101101  (flags (hurtable T))
    102102  (range 300 100)
    103   (vars fire_delay burst_delay burst_total burst_wait burst_left 
     103  (vars fire_delay burst_delay burst_total burst_wait burst_left
    104104        max_xvel   max_yvel    smoke_time fire_time)
    105105  (fields ("fire_delay"   wrob_fdelay)
     
    111111          ("aistate"      ai_state))
    112112
    113   (states "art/rob2.spe" 
     113  (states "art/rob2.spe"
    114114          (stopped "wwlk0001.pcx")
    115115          (running (seq "wwlk" 1 10))
  • abuse/trunk/data-frabs/addon/twist/lisp/ai.lsp

    r566 r582  
    88
    99
    10 (defun mantrack_ai () 
     10(defun mantrack_ai ()
    1111(if (<= (total_objects) 0)
    1212      nil
     
    3131                                              (- angle pangle)
    3232                                            (+ angle (- 360 pangle)))))
    33                           (let ((closest_dist (if (> clock_dist 180) 
     33                          (let ((closest_dist (if (> clock_dist 180)
    3434                                                  (- 360 clock_dist)
    3535                                                clock_dist)))
     
    4040                                  (track_set_angle (mod (+ angle angle_add) 360))
    4141                                (track_set_angle (mod (+ (- angle angle_add) 360) 360)))
    42                               (if (< angle_add 5);; pretty close to target, FIRE!                               
     42                              (if (< angle_add 5);; pretty close to target, FIRE!
    4343                                  (track_fire))))))
    4444                    (setq fire_delay_left (- fire_delay_left 1)))
     
    7171                       (set_state stopped))))
    7272                  (1;; unfold
    73                    (if (next_picture) T 
     73                   (if (next_picture) T
    7474                     (progn (set_aistate 3)
    7575                            (set_state spray.aim)
     
    7878                            )))
    7979                  (2;; fold up
    80                    (if (next_picture) T 
     80                   (if (next_picture) T
    8181                     (progn (set_state stopped)
    8282                            (set_aistate 0))))
     
    116116                   (set_aistate 1)))
    117117             (next_picture))
    118           (1 (next_picture) 
     118          (1 (next_picture)
    119119             (if (eq (state_time) 5)
    120120                 (progn
     
    195195
    196196(defun music_sensor_draw ()
    197   (if (edit_mode) 
     197  (if (edit_mode)
    198198      (progn
    199199        (draw)
     
    228228
    229229(defun gravity_sensor_draw ()
    230   (if (edit_mode) 
     230  (if (edit_mode)
    231231      (progn
    232232        (draw)
     
    265265
    266266(defun health_sensor_draw ()
    267   (if (edit_mode) 
     267  (if (edit_mode)
    268268      (progn
    269269        (draw)
     
    301301
    302302(defun level_sensor_draw ()
    303   (if (edit_mode) 
     303  (if (edit_mode)
    304304      (progn
    305305        (draw)
     
    433433        (setq fire_time (- fire_time 1))
    434434        (if (eq fire_time 0)
    435             (progn 
     435            (progn
    436436              (setq burst_left burst_total)
    437437              (setq burst_wait 0))))
     
    446446
    447447
    448 (defun wrob_cons ()       
     448(defun wrob_cons ()
    449449  (setq fire_delay 4)
    450450  (setq burst_delay 1)
     
    471471                   (set_aistate 1))))
    472472              (1;; stop and fire
    473                (burst_fire  (+ (x) (* (direction) 28)) (- (y) 35)                     
     473               (burst_fire  (+ (x) (* (direction) 28)) (- (y) 35)
    474474                            (if (> (direction) 0)
    475475                                (mod (- 375 (/ (* burst_left 30) burst_total)) 360)
     
    491491                           (set_state running)
    492492                           (set_aistate 1))
    493                
     493
    494494                     (if (with_object (bg) (pressing_action_key))
    495495                         (progn
     
    503503                         (y (- (y) 16))
    504504                         (fade (if (< (current_frame) 16) (current_frame) 15)))
    505                      (with_object (get_object 1) 
     505                     (with_object (get_object 1)
    506506                                  (progn
    507                                     (set_x x) 
    508                                     (set_y y) 
     507                                    (set_x x)
     508                                    (set_y y)
    509509                                    (user_fun SET_FADE_COUNT fade)
    510510                                    (setq is_teleporting 1)
    511511                                    )))
    512                                  
     512
    513513                 (let ((x (with_object (get_object 0) (x)))
    514                        (y (with_object (get_object 0) (- (y) 16))))               
     514                       (y (with_object (get_object 0) (- (y) 16))))
    515515                   (with_object (get_object 1)
    516                                 (progn 
     516                                (progn
    517517                                  (set_x x)
    518518                                  (set_y y)
     
    531531
    532532(defun teleport_sensor_draw ()
    533   (if (edit_mode) 
     533  (if (edit_mode)
    534534      (progn
    535535        (draw)
  • abuse/trunk/data-frabs/addon/twist/lisp/chars.lsp

    r566 r582  
    1515  (range 250 20)
    1616  (draw_range 40 40)
    17   (funs (ai_fun     ant_ai)     
     17  (funs (ai_fun     ant_ai)
    1818        (draw_fun   man_draw)
    1919        (constructor ant_cons)
     
    3030             (push_xrange     1)
    3131             (jump_top_speed 20))
    32  
     32
    3333  (flags (hurtable  T)
    3434         (force_health T))
    3535
    36   (states "art/cop.spe" 
     36  (states "art/cop.spe"
    3737          (hanging      (seq "stopped" 1 6))
    3838
    3939          (fall_start   "jump_down")
    4040          (falling      "jump_down")
    41          
     41
    4242          (stopped      (seq "stopped" 1 6))
    4343          (running      (seq "4wlk" 1 10))
     
    8080          ("aistate"       ai_state))
    8181
    82   (states "addon/twist/art/legs.spe" 
     82  (states "addon/twist/art/legs.spe"
    8383          (stopped      (seq "stopped" 1 6))
    8484          (running      (seq "4wlk" 1 10))
     
    9595  (flags (hurtable T))
    9696  (abilities (start_hp 100))
    97   (vars fire_delay burst_delay burst_total burst_wait burst_left 
     97  (vars fire_delay burst_delay burst_total burst_wait burst_left
    9898        max_xvel   max_yvel    smoke_time fire_time)
    9999  (fields ("fire_delay"  who_fdelay)
     
    105105          ("aitype"      ai_type)
    106106          ("aistate"     ai_state))
    107  
     107
    108108  (range 200 200)
    109109  (states "art/cop.spe"
     
    115115
    116116(def_char MAN_BODYTRACK
    117   (vars 
     117  (vars
    118118        fire_delay
    119119        fire_delay_left
     
    130130        (constructor track_cons)
    131131        (draw_fun    man_draw)
    132         (damage_fun   guner_damage))   
     132        (damage_fun   guner_damage))
    133133
    134134  (flags (can_block  T)
     
    170170        spray.end_angle
    171171        spray.angle_speed
    172         spray.angle)     
     172        spray.angle)
    173173
    174174  (fields ("hp"                 ai_health)
     
    307307  (flags (hurtable T))
    308308  (abilities (start_hp 40))
    309   (vars fire_delay burst_delay burst_total burst_wait burst_left 
     309  (vars fire_delay burst_delay burst_total burst_wait burst_left
    310310        max_xvel   max_yvel    smoke_time fire_time)
    311311  (fields ("fire_delay"  who_fdelay)
     
    317317          ("aitype"      ai_type)
    318318          ("aistate"     ai_state))
    319  
     319
    320320  (range 200 200)
    321321  (states "addon/twist/art/robs.spe"
     
    328328(def_char WALK_ROB
    329329  (funs (ai_fun wrob_ai)
    330         (constructor wrob_cons) 
     330        (constructor wrob_cons)
    331331        (damage_fun  guner_damage))
    332332  (abilities (run_top_speed 12)
     
    334334  (flags (hurtable T) (can_block (not T)))
    335335  (range 300 100)
    336   (vars fire_delay burst_delay burst_total burst_wait burst_left 
     336  (vars fire_delay burst_delay burst_total burst_wait burst_left
    337337        max_xvel   max_yvel    smoke_time fire_time)
    338338  (fields ("fire_delay"   wrob_fdelay)
     
    344344          ("aistate"      ai_state))
    345345
    346   (states "art/rob2.spe" 
     346  (states "art/rob2.spe"
    347347          (stopped "wwlk0001.pcx")
    348348          (running (seq "wwlk" 1 10))
  • abuse/trunk/data-frabs/addon/twist/lisp/english.lsp

    r566 r582  
    1313
    1414         (defun get_train_msg (message_num)
    15            (select message_num   
     15           (select message_num
    1616                   ;   0123456789012345678901234567890123456789012345678901234567890123456789
    1717                   ;  "--------------------------------------------------------------------"  ; V-A
     
    3232
    3333         (setq plot_start
    34                (concatenate 'string 
     34               (concatenate 'string
    3535                            " Nick Vrenna has pulled the switch and diverted the water supply. The spread "
    3636                            "of Abuse may be over. He has gotten himself into the deepest underground prision "
    37                             "levels and battled against the mutants to save the outside world.\\n"                         
     37                            "levels and battled against the mutants to save the outside world.\\n"
    3838                            " As he leaves the Control Room, a mutant leaped onto him and slashed his wrist. "
    3939                            "He gave the mutant a lethal blow in the head. He took a look at his wrist. There was "
     
    4646                            "Profound Corp "))
    4747         (setq plot_middle
    48                (concatenate 'string 
     48               (concatenate 'string
    4949                            "You have survived the initial outbreak, but you are still lost deep "
    50                             "within the prison. So far it's been suspiciously easy. \\n"       
     50                            "within the prison. So far it's been suspiciously easy. \\n"
    5151                            "If you want to break out - the real ABUSE lies ahead. "))
    5252         (setq plot_end
    53                (concatenate 'string 
     53               (concatenate 'string
    5454                            "You've survived impossible odds and made it to the Control Room.  "
    5555                            "By pulling the switch, you have diverted the water supply and stopped the spread of Abuse!\\n "
  • abuse/trunk/data-frabs/addon/twist/lisp/f2ai.lsp

    r566 r582  
    6969
    7070(defun music_sensor_draw ()
    71   (if (edit_mode) 
     71  (if (edit_mode)
    7272      (progn
    7373        (draw)
     
    102102
    103103(defun gravity_sensor_draw ()
    104   (if (edit_mode) 
     104  (if (edit_mode)
    105105      (progn
    106106        (draw)
     
    139139
    140140(defun health_sensor_draw ()
    141   (if (edit_mode) 
     141  (if (edit_mode)
    142142      (progn
    143143        (draw)
     
    175175
    176176(defun level_sensor_draw ()
    177   (if (edit_mode) 
     177  (if (edit_mode)
    178178      (progn
    179179        (draw)
     
    307307        (setq fire_time (- fire_time 1))
    308308        (if (eq fire_time 0)
    309             (progn 
     309            (progn
    310310              (setq burst_left burst_total)
    311311              (setq burst_wait 0))))
     
    320320
    321321
    322 (defun wrob_cons ()       
     322(defun wrob_cons ()
    323323  (setq fire_delay 4)
    324324  (setq burst_delay 1)
     
    345345                   (set_aistate 1))))
    346346              (1;; stop and fire
    347                (burst_fire  (+ (x) (* (direction) 28)) (- (y) 35)                     
     347               (burst_fire  (+ (x) (* (direction) 28)) (- (y) 35)
    348348                            (if (> (direction) 0)
    349349                                (mod (- 375 (/ (* burst_left 30) burst_total)) 360)
     
    365365                           (set_state running)
    366366                           (set_aistate 1))
    367                
     367
    368368                     (if (with_object (bg) (pressing_action_key))
    369369                         (progn
     
    377377                         (y (- (y) 16))
    378378                         (fade (if (< (current_frame) 16) (current_frame) 15)))
    379                      (with_object (get_object 1) 
     379                     (with_object (get_object 1)
    380380                                  (progn
    381                                     (set_x x) 
    382                                     (set_y y) 
     381                                    (set_x x)
     382                                    (set_y y)
    383383                                    (user_fun SET_FADE_COUNT fade)
    384384                                    (setq is_teleporting 1)
    385385                                    )))
    386                                  
     386
    387387                 (let ((x (with_object (get_object 0) (x)))
    388                        (y (with_object (get_object 0) (- (y) 16))))               
     388                       (y (with_object (get_object 0) (- (y) 16))))
    389389                   (with_object (get_object 1)
    390                                 (progn 
     390                                (progn
    391391                                  (set_x x)
    392392                                  (set_y y)
     
    405405
    406406(defun teleport_sensor_draw ()
    407   (if (edit_mode) 
     407  (if (edit_mode)
    408408      (progn
    409409        (draw)
  • abuse/trunk/data-frabs/addon/twist/lisp/f2chars.lsp

    r566 r582  
    1515  (range 250 20)
    1616  (draw_range 40 40)
    17   (funs (ai_fun     ant_ai)     
     17  (funs (ai_fun     ant_ai)
    1818        (draw_fun   man_draw)
    1919        (constructor ant_cons)
     
    3030             (push_xrange     1)
    3131             (jump_top_speed 20))
    32  
     32
    3333  (flags (hurtable  T)
    3434         (force_health T))
    3535
    36   (states "art/cop.spe" 
     36  (states "art/cop.spe"
    3737          (hanging      (seq "stopped" 1 6))
    3838
    3939          (fall_start   "jump_down")
    4040          (falling      "jump_down")
    41          
     41
    4242          (stopped      (seq "stopped" 1 6))
    4343          (running      (seq "4wlk" 1 10))
     
    8080          ("aistate"       ai_state))
    8181
    82   (states "addon/twist/art/legs.spe" 
     82  (states "addon/twist/art/legs.spe"
    8383          (stopped      (seq "stopped" 1 6))
    8484          (running      (seq "4wlk" 1 10))
     
    9595  (flags (hurtable T))
    9696  (abilities (start_hp 100))
    97   (vars fire_delay burst_delay burst_total burst_wait burst_left 
     97  (vars fire_delay burst_delay burst_total burst_wait burst_left
    9898        max_xvel   max_yvel    smoke_time fire_time)
    9999  (fields ("fire_delay"  who_fdelay)
     
    105105          ("aitype"      ai_type)
    106106          ("aistate"     ai_state))
    107  
     107
    108108  (range 200 200)
    109109  (states "art/cop.spe"
     
    115115
    116116(def_char MAN_BODYTRACK
    117   (vars 
     117  (vars
    118118        fire_delay
    119119        fire_delay_left
     
    130130        (constructor track_cons)
    131131        (draw_fun    man_draw)
    132         (damage_fun   guner_damage))   
     132        (damage_fun   guner_damage))
    133133
    134134  (flags (can_block  T)
     
    170170        spray.end_angle
    171171        spray.angle_speed
    172         spray.angle)     
     172        spray.angle)
    173173
    174174  (fields ("hp"                 ai_health)
     
    307307  (flags (hurtable T))
    308308  (abilities (start_hp 40))
    309   (vars fire_delay burst_delay burst_total burst_wait burst_left 
     309  (vars fire_delay burst_delay burst_total burst_wait burst_left
    310310        max_xvel   max_yvel    smoke_time fire_time)
    311311  (fields ("fire_delay"  who_fdelay)
     
    317317          ("aitype"      ai_type)
    318318          ("aistate"     ai_state))
    319  
     319
    320320  (range 200 200)
    321321  (states "addon/twist/art/robs.spe"
     
    328328(def_char WALK_ROB
    329329  (funs (ai_fun wrob_ai)
    330         (constructor wrob_cons) 
     330        (constructor wrob_cons)
    331331        (damage_fun  guner_damage))
    332332  (abilities (run_top_speed 12)
     
    334334  (flags (hurtable T))
    335335  (range 300 100)
    336   (vars fire_delay burst_delay burst_total burst_wait burst_left 
     336  (vars fire_delay burst_delay burst_total burst_wait burst_left
    337337        max_xvel   max_yvel    smoke_time fire_time)
    338338  (fields ("fire_delay"   wrob_fdelay)
     
    344344          ("aistate"      ai_state))
    345345
    346   (states "art/rob2.spe" 
     346  (states "art/rob2.spe"
    347347          (stopped "wwlk0001.pcx")
    348348          (running (seq "wwlk" 1 10))
  • abuse/trunk/data-frabs/addon/twist/lisp/input.lsp

    r566 r582  
    2828;;   "Home","End","Del","F1","F2","F3","F4","F5","F6",
    2929;;   "F7","F8","F9","F10","Insert"
    30 ;;   "a", "b", "c", ... 
     30;;   "a", "b", "c", ...
    3131;; though not all of these keys will work on all operating systems
    3232
     
    101101                                                                        (eq (with_object (bg) (state)) climbing)
    102102                                                                        (eq (with_object (bg) (state)) climb_off)
    103                                                                         (eq (with_object (bg) (state)) climb_on) )))   
     103                                                                        (eq (with_object (bg) (state)) climb_on) )))
    104104                (progn
    105105                (setq dray_has_fired 1)
     
    111111
    112112  (let ((mstat (mouse_stat)))
    113     (list (if (local_key_pressed left-key) -1 (if (local_key_pressed right-key) 1 0))  ;; xv 
     113    (list (if (local_key_pressed left-key) -1 (if (local_key_pressed right-key) 1 0))  ;; xv
    114114          (if (local_key_pressed up-key) -1   (if (local_key_pressed down-key)  1 0))  ;; yv
    115115          (eq (fourth mstat) 1)                                            ;; special button
    116116          (eq (third mstat) 1)                                             ;; fire button
    117           (if (or (eq (fifth mstat) 1) 
     117          (if (or (eq (fifth mstat) 1)
    118118                  (local_key_pressed weapon-left-key)) -1                             ;; weapon toggle
    119119              (if (local_key_pressed weapon-right-key)  1 0))
  • abuse/trunk/data-frabs/addon/twist/lisp/light.lsp

    r566 r582  
    1414
    1515(def_char QUICK_EXP_LIGHT
    16   (funs (ai_fun   quick_explo_light) 
     16  (funs (ai_fun   quick_explo_light)
    1717        (draw_fun dev_draw))
    1818  (flags (unlistable T))
  • abuse/trunk/data-frabs/addon/twist/lisp/mario.lsp

    r566 r582  
    3131        (set_state dieing))
    3232    (if (activated)
    33         (progn       
     33        (progn
    3434          (set_targetable T)
    3535          (push_char 35 40)
    36           (select (aistate) 
     36          (select (aistate)
    3737                  (0 ;; prepare to walk toward player
    3838                   (if (eq stationary 0)
     
    5050                         (set_direction (toward))
    5151                         (let ((curx (x));; save position in case we fall off a cliff
    52                                (cury (y)))                   
    53                            (if (next_picture) 
     52                               (cury (y)))
     53                           (if (next_picture)
    5454                               (if (eq (current_frame) 99) ;; The sound wont play anyway
    5555                                   (play_sound JSTOMP_SND 127 (x) (y)));; bc there's 9 frames
     
    7373                             (xspeed (* throw_xvel (direction)))
    7474                             (yspeed throw_yvel))
    75                          (with_object (add_object MARIO_FIREBALL (+ (x) (* (direction) 20)) (- (y) 5) 1) 
     75                         (with_object (add_object MARIO_FIREBALL (+ (x) (* (direction) 20)) (- (y) 5) 1)
    7676                                      (progn
    7777                                        (user_fun myself)
     
    8282                  (3 ;; wait for fire animation
    8383                   (if (next_picture) nil (set_aistate 0))))
    84           T) 
     84          T)
    8585      (progn (set_targetable nil)
    8686             T))))
     
    105105        (progn
    106106          (next_picture)
    107           (set_yvel (+ (yvel) 1))         
     107          (set_yvel (+ (yvel) 1))
    108108          (let ((old_yv  (yvel))
    109109                (old_xv  (xvel))
     
    120120              (set_y new_y))
    121121            (hurt_radius (x) (y) 20 10 (me) 15)
    122             (if (not (eq status T));; T means we did not hit anything   
     122            (if (not (eq status T));; T means we did not hit anything
    123123                (let ((block_flags (car status)))
    124124                  (if (or (blocked_up block_flags) (blocked_down block_flags));; bounce up/down
     
    203203        (next_picture)
    204204        (if (and (eq (direction) 1) (blocked_right (move 1 0 0))) (set_direction -1))
    205         (if (and (eq (direction) -1) (blocked_left (move -1 0 0))) (set_direction 1))   
     205        (if (and (eq (direction) -1) (blocked_left (move -1 0 0))) (set_direction 1))
    206206        T) ))
    207207
     
    294294          ("aistate"       ai_state))
    295295
    296   (states "addon/twist/art/mario.spe" 
     296  (states "addon/twist/art/mario.spe"
    297297          (stopped "ms.bmp")
    298298          (running '("mr0001.bmp" "mr0002.bmp" "mr0003.bmp"
     
    320320          ("aistate"       ai_state))
    321321
    322   (states "addon/twist/art/mario.spe" 
     322  (states "addon/twist/art/mario.spe"
    323323          (stopped "ls.bmp")
    324324          (running '("lr0001.bmp" "lr0002.bmp" "lr0003.bmp"
     
    339339  (range 200 200)
    340340  (abilities (start_hp 1))
    341   (fields ("xvel" ai_xvel)       
     341  (fields ("xvel" ai_xvel)
    342342          ("yvel" ai_yvel)
    343343          ("hp"   ai_health)
     
    352352         (hurtable  T))
    353353  (abilities (start_hp 2))
    354   (fields ("aitype" "Power 0=nil,1=cn,2=fl,3=td,4=st")   
     354  (fields ("aitype" "Power 0=nil,1=cn,2=fl,3=td,4=st")
    355355          ("yacel" "Fade Count"))
    356356  (states "addon/twist/art/mario.spe"
     
    373373         (hurtable  T))
    374374  (abilities (start_hp 2))
    375   (fields ("aitype" "Power 0=nil,1=cn,2=fl,3=td,4=st")   
     375  (fields ("aitype" "Power 0=nil,1=cn,2=fl,3=td,4=st")
    376376          ("yacel" "Fade Count"))
    377377  (states "addon/twist/art/mario.spe"
  • abuse/trunk/data-frabs/addon/twist/lisp/startup.lsp

    r566 r582  
    77(setq load_warn nil)
    88
    9 (if (local_load "addon/deathmat/username.lsp") 
     9(if (local_load "addon/deathmat/username.lsp")
    1010  (set_login username))
    1111
    12 (if (local_load "addon/deathmat/gamename.lsp") 
     12(if (local_load "addon/deathmat/gamename.lsp")
    1313  (set_game_name gamename)
    1414  (set_game_name "Munir's Game"))
  • abuse/trunk/data-frabs/addon/twist/lisp/tints.lsp

    r566 r582  
    33
    44
    5 (setq man_tints (make-array 11 :initial-contents (list 
     5(setq man_tints (make-array 11 :initial-contents (list
    66                                                 normal_tint
    77                                                 (def_tint "art/tints/cop/pinkish.spe")
  • abuse/trunk/data-frabs/addon/twist/lisp/userfuns.lsp

    r566 r582  
    88    (reverse-seqbmp name first last)))
    99
    10 (defun forward-seqbmp (name first last) 
    11   (if (> first last) 
    12       nil 
    13     (cons (concatenate 'string name (digstr first 4) ".bmp") 
     10(defun forward-seqbmp (name first last)
     11  (if (> first last)
     12      nil
     13    (cons (concatenate 'string name (digstr first 4) ".bmp")
    1414          (forward-seqbmp name (+ 1 first) last))))
    1515
    16 (defun reverse-seqbmp (name last first) 
    17   (if (< last first) 
    18       nil 
    19     (cons (concatenate 'string name (digstr last 4) ".bmp") 
     16(defun reverse-seqbmp (name last first)
     17  (if (< last first)
     18      nil
     19    (cons (concatenate 'string name (digstr last 4) ".bmp")
    2020          (reverse-seqbmp name (- last 1) first))))
  • abuse/trunk/data-frabs/addon/twist/lisp/weapons.lsp

    r566 r582  
    7171        (c2 (find_rgb 70 59 67))
    7272        (c3 (find_rgb 147 155 195)))
    73                 (let ((target (with_object (me) (find_object_in_area 
     73                (let ((target (with_object (me) (find_object_in_area
    7474                                      (- (x) 50) (- (y) 50)
    7575                                      (+ (x) 50) (+ (y) 50) object_destroyable_list))))
     
    7979    (draw_line (with_object target (x)) (with_object target (-(y)(/(picture_height)2))) (x) (-(y)10) 187)
    8080    (draw_line (with_object target (+ (x) 1)) (with_object target (-(y)(/(picture_height)2))) (+(x)1) (-(y)10) 239)
    81         (add_object EXPDRL (with_object target (-(+(x)10)(random 20))) (with_object target (- (+ (-(y)(/(picture_height)2)) 10) (random 20))) 1)               
     81        (add_object EXPDRL (with_object target (-(+(x)10)(random 20))) (with_object target (- (+ (-(y)(/(picture_height)2)) 10) (random 20))) 1)
    8282        (hurt_radius (with_object target (x)) (with_object target (y)) 1 2 (bg) 15)
    8383          )
     
    9090
    9191(defun death_ray_cache (type)
    92   (list (list EXPDRAY QUICK_EXP_LIGHT) 
     92  (list (list EXPDRAY QUICK_EXP_LIGHT)
    9393        (list DEATH_RAY_SND)))
    9494
     
    129129  (let ((amount (get_ability start_hp)))
    130130    (with_object (bg)
    131                  (progn 
     131                 (progn
    132132                   (if (and (not (has_weapon type)) change_on_pickup)
    133133                       (progn
    134134                         (if (or (get_option "-f") (eq enableammoandweapons 1)) (give_weapon type))
    135135                         (if (or (get_option "-f") (eq enableammoandweapons 1)) (set_current_weapon type))
    136                         )                                   
     136                        )
    137137                     (if (or (get_option "-f") (eq enableammoandweapons 1)) (give_weapon type))
    138138                        )
     
    142142  (let ((amount (get_ability start_hp)))
    143143    (with_object (bg)
    144                  (progn 
     144                 (progn
    145145                   (if (and (not (has_weapon type)) change_on_pickup)
    146146                       (progn
    147147                         (give_weapon type)
    148                          (set_current_weapon type))                                 
     148                         (set_current_weapon type))
    149149                     (give_weapon type))
    150150                   (add_ammo type amount)))))
    151151
    152152
    153 (defun weapon_icon_ai () 
     153(defun weapon_icon_ai ()
    154154  (if (eq0 (aistate))
    155155      (if (activated)
     
    159159                (set_aistate 1))
    160160
    161             (if (touching_bg) 
     161            (if (touching_bg)
    162162                (progn
    163163                  (play_sound AMMO_SND 127 (x) (y))
     
    165165                          (MBULLET_ICON5   (giver 0));; these numbers correspond to status bar position
    166166                          (MBULLET_ICON20  (giver 0))
    167                           (GRENADE_ICON2   (giver 1))           
     167                          (GRENADE_ICON2   (giver 1))
    168168                          (GRENADE_ICON10  (giver 1))
    169169
     
    191191              T))
    192192        T)
    193     (if (touching_bg) 
     193    (if (touching_bg)
    194194        (progn
    195195          (play_sound AMMO_SND 127 (x) (y))
     
    197197                  (MBULLET_ICON5   (giver 0));; these numbers correspond to status bar position
    198198                  (MBULLET_ICON20  (giver 0))
    199                   (GRENADE_ICON2   (giver 1))           
     199                  (GRENADE_ICON2   (giver 1))
    200200                  (GRENADE_ICON10  (giver 1))
    201201
     
    224224
    225225
    226 (defun weapon_iconweap_ai () 
     226(defun weapon_iconweap_ai ()
    227227  (if (eq0 (aistate))
    228228      (if (activated)
     
    232232                (set_aistate 1))
    233233
    234             (if (touching_bg) 
     234            (if (touching_bg)
    235235                (progn
    236236                  (play_sound AMMO_SND 127 (x) (y))
    237237                  (select (otype)
    238238                          (WEAP_MBULLET   (giverweap 0));; these numbers correspond to status bar position
    239                           (WEAP_GRENADE   (giverweap 1))               
     239                          (WEAP_GRENADE   (giverweap 1))
    240240                          (WEAP_ROCKET    (giverweap 2))
    241241                          (WEAP_FBOMB     (giverweap 3))
     
    248248              T))
    249249        T)
    250     (if (touching_bg) 
     250    (if (touching_bg)
    251251        (progn
    252252          (play_sound AMMO_SND 127 (x) (y))
    253253          (select (otype)
    254254                          (WEAP_MBULLET   (giverweap 0));; these numbers correspond to status bar position
    255                           (WEAP_GRENADE   (giverweap 1))               
     255                          (WEAP_GRENADE   (giverweap 1))
    256256                          (WEAP_ROCKET    (giverweap 2))
    257257                          (WEAP_FBOMB     (giverweap 3))
     
    263263          nil)
    264264      T)))
    265        
     265
    266266
    267267(defun ammo_cache (type)    ;; tells what other chars to load in with this character
     
    273273           (MBULLET_ICON20   `(,SHOTGUN_BULLET ,MGUN_TOP))
    274274           (ROCKET_ICON2     `(,ROCKET ,ROCKET_TOP))
    275            (ROCKET_ICON5     `(,ROCKET ,ROCKET_TOP))     
     275           (ROCKET_ICON5     `(,ROCKET ,ROCKET_TOP))
    276276           (FBOMB_ICON1      `(,FIREBOMB ,FIREBOMB_TOP))
    277277           (FBOMB_ICON5      `(,FIREBOMB ,FIREBOMB_TOP))
    278278
    279279           (PLASMA_ICON20    `(,PLASMAGUN_BULLET))
    280            (PLASMA_ICON50    `(,PLASMAGUN_BULLET))         
     280           (PLASMA_ICON50    `(,PLASMAGUN_BULLET))
    281281
    282282           (LSABER_ICON50    `(,LSABER_BULLET ,PGUN_TOP))
     
    305305
    306306(defun make_ammo_icon (symbol icon_name increment)
    307   (eval (list 'def_char symbol       
     307  (eval (list 'def_char symbol
    308308              '(funs (ai_fun weapon_icon_ai)
    309309                     (get_cache_list_fun ammo_cache)
     
    315315
    316316(defun make_ammoweap_icon (symbol icon_name increment)
    317   (eval (list 'def_char symbol       
     317  (eval (list 'def_char symbol
    318318              '(funs (ai_fun weapon_iconweap_ai)
    319319                     (get_cache_list_fun ammoweap_cache)
  • abuse/trunk/data-frabs/addon/twist/twist.lsp

    r566 r582  
    99    (progn
    1010      (print "Please make sure you unzipped the game with the -d option")
    11       (print "so that all directories get created properly.")     
    12       (print "example : pkunzip -d abusXXXX.zip")     
     11      (print "so that all directories get created properly.")
     12      (print "example : pkunzip -d abusXXXX.zip")
    1313      (quit)))
    1414(setq load_warn T)
     
    1818(load "lisp/userfuns.lsp")
    1919(load "addon/twist/lisp/userfuns.lsp")
    20 (load "addon/twist/lisp/options.lsp")     
     20(load "addon/twist/lisp/options.lsp")
    2121(load "addon/twist/lisp/startup.lsp")
    2222(if (not (local_load "addon/twist/lisp/input.lsp"))   ; get local copy first
Note: See TracChangeset for help on using the changeset viewer.