home *** CD-ROM | disk | FTP | other *** search
/ 100 Pусских Uгр / 980121_2306.iso / SUPER3D / RAMPAGER.ZIP / REDNECK.GRP / GAME.CON < prev    next >
Text File  |  1997-07-16  |  31KB  |  1,547 lines

  1. /*
  2. --------------------------------------------------------------------------------
  3. Redneck Rampage GAME.CON file.
  4. --------------------------------------------------------------------------------
  5.  
  6. IMPORTANT NOTICE IF YOU USE MODIFIED .CON FILES
  7.  
  8. If you are playing a MULTIPLAY game and you are using
  9. *modified* .CON files then each multiplayer must be
  10. using the EXACT SAME .CON files, or the game will
  11. get out of sync and/or develop interesting problems.
  12.  
  13. Xatrix encourages you to experiment freely with the parameters
  14. contained in this file, and to share your discoveries with the rest
  15. of the world.  However, BE ADVISED that Xatrix does NOT offer
  16. any technical support on how to use this file or other user-modifiable
  17. features of this game.  Do NOT call Xatrix or Interplay
  18. for advice or help with this subject.
  19.  
  20. You make modifications to this and other files at your own risk.
  21. It is recommended that you first make a backup copy of this, or
  22. any .CON files before making any changes.
  23. --------------------------------------------------------------------------------
  24. */
  25.  
  26. include DEFS.CON
  27. include USER.CON
  28.  
  29. action ANULLACTION 0
  30.  
  31. // Play a randomly chosen sound or phrase
  32. state jib_sounds
  33.   ifrnd SWEARFREQUENCY
  34.   {
  35.     ifrnd 128
  36.     {
  37.       ifrnd 128
  38.       {
  39.         ifrnd 128
  40.         {
  41.           ifrnd 128
  42.           {
  43.             ifrnd 128
  44.               globalsound JIBBED12
  45.             else
  46.               globalsound JIBBED1
  47.           }
  48.           else
  49.             globalsound JIBBED9
  50.         }
  51.         else
  52.         {
  53.           ifrnd 128
  54.           {
  55.             ifrnd 128
  56.               globalsound LN_FLYOP
  57.             else
  58.               globalsound JIBBED2
  59.           }
  60.           else
  61.             globalsound WUSSLAF
  62.         }
  63.       }
  64.       else
  65.       {
  66.         ifrnd 128
  67.         {
  68.           ifrnd 128
  69.             globalsound LN_SHTHD
  70.           else
  71.             globalsound JIBBED5
  72.         }
  73.         else
  74.             globalsound LN_RODE
  75.       }
  76.     }
  77.     else
  78.     {
  79.       ifrnd 128
  80.       {
  81.         ifrnd 128
  82.         {
  83.           ifrnd 128
  84.             globalsound JIBBED11
  85.           else
  86.             globalsound JIBBED13
  87.         }
  88.         else
  89.         {
  90.           ifrnd 128
  91.             globalsound JIBBED3
  92.           else
  93.             globalsound JIBBED8
  94.         }
  95.       }
  96.       else
  97.       {
  98.         ifrnd 128
  99.         {
  100.           ifrnd 128
  101.             globalsound JIBBED6
  102.           else
  103.             globalsound JIBBED4
  104.         }
  105.         else
  106.         {
  107.           ifrnd 128
  108.             globalsound JIBBED10
  109.           else
  110.             globalsound JIBBED7
  111.         }
  112.       }
  113.     }
  114.   }
  115. ends
  116.  
  117. // Display a nice gory selection of
  118. // splashing blood, and body parts
  119. state standard_jibs
  120.   guts JIBS2 1
  121.   guts JIBS3 2
  122.   guts JIBS4 3
  123.   guts JIBS5 2
  124.   guts JIBS6 3
  125.   ifrnd 6
  126.   {
  127.     guts JIBS1 1
  128.     spawn BLOODPOOL
  129.   }         // spine
  130.   state jib_sounds
  131. ends
  132.  
  133. state minion_shitshower
  134.   guts MINJIBA 1
  135.   guts MINJIBB 1
  136.   guts MINJIBC 1
  137. ends
  138.  
  139. state standard_minionjibs
  140.   guts JIBS2 1
  141.   guts JIBS3 2
  142.   guts MINJIBA 1
  143.   guts MINJIBB 1
  144.   guts MINJIBC 1
  145.   ifrnd 6
  146.   {
  147.     guts JIBS1 1
  148.     spawn BLOODPOOL
  149.   }         // spine
  150. ends
  151.  
  152. move RESPAWN_ACTOR_FLAG
  153.  
  154. state jibfood
  155.   sound SQUISHED
  156.   guts JIBS6 3
  157.   killit
  158. ends
  159.  
  160. state rf
  161.   ifrnd 128
  162.     cstat 4
  163.   else
  164.     cstat 0
  165. ends
  166.  
  167. state nf
  168.   cstat 0
  169. ends
  170.  
  171. state bf
  172.   cstat 0
  173. ends
  174.  
  175. action BURNING_FLAME  0   12   1   1   2
  176. move BURNING_VELS
  177.  
  178. state burningstate
  179.  
  180.   sleeptime 300
  181.  
  182.   ifspawnedby BURNING
  183.   {
  184.     ifgapzl 16
  185.       break
  186.   }
  187.   else ifspawnedby BURNING2
  188.   {
  189.     ifgapzl 16
  190.       break
  191.   }
  192.  
  193.   ifpdistg 10240
  194.     break
  195.  
  196.   ifcount 128
  197.   {
  198.     sizeto 8 8
  199.     sizeto 8 8
  200.     ifcount 192
  201.       killit
  202.   }
  203.   else
  204.   {
  205.     ifmove 0
  206.       move BURNING_VELS
  207.  
  208.     sizeto 52 52
  209.  
  210.     ifp palive
  211.       ifpdistl 844
  212.         ifrnd 32
  213.           ifcansee
  214.     {
  215.       soundonce LN_PAIN8
  216.       addphealth -1
  217.       palfrom 24 16
  218.     }
  219.   }
  220.  
  221. ends
  222.  
  223. actor BURNING WEAK BURNING_FLAME
  224.   state burningstate
  225. enda
  226.  
  227. actor BURNING2 WEAK BURNING_FLAME
  228.   state burningstate
  229. enda
  230.  
  231. /*
  232. state steamcode
  233.   ifpdistl 8192
  234.     soundonce STEAM_HISSING
  235.  
  236.   ifcount 20
  237.     {
  238.       resetcount
  239.       ifp palive
  240.         ifpdistl 1024
  241.       {
  242.         addphealth -1
  243.         palfrom 16 16
  244.       }
  245.     }
  246.   else
  247.   {
  248.     ifspawnedby STEAM
  249.       break
  250.     else
  251.       ifspawnedby CEILINGSTEAM
  252.         break
  253.  
  254.     sizeto 24 24
  255.   }
  256. ends
  257.  
  258. action STEAMFRAMES    0     5     1     1     1
  259. actor STEAM 0 STEAMFRAMES
  260.   state steamcode
  261. enda
  262.  
  263. actor CEILINGSTEAM 0 STEAMFRAMES
  264.   state steamcode
  265. enda
  266. */
  267.  
  268. actor WATERBUBBLEMAKER 0 0 randomangle
  269.   ifpdistl 3084
  270.     ifrnd 24
  271.       spawn WATERBUBBLE
  272. enda
  273.  
  274. action BUBBLE
  275. action CRACKEDBUBBLE  1
  276. move BUBMOVE       -10 -36
  277. move BUBMOVEFAST     -10 -52
  278.  
  279. actor WATERBUBBLE 0 BUBBLE BUBMOVE getv geth randomangle
  280.  
  281.   ifaction CRACKEDBUBBLE
  282.   {
  283.     ifinwater
  284.       ifrnd 192
  285.         killit
  286.     ifactioncount 7
  287.       killit
  288.   }
  289.   else
  290.   {
  291.     ifcount 4
  292.     {
  293.       ifrnd 192
  294.         move BUBMOVE getv geth randomangle
  295.       else
  296.         move BUBMOVEFAST getv geth randomangle
  297.       resetcount
  298.     }
  299.  
  300.     ifonwater
  301.     {
  302.       iffloordistl 8
  303.         action CRACKEDBUBBLE
  304.     }
  305.     else
  306.       ifactioncount 40
  307.         action CRACKEDBUBBLE
  308.   }
  309. enda
  310.  
  311.  
  312. move SMOKEVEL 8 -16
  313. move ENGINE_SMOKE 64 -64
  314. move SMOKESHOOTOUT -192
  315. action SMOKEFRAMES 0 4 1 1 10
  316.  
  317. actor SMALLSMOKE 0 SMOKEFRAMES
  318.   ifmove 0
  319.   {
  320.     ifspawnedby SECTOREFFECTOR
  321.       move ENGINE_SMOKE geth getv
  322.     else
  323.       move SMOKEVEL geth getv faceplayer
  324.     ifspawnedby CROSSBOW
  325.       cstat 2
  326.   }
  327.   ifpdistl 1596
  328.     ifspawnedby CROSSBOW
  329.       killit
  330.   ifactioncount 4
  331.     killit
  332. enda
  333.  
  334. move SPAWNED_BLOOD
  335.  
  336. state random_ooz
  337.   ifrnd 128
  338.     spawn OOZ2
  339.   else
  340.     spawn OOZ
  341. ends
  342.  
  343. action EXPLOSION_FRAMES 0 20 1 1  4
  344. actor EXPLOSION2 1 EXPLOSION_FRAMES
  345.   ifactioncount 20
  346.     killit
  347. enda
  348.  
  349. action EXPLOSION3_FRAMES -1 20 1 1 4
  350. actor EXPLOSION3 1 EXPLOSION3_FRAMES
  351.   sizeat 64 64
  352.   ifactioncount 20
  353.     killit
  354. enda
  355.  
  356. actor EXPLOSION2BOT 1 EXPLOSION_FRAMES
  357.   ifactioncount 20
  358.     killit
  359. enda
  360.  
  361. action RIP_F 0 8 1 1 1
  362. actor FORCERIPPLE 0 RIP_F
  363.   ifactioncount 8
  364.     killit
  365. enda
  366.  
  367. // This actors animation is used to
  368. // indicate that something is
  369. // being respawned
  370. action TRANSFOWARD 0  6  1  1  2
  371. action TRANSBACK   5  6  1 -1  2
  372. actor TRANSPORTERSTAR 0 TRANSFOWARD
  373.   ifaction TRANSFOWARD
  374.   {
  375.     ifactioncount 6
  376.       action TRANSBACK
  377.   }
  378.   else
  379.     ifactioncount 6
  380.       killit
  381. enda
  382.  
  383. action BEAMFOWARD  0  4  1  1  9
  384. actor TRANSPORTERBEAM 0 BEAMFOWARD
  385.   sizeto 32 64
  386.   sizeto 32 64
  387.   sizeto 32 64
  388.   ifactioncount 4
  389.     killit
  390. enda
  391.  
  392. /*
  393. // This is for Juke Box
  394. action ASPEAKERBROKE 1
  395. useractor notenemy SPEAKER
  396.   ifaction 0
  397.   {
  398.     ifhitweapon
  399.     {
  400.       stopsound BAR_MUSIC
  401.       soundonce STORE_MUSIC_BROKE
  402.       action ASPEAKERBROKE
  403.     }
  404.     else
  405.     {
  406.       soundonce BAR_MUSIC
  407.       cstat 257
  408.     }
  409.   }
  410. enda
  411. */
  412.  
  413. // This is for TESLA RAY
  414. useractor notenemy TESLA
  415.   ifaction 0
  416.   {
  417.     ifpdistl 1024 {
  418.        addphealth -2
  419.     }
  420.     soundonce TESLARC
  421.     // cstat 257
  422.     cstat 17
  423.   }
  424. enda
  425.  
  426. // Play a sound when player picks up item
  427. // then delete sprite from map
  428. // OR setup to be respawned
  429. state getcode
  430.   ifactor ECLAIRHEALTH
  431.     globalsound YEHAA16 // GETECLAIRHEALTH
  432.   else
  433.     globalsound JUG
  434.   palfrom 16 0 32
  435.   ifrespawn
  436.   {
  437.     move RESPAWN_ACTOR_FLAG
  438.     spawn RESPAWNMARKERRED
  439.     cstat 32768
  440.   }
  441.   else
  442.     killit
  443. ends
  444.  
  445. // Play a random sound when player
  446. // picks up a weapon
  447. state randgetweapsnds
  448.   ifrnd 64
  449.     globalsound LN_HUSH
  450.   else
  451.     ifrnd 96
  452.       globalsound LN_HOLD
  453.   else
  454.     ifrnd 128
  455.       globalsound LN_HOTDM
  456.   else
  457.     ifrnd 140
  458.       globalsound LN_STINK
  459.   else
  460.     ifrnd 128
  461.       globalsound LN_BBQ
  462.   else
  463.     globalsound LN_SCREW
  464. ends
  465.  
  466. // Play a random sound when player
  467. // picks up a weapon
  468. // Then either setup weapon to be respawned
  469. // OR delete sprite from map
  470. state getweaponcode
  471.  
  472.   state randgetweapsnds
  473.  
  474.   palfrom 32 0 32
  475.   ifgotweaponce 1
  476.     break
  477.   ifrespawn
  478.   {
  479.     move RESPAWN_ACTOR_FLAG
  480.     spawn RESPAWNMARKERRED
  481.     cstat 32768
  482.   }
  483.   else
  484.     killit
  485. ends
  486.  
  487. // if count > RESPAWNITEMTIME
  488. // Play the TRANSPORTERSTAR animation with
  489. // the TELEPORTER sound effect
  490. state respawnit
  491.   ifcount RESPAWNITEMTIME
  492.   {
  493.     spawn TRANSPORTERSTAR
  494.     move 0
  495.     cstat 0
  496.     sound TELEPORT
  497.   }
  498. ends
  499.  
  500. // Play a sound when player picks up item
  501. // then delete sprite from map
  502. state quikget
  503.   ifactor ECLAIRHEALTH
  504.     globalsound YEHAA16 // GETECLAIRHEALTH
  505.   else
  506.     globalsound JUG
  507.   palfrom 16 0 32
  508.   killit
  509. ends
  510.  
  511. // Play a sound from randgetweapsnds
  512. // then delete sprite from map
  513. state quikweaponget
  514.   state randgetweapsnds
  515.   palfrom 32 0 32
  516.   ifgotweaponce 1
  517.     break
  518.   killit
  519. ends
  520.  
  521. // Moonshine make the player faster, stronger,
  522. // and less susceptable to damage.
  523. // Studies have proven this to be true
  524. // Play a sound when player picks up item
  525. // then delete sprite from map
  526. // OR setup to be respawned
  527. actor MOONSHINE
  528.   fall
  529.   ifmove RESPAWN_ACTOR_FLAG
  530.     state respawnit
  531.   else ifp palive
  532.     ifcount 6
  533.       ifpdistl RETRIEVEDISTANCE
  534.         ifpinventory GET_MOONSHINE MOONSHINE_AMOUNT
  535.           ifcanseetarget
  536.           {
  537.              addinventory GET_MOONSHINE MOONSHINE_AMOUNT
  538.              quote 37
  539.              ifspawnedby MOONSHINE
  540.                 state getcode
  541.              else
  542.                 state quikget
  543.           }
  544. enda
  545.  
  546. // Boots are used to walk through toxic water
  547. // Play a sound when player picks up item
  548. // then delete sprite from map
  549. // OR setup to be respawned
  550. actor BOOTS
  551.   fall
  552.   ifmove RESPAWN_ACTOR_FLAG
  553.     state respawnit
  554.   else
  555.     ifp palive
  556.       ifcount 6
  557.         ifpdistl RETRIEVEDISTANCE
  558.           ifpinventory GET_BOOTS BOOT_AMOUNT
  559.             ifcanseetarget
  560.             {
  561.                addinventory GET_BOOTS BOOT_AMOUNT
  562.                quote 6
  563.                ifspawnedby BOOTS
  564.                   state getcode
  565.                else
  566.                   state quikget
  567.             }
  568. enda
  569.  
  570. actor COWPIE
  571.   fall
  572.   ifmove RESPAWN_ACTOR_FLAG
  573.     state respawnit
  574.   else
  575.     ifp palive
  576.       ifcount 6
  577.         ifpdistl RETRIEVEDISTANCE
  578.           ifpinventory GET_COWPIE COWPIE_AMOUNT
  579.             ifcanseetarget
  580.             {
  581.                addinventory GET_COWPIE COWPIE_AMOUNT
  582.                quote 88
  583.                ifspawnedby COWPIE
  584.                   state getcode
  585.                else
  586.                   state quikget
  587.             }
  588. enda
  589.  
  590. actor BEER
  591.   fall
  592.   ifmove RESPAWN_ACTOR_FLAG
  593.     state respawnit
  594.   else
  595.     ifp palive
  596.       ifcount 6
  597.         ifpdistl RETRIEVEDISTANCE
  598.           ifpinventory GET_BEER BEER_AMOUNT
  599.             ifcanseetarget
  600.             {
  601.                addinventory GET_BEER BEER_AMOUNT
  602.                quote 91
  603.                ifspawnedby BEER
  604.                   state getcode
  605.                else
  606.                   state quikget
  607.             }
  608. enda
  609.  
  610. // Allows player to breathe under water
  611. // Play a sound when player picks up item
  612. // then delete sprite from map
  613. // OR setup to be respawned
  614. actor SNORKLE
  615.   fall
  616.   ifmove RESPAWN_ACTOR_FLAG
  617.     state respawnit
  618.   else
  619.     ifp palive
  620.       ifcount 6
  621.         ifpdistl RETRIEVEDISTANCE
  622.           ifpinventory GET_SCUBA SCUBA_AMOUNT
  623.             ifcanseetarget
  624.             {
  625.               addinventory GET_SCUBA SCUBA_AMOUNT
  626.               quote 39
  627.               ifspawnedby SNORKLE
  628.                 state getcode
  629.               else
  630.                 state quikget
  631.             }
  632. enda
  633.  
  634. // Keys are used to open locked doors
  635. // that lead into different levels of the
  636. // map
  637. // Play a sound when player picks up item
  638. // then delete sprite from map
  639. // OR setup to be respawned
  640. actor DOORKEY
  641.   fall
  642.   ifmove RESPAWN_ACTOR_FLAG
  643.     state respawnit
  644.   else
  645.     ifp palive
  646.       ifpdistl RETRIEVEDISTANCE
  647.         ifcount 6
  648.           // ifcanseetarget
  649.           {
  650.             ifpinventory GET_KEYS 0
  651.               break
  652.             addinventory GET_KEYS 1
  653.             quote 43
  654.             state getcode
  655.           }
  656. enda
  657.  
  658. // Extra ammo for CASUL
  659. // Play a sound when player picks up item
  660. // then delete sprite from map
  661. // OR setup to be respawned
  662. actor AMMO
  663.   fall
  664.   ifmove RESPAWN_ACTOR_FLAG
  665.     state respawnit
  666.   else
  667.     ifp palive
  668.       ifpdistl RETRIEVEDISTANCE
  669.         ifcount 6
  670.           ifcanseetarget
  671.           {
  672.             addammo CASUL_WEAPON CASULAMMOAMOUNT
  673.             quote 65
  674.             ifspawnedby AMMO
  675.               state getcode
  676.             else
  677.               state quikget
  678.           }
  679. enda
  680.  
  681. // Extra ammo for TEATGUN
  682. // Play a sound when player picks up item
  683. // then delete sprite from map
  684. // OR setup to be respawned
  685. actor TEATAMMO
  686.   fall
  687.   ifmove RESPAWN_ACTOR_FLAG
  688.     state respawnit
  689.   else
  690.     ifp palive
  691.       ifpdistl RETRIEVEDISTANCE
  692.         ifcount 6
  693.           ifcanseetarget
  694.           {
  695.             addammo TEATGUN_WEAPON 50
  696.             quote 47
  697.             ifspawnedby TEATAMMO
  698.               state getcode
  699.             else
  700.               state quikget
  701.           }
  702. enda
  703.  
  704.  
  705. // Extra ammo for SAWBLADE GUN
  706. // Play a sound when player picks up item
  707. // then delete sprite from map
  708. // OR setup to be respawned
  709. actor BLADEAMMO
  710.   fall
  711.   ifmove RESPAWN_ACTOR_FLAG
  712.     state respawnit
  713.   else
  714.     ifp palive
  715.       ifpdistl RETRIEVEDISTANCE
  716.         ifcount 6
  717.           ifcanseetarget
  718.           {
  719.             addammo THROWSAW_WEAPON 20
  720.             quote 48
  721.             ifspawnedby BLADEAMMO
  722.               state getcode
  723.             else
  724.               state quikget
  725.           }
  726. enda
  727.  
  728.  
  729. // Extra ammo for shotgun
  730. // Play a sound when player picks up item
  731. // then delete sprite from map
  732. // OR setup to be respawned
  733. actor SHOTGUNAMMO
  734.   fall
  735.   ifmove RESPAWN_ACTOR_FLAG
  736.     state respawnit
  737.   else
  738.     ifp palive
  739.       ifcount 6
  740.         ifpdistl RETRIEVEDISTANCE
  741.           ifcanseetarget
  742.           {
  743.             addammo SHOTGUN_WEAPON SHOTGUNAMMOAMOUNT
  744.             quote 69
  745.             ifspawnedby SHOTGUNAMMO
  746.               state getcode
  747.             else
  748.               state quikget
  749.           }
  750. enda
  751.  
  752. // Extra ammo for CASUL
  753. // Play a sound when player picks up item
  754. // then delete sprite from map
  755. // OR setup to be respawned
  756. /*
  757. actor AMMOLOTS
  758.   fall
  759.   ifmove RESPAWN_ACTOR_FLAG
  760.     state respawnit
  761.   else
  762.     ifp palive
  763.       ifcount 6
  764.         ifpdistl RETRIEVEDISTANCE
  765.           ifcanseetarget
  766.           {
  767.             addammo CASUL_WEAPON 6
  768.             quote 65
  769.             ifspawnedby AMMOLOTS
  770.               state getcode
  771.             else
  772.               state quikget
  773.           }
  774. enda
  775. */
  776.  
  777. // Extra ammo
  778. // Play a sound when player picks up item
  779. // then delete sprite from map
  780. // OR setup to be respawned
  781. actor RIFLEAMMO
  782.   fall
  783.   ifmove RESPAWN_ACTOR_FLAG
  784.     state respawnit
  785.   else
  786.     ifp palive
  787.       ifpdistl RETRIEVEDISTANCE
  788.         ifcount 6
  789.           ifcanseetarget
  790.           {
  791.             addammo RIFLE_WEAPON RIFLEAMMOAMOUNT
  792.             quote 63
  793.             ifspawnedby RIFLEAMMO
  794.               state getcode
  795.             else
  796.               state quikget
  797.           }
  798. enda
  799.  
  800. // Play a sound when player picks up item
  801. // then delete sprite from map
  802. // OR setup to be respawned
  803. actor ALIENARMGUN
  804.   fall
  805.   ifmove RESPAWN_ACTOR_FLAG
  806.     state respawnit
  807.   else
  808.     ifp palive
  809.       ifpdistl RETRIEVEDISTANCE
  810.         ifcount 6
  811.           ifcanseetarget
  812.           {
  813.             ifgotweaponce 0
  814.               break
  815.  
  816.             addweapon ALIENBLASTER_WEAPON 33
  817.             quote 87
  818.             ifspawnedby ALIENARMGUN
  819.               state getweaponcode
  820.             else
  821.               state quikweaponget
  822.           }
  823. enda
  824.  
  825. // Play a sound when player picks up item
  826. // then delete sprite from map
  827. // OR setup to be respawned
  828. actor ALIENBLASTERAMMO
  829.   fall
  830.   ifmove RESPAWN_ACTOR_FLAG
  831.     state respawnit
  832.   else
  833.     ifp palive
  834.       ifpdistl RETRIEVEDISTANCE
  835.         ifcount 6
  836.           ifcanseetarget
  837.           {
  838.             addammo ALIENBLASTER_WEAPON ALIENBLASTERAMMOAMOUNT
  839.             quote 14
  840.            ifspawnedby ALIENBLASTERAMMO
  841.              state getcode
  842.            else
  843.              state quikget
  844.           }
  845. enda
  846.  
  847. // Play a sound when player picks up item
  848. // then delete sprite from map
  849. // OR setup to be respawned
  850. actor BOWLINGBALLSPRITE
  851.   fall
  852.   ifmove RESPAWN_ACTOR_FLAG
  853.     state respawnit
  854.   else
  855.     ifp palive
  856.         ifpdistl RETRIEVEDISTANCE
  857.           ifcount 6
  858.             ifcanseetarget
  859.       {
  860.         ifgotweaponce 0
  861.           break
  862.         addweapon BOWLINGBALL_WEAPON 1
  863.         quote 60
  864.         ifspawnedby BOWLINGBALLSPRITE
  865.           state getweaponcode
  866.         else
  867.           state quikweaponget
  868.       }
  869. enda
  870.  
  871. // Extra Dynamite ammo
  872. // Play a sound when player picks up item
  873. // then delete sprite from map
  874. // OR setup to be respawned
  875. actor HBOMBAMMO
  876.   fall
  877.   ifaction 0 {
  878.     cstat 256
  879.   }
  880.   ifmove RESPAWN_ACTOR_FLAG state respawnit
  881.   ifhitweapon
  882.   {
  883.     spawn EXPLOSION3
  884.     soundonce DYNEW
  885.     spawn BURNING
  886.     hitradius POWDERKEGBLASTRADIUS POWDERKEG_STRENGTH POWDERKEG_STRENGTH POWDERKEG_STRENGTH POWDERKEG_STRENGTH
  887.     killit
  888.     break
  889.   }
  890.   else
  891.     ifp palive
  892.       ifpdistl RETRIEVEDISTANCE
  893.         ifcount 6
  894.           ifcanseetarget
  895.           {
  896.             ifgotweaponce 0
  897.                break
  898.  
  899.             addweapon DYNAMITE_WEAPON DYNAMITEBOX
  900.             addammo CROSSBOW_WEAPON DYNAMITEBOX
  901.             quote 55
  902.  
  903.             ifspawnedby HBOMBAMMO
  904.               state getweaponcode
  905.             else
  906.               state quikweaponget
  907.           }
  908. enda
  909.  
  910. // Play a sound when player picks up item
  911. // then delete sprite from map
  912. // OR setup to be respawned
  913. actor CROSSBOWSPRITE
  914.   fall
  915.   ifmove RESPAWN_ACTOR_FLAG
  916.     state respawnit
  917.   else
  918.     ifp palive
  919.       ifpdistl RETRIEVEDISTANCE
  920.         ifcount 6
  921.           ifcanseetarget
  922.           {
  923.             ifgotweaponce 0
  924.               break
  925.  
  926.             addweapon CROSSBOW_WEAPON CROSSBOWAMMOBOX
  927.             addammo DYNAMITE_WEAPON DYNAMITEBOX
  928.             quote 56
  929.             ifspawnedby CROSSBOWSPRITE
  930.               state getweaponcode
  931.             else
  932.               state quikweaponget
  933.           }
  934. enda
  935.  
  936. // Shotgun for player to pick up
  937. //  either placed on level by designers
  938. //  OR spawned by Billy
  939. // Play a sound when player picks up item
  940. // then delete sprite from map
  941. // OR setup to be respawned
  942. actor SHOTGUNSPRITE
  943.   fall
  944.   ifmove RESPAWN_ACTOR_FLAG
  945.     state respawnit
  946.   else
  947.     ifp palive
  948.       ifpdistl RETRIEVEDISTANCE
  949.         ifcount 6
  950.           ifcanseetarget
  951.           {
  952.             // randomly set how much
  953.             // ammo shotgun has
  954.             ifspawnedby BILLYRAY
  955.             {
  956.               addweapon SHOTGUN_WEAPON 0
  957.               ifrnd 64
  958.                 addammo SHOTGUN_WEAPON 4
  959.               else ifrnd 64
  960.                 addammo SHOTGUN_WEAPON 4
  961.               else ifrnd 64
  962.                 addammo SHOTGUN_WEAPON 2
  963.               else
  964.                 addammo SHOTGUN_WEAPON 2
  965.             }
  966.             else
  967.             {
  968.               ifgotweaponce 0
  969.                 break
  970.               addweapon SHOTGUN_WEAPON SHOTGUNAMMOAMOUNT
  971.               quote 57
  972.             }
  973.  
  974.             ifspawnedby SHOTGUNSPRITE
  975.               state getweaponcode
  976.             else
  977.               state quikweaponget
  978.           }
  979. enda
  980.  
  981. actor BUZSAWSPRITE
  982.   fall
  983.   ifmove RESPAWN_ACTOR_FLAG
  984.     state respawnit
  985.   else
  986.     ifp palive
  987.         ifpdistl RETRIEVEDISTANCE
  988.           ifcount 6
  989.             ifcanseetarget
  990.       {
  991.         ifgotweaponce 0
  992.           break
  993.         addweapon THROWSAW_WEAPON 10
  994.         quote 61
  995.         ifspawnedby BUZSAWSPRITE
  996.           state getweaponcode
  997.         else
  998.           state quikweaponget
  999.       }
  1000. enda
  1001.  
  1002. actor TEATGUN
  1003.   fall
  1004.   ifmove RESPAWN_ACTOR_FLAG
  1005.     state respawnit
  1006.   else
  1007.     ifp palive
  1008.         ifpdistl RETRIEVEDISTANCE
  1009.           ifcount 6
  1010.             ifcanseetarget
  1011.       {
  1012.         ifgotweaponce 0
  1013.           break
  1014.         addweapon TEATGUN_WEAPON 50
  1015.         quote 59
  1016.         ifspawnedby TEATGUN
  1017.           state getweaponcode
  1018.         else
  1019.           state quikweaponget
  1020.       }
  1021. enda
  1022.  
  1023. //  Adds thirty points to players health
  1024. //  OR if players health is > 70
  1025. //  bumps health to 100
  1026. // Play a sound when player picks up item
  1027. // then delete sprite from map
  1028. // OR setup to be respawned
  1029. actor PORKBALLS
  1030.   fall
  1031.   ifmove RESPAWN_ACTOR_FLAG
  1032.     state respawnit
  1033.   else
  1034.     ifp palive
  1035.       ifpdistl RETRIEVEDISTANCE
  1036.         ifcount 6
  1037.           ifphealthl MAXPLAYERHEALTH
  1038.             ifcanseetarget
  1039.             {
  1040.                iseat 10
  1041.                quote 62
  1042.                ifspawnedby PORKBALLS
  1043.                  state getcode
  1044.                else
  1045.                  state quikget
  1046.             }
  1047. enda
  1048.  
  1049. // Bumps players health up to MAXPLAYERHEALTH
  1050. // Play a sound when player picks up item
  1051. // then delete sprite from map
  1052. // OR setup to be respawned
  1053. actor ECLAIRHEALTH
  1054.   fall
  1055.   ifmove RESPAWN_ACTOR_FLAG
  1056.     state respawnit
  1057.   else
  1058.     ifp palive
  1059.       ifpdistl RETRIEVEDISTANCE
  1060.         ifcount 6
  1061.           ifphealthl MAXPLAYERECLAIRHEALTH
  1062.             ifcanseetarget
  1063.             {
  1064.               addphealth 50
  1065.               quote 19
  1066.               ifspawnedby ECLAIRHEALTH
  1067.                 state getcode
  1068.               else
  1069.                 state quikget
  1070.             }
  1071. enda
  1072.  
  1073.  
  1074. // Portable health.  Holds 100 health points
  1075. // Play a sound when player picks up item
  1076. // then delete sprite from map
  1077. // OR setup to be respawned
  1078. actor WHISKEY
  1079.   fall
  1080.   ifmove RESPAWN_ACTOR_FLAG state respawnit
  1081.   else
  1082.     ifp palive
  1083.       ifpdistl RETRIEVEDISTANCE
  1084.         ifcount 6
  1085.           ifpinventory GET_WHISKEY WHISKEY_AMOUNT
  1086.             ifcanseetarget
  1087.             {
  1088.               addinventory GET_WHISKEY WHISKEY_AMOUNT
  1089.               quote 3
  1090.  
  1091.               ifspawnedby WHISKEY
  1092.                 state getcode
  1093.               else
  1094.                 state quikget
  1095.             }
  1096. enda
  1097.  
  1098. // Play a sound when player picks up item
  1099. // then delete sprite from map
  1100. // OR setup to be respawned
  1101. actor FIRSTGUNSPRITE
  1102.   fall
  1103.   ifmove RESPAWN_ACTOR_FLAG
  1104.     state respawnit
  1105.   else
  1106.     ifp palive
  1107.       ifpdistl RETRIEVEDISTANCE
  1108.         ifcount 6
  1109.           ifcanseetarget
  1110.           {
  1111.             ifgotweaponce 0
  1112.               break
  1113.             addweapon CASUL_WEAPON 48
  1114.             ifspawnedby FIRSTGUNSPRITE
  1115.               state getweaponcode
  1116.             else
  1117.               state quikweaponget
  1118.           }
  1119. enda
  1120.  
  1121. // IF NOT USED LATER, DELETE
  1122. // Play a sound when player picks up item
  1123. // then delete sprite from map
  1124. // OR setup to be respawned
  1125. actor POWDERKEGSPRITE
  1126.   fall
  1127.   ifaction 0
  1128.   {
  1129.     cstat 256
  1130.   }
  1131.  
  1132.   ifhitweapon
  1133.   {
  1134.     spawn EXPLOSION2
  1135.     soundonce DYNEW
  1136.     spawn BURNING
  1137.     hitradius POWDERKEGBLASTRADIUS POWDERKEG_STRENGTH POWDERKEG_STRENGTH POWDERKEG_STRENGTH POWDERKEG_STRENGTH
  1138.     killit
  1139.     break
  1140.   }
  1141.  
  1142.   ifmove RESPAWN_ACTOR_FLAG
  1143.     state respawnit
  1144.   else
  1145.     ifp palive
  1146.       ifpdistl RETRIEVEDISTANCE
  1147.         ifcount 60
  1148.           ifcanseetarget
  1149.           {
  1150.            ifgotweaponce 0
  1151.             break
  1152.  
  1153.            addweapon POWDERKEG_WEAPON 1
  1154.            quote 58
  1155.            ifspawnedby POWDERKEGSPRITE
  1156.              state getweaponcode
  1157.            else
  1158.              state quikweaponget
  1159.           }
  1160. enda
  1161.  
  1162. // IF NOT USED LATER, DELETE
  1163. // Play a sound when player picks up item
  1164. // then delete sprite from map
  1165. // OR setup to be respawned
  1166. actor RIFLESPRITE
  1167.   fall
  1168.   ifmove RESPAWN_ACTOR_FLAG
  1169.     state respawnit
  1170.   else
  1171.     ifp pshrunk nullop
  1172.     else
  1173.       ifp palive
  1174.         ifpdistl RETRIEVEDISTANCE
  1175.           ifcount 6
  1176.             ifcanseetarget
  1177.       {
  1178.         ifgotweaponce 0
  1179.           break
  1180.  
  1181.         addweapon RIFLE_WEAPON 30
  1182.         quote 54
  1183.         ifspawnedby RIFLESPRITE
  1184.           state getweaponcode
  1185.         else
  1186.           state quikweaponget
  1187.       }
  1188. enda
  1189.  
  1190. action FIRE_FRAMES   -1 14 1 1 8
  1191. move FIREVELS
  1192.  
  1193. state firestate
  1194.  
  1195.   ifaction 0
  1196.     ifrnd 16
  1197.     {
  1198.       action FIRE_FRAMES
  1199.       cstator 128
  1200.     }
  1201.  
  1202.   sleeptime 300         // Never let it fall to sleep
  1203.  
  1204.   ifspawnedby FIRE
  1205.   {
  1206.     ifgapzl 16
  1207.       break
  1208.   }
  1209.   else
  1210.     ifspawnedby FIRE2
  1211.   {
  1212.     ifgapzl 16
  1213.       break
  1214.   }
  1215.  
  1216.   ifinwater
  1217.     killit
  1218.  
  1219.   ifp palive
  1220.     ifpdistl 844
  1221.       ifrnd 32
  1222.         ifcansee
  1223.   {
  1224.     soundonce LN_PAIN8
  1225.     addphealth -1
  1226.     palfrom 32 32
  1227.   }
  1228.  
  1229.   ifactor FIRE
  1230.   {
  1231.     ifspawnedby FIRE
  1232.       break
  1233.   }
  1234.   else
  1235.     ifactor FIRE2
  1236.       ifspawnedby FIRE2
  1237.         break
  1238.  
  1239.   iffloordistl 128
  1240.   {
  1241.     ifrnd 128
  1242.     {
  1243.       ifcount 84
  1244.         killit
  1245.                 // This line(and the else below)
  1246.                 // is not necessary, since actors
  1247.                 // with zero x-size are automatically
  1248.                 // deleted anyway!
  1249.       else
  1250.         ifcount 42
  1251.           sizeto 0 0
  1252.       else
  1253.         sizeto 32 32
  1254.     }
  1255.   }
  1256.   else
  1257.     killit
  1258.  
  1259. ends
  1260.  
  1261. useractor notenemy FIRE WEAK 0 FIREVELS state firestate enda
  1262. useractor notenemy FIRE2 WEAK 0 FIREVELS state firestate enda
  1263.  
  1264. state drop_ammo
  1265.   ifrnd SPAWNAMMOODDS
  1266.     spawn AMMO
  1267. ends
  1268.  
  1269. state drop_pistol
  1270.   // ifrnd SPAWNAMMOODDS
  1271.     spawn FIRSTGUNSPRITE
  1272. ends
  1273.  
  1274. state drop_sgshells
  1275.   ifrnd SPAWNAMMOODDS
  1276.     spawn SHOTGUNAMMO
  1277. ends
  1278.  
  1279. state drop_shotgun
  1280.   ifrnd SPAWNAMMOODDS
  1281.     spawn SHOTGUNSPRITE
  1282. ends
  1283.  
  1284. state random_wall_jibs
  1285.   ifrnd 96
  1286.     shoot BLOODSPLAT1
  1287.   ifrnd 96
  1288.     shoot BLOODSPLAT2
  1289.   ifrnd 96
  1290.     shoot BLOODSPLAT3
  1291.   ifrnd 96
  1292.     shoot BLOODSPLAT4
  1293.   ifrnd 96
  1294.     shoot BLOODSPLAT1
  1295. ends
  1296.  
  1297. state killme
  1298.   ifp pfacing
  1299.     ifpdistl 1280
  1300.       ifhitspace
  1301.         soundonce KILLME
  1302. ends
  1303.  
  1304. action BLOODFRAMES 0 4 1 1 15
  1305. actor BLOOD 0 BLOODFRAMES
  1306.   sizeto 48 48 sizeto 48 48 sizeto 48 48
  1307.   ifpdistg 3144 killit
  1308.   ifactioncount 4 killit
  1309. enda
  1310.  
  1311. action SAWBLADE 0 1 1 1 1
  1312. actor CIRCLESTUCK 0 SAWBLADE
  1313.   ifactioncount 256
  1314.   {
  1315.     fall
  1316.     iffloordistl 8 {
  1317.       lotsofglass 3
  1318.       killit
  1319.     }
  1320.   }
  1321. enda
  1322.  
  1323.  
  1324. useractor enemy UFOBEAM THROWSAW_WEAPON_STRENGTH enda
  1325.  
  1326. action DESTROYER 0 1 1 1 1
  1327. ai AIDESTROYER DESTROYER 0 faceplayer
  1328. ai AIDESTROYER1 DESTROYER 0 faceplayer
  1329. ai AIDESTROYER2 DESTROYER 0 faceplayer
  1330. useractor notenemy DESTRUCTO MEGASTRENGTH
  1331.   ifaction 0 {
  1332.     ifspritepal 0
  1333.     {
  1334.       cstat 256
  1335.     }
  1336.     else {
  1337.       cstat 0
  1338.     }
  1339.     cstator 32768
  1340.     ai AIDESTROYER
  1341.   }
  1342.   ifhitweapon {
  1343.     ai AIDESTROYER1
  1344.   }
  1345.   ifai AIDESTROYER1
  1346.   {
  1347.     ifactioncount 1
  1348.     {
  1349.       destroyit
  1350.       ifrnd 32
  1351.         sound DYNEW
  1352.       else
  1353.         soundonce DYNEW
  1354.       ifrnd 128
  1355.       {
  1356.         spawn BURNING
  1357.         killit
  1358.       }
  1359.       else
  1360.       {
  1361.         ai AIDESTROYER2
  1362.       }
  1363.     }
  1364.     ifactioncount 0
  1365.     {
  1366.       ifspritepal 0
  1367.       {
  1368.         destroyit
  1369.         spawn EXPLOSION2
  1370.         soundonce DYNEW
  1371.         spawn BURNING
  1372.         killit
  1373.       }
  1374.       ifspritepal 1
  1375.       {
  1376.         destroyit
  1377.         spawn EXPLOSION2
  1378.         soundonce DYNEW
  1379.         spawn BURNING
  1380.         killit
  1381.       }
  1382.     }
  1383.   }
  1384.   ifai AIDESTROYER2
  1385.   {
  1386.     ifrnd 128
  1387.     {
  1388.       spawn EXPLOSION2
  1389.       ifrnd 32
  1390.         sound DYNEW
  1391.       else
  1392.         soundonce DYNEW
  1393.       ifrnd 32
  1394.       {
  1395.         killit
  1396.       }
  1397.     }
  1398.   }
  1399. enda
  1400.  
  1401. // Weapon actors
  1402. actor CROWBAR CROWBAR_WEAPON_STRENGTH enda
  1403. actor SHITBALL SHITBALL_WEAPON_STRENGTH enda
  1404. actor RIFLE RIFLE_WEAPON_STRENGTH enda
  1405. actor SHOTGUN SHOTGUN_WEAPON_STRENGTH enda
  1406. actor FIRELASER FIRELASER_WEAPON_STRENGTH enda
  1407. actor DYNAMITE DYNAMITE_WEAPON_STRENGTH enda
  1408. actor BOUNCEMINE BOUNCEMINE_WEAPON_STRENGTH enda
  1409. actor MORTER MORTER_WEAPON_STRENGTH enda
  1410. actor TESLABALL MORTER_WEAPON_STRENGTH enda
  1411. actor CROSSBOW CROSSBOW_WEAPON_STRENGTH enda
  1412. // actor ALIENBLASTERBLAST PLASMATHROWER_WEAPON_STRENGTH enda
  1413. // actor COOLEXPLOSION1 COOL_EXPLOSION_STRENGTH enda
  1414. actor BUZSAW BUZSAW_WEAPON_STRENGTH enda
  1415.  
  1416. actor OWHIP ALIENGISMO_WEAPON_STRENGTH enda
  1417. actor UWHIP ALIENGISMO_WEAPON_STRENGTH enda
  1418. actor DILDO PLASMATHROWER_WEAPON_STRENGTH enda
  1419.  
  1420. action SAWBLADE1 0 7 1 1 10
  1421. actor CIRCLESAW THROWSAW_WEAPON_STRENGTH SAWBLADE1 enda
  1422.  
  1423. action WEAP2FRAMES 0  4  1  1  6
  1424. actor SHOTSPARK1 CASUL_WEAPON_STRENGTH WEAP2FRAMES
  1425.   ifdead
  1426.     killit
  1427.   ifactioncount 4
  1428.     killit
  1429.   else
  1430.   {
  1431.     ifactioncount 3
  1432.     {
  1433.       ifinwater
  1434.         spawn WATERBUBBLE
  1435.     }
  1436.     else
  1437.       ifcount 2 nullop
  1438.       else
  1439.         ifonwater
  1440.           spawn WATERSPLASH2
  1441.         else
  1442.           ifonmud
  1443.             spawn MUD
  1444.   }
  1445. enda
  1446.  
  1447. include "LEONARD.CON"
  1448. include "BILLY.CON"
  1449. include "HEN.CON"
  1450. include "COOT.CON"
  1451. include "MOSQUITO.CON"
  1452. include "COW.CON"
  1453. include "PIG.CON"
  1454. include "MINION.CON"
  1455. include "HULK.CON"
  1456. // include "EVILLEN.CON"
  1457. include "TORNADO.CON"
  1458. include "SHERIFF.CON"
  1459. include "VIXEN.CON"
  1460. include "BUBBA.CON"
  1461. include "DOG.CON"
  1462. include "CRICKETC.CON"
  1463. include "TURDBOSS.CON"
  1464.  
  1465. /*
  1466. action ALAVABUBBLE
  1467. action ALAVABUBBLEANIM 0 5 1 1 16
  1468.  
  1469. useractor notenemy LAVABUBBLE
  1470.   ifaction 0
  1471.   {
  1472.     cstat 32768
  1473.     action ALAVABUBBLE
  1474.   }
  1475.   else
  1476.     ifaction ALAVABUBBLE
  1477.   {
  1478.     ifcount 72
  1479.       ifrnd 2
  1480.     {
  1481.       cstat 0
  1482.       action ALAVABUBBLEANIM
  1483.     }
  1484.   }
  1485.   else
  1486.   {
  1487.     ifactioncount 5
  1488.     {
  1489.       cstat 32768
  1490.       action ALAVABUBBLE
  1491.     }
  1492.   }
  1493. enda
  1494. */
  1495.  
  1496. action TIKI      0  1 1 1 1
  1497. action TIKI_ANIM 24 2 1 1 1
  1498. move NO_MOVE
  1499. ai AITIKILAMP1 TIKI NO_MOVE
  1500. ai AITIKILAMP2 TIKI_ANIM NO_MOVE
  1501. useractor notenemy TIKILAMP REALLYTOUGH
  1502.   ifaction 0
  1503.   {
  1504.     cstat 256
  1505.     ai AITIKILAMP1
  1506.   }
  1507.   ifhitweapon {
  1508.     ai AITIKILAMP2
  1509.   }
  1510. enda
  1511.  
  1512. useractor enemy MINECARTKILLER MEGASTRENGTH
  1513.   ifaction 0
  1514.   {
  1515.     cstator 32768
  1516.   }
  1517.   ifpdistl 1024
  1518.   {
  1519.     addphealth -1000
  1520.     wackplayer
  1521.   }
  1522. enda
  1523.  
  1524. action BUSTAWINDOWA 0 1 1 1 1
  1525. action BUSTAWINDOWB 1 1 1 1 1
  1526. ai AIBUSTAWIN4A BUSTAWINDOWA NO_MOVE
  1527. ai AIBUSTAWIN4B BUSTAWINDOWB NO_MOVE
  1528. useractor notenemy BUSTAWIN4A WEAK
  1529.   ifhitweapon {
  1530.     ai AIBUSTAWIN4B
  1531.     sound GLASSSND
  1532.     lotsofglass 10
  1533.   }
  1534. enda
  1535.  
  1536. action BUSTAWINDOWC 0 1 1 1 1
  1537. action BUSTAWINDOWD 1 1 1 1 1
  1538. ai AIBUSTAWIN5A BUSTAWINDOWC NO_MOVE
  1539. ai AIBUSTAWIN5B BUSTAWINDOWD NO_MOVE
  1540. useractor notenemy BUSTAWIN5A WEAK
  1541.   ifhitweapon {
  1542.     ai AIBUSTAWIN5B
  1543.     sound GLASSSND
  1544.     lotsofglass 8
  1545.   }
  1546. enda
  1547.