home *** CD-ROM | disk | FTP | other *** search
/ PC & Mediji 1997 February / PCM_9702.iso / igre / rddemo / demo / redneck.grp / BILLY.CON < prev    next >
Text File  |  1997-01-20  |  11KB  |  524 lines

  1. /* BILLY RAY */
  2.  
  3.  
  4. action ABILLYWALK      -66   8  5  1 11
  5. action ABILLYRUN       -66   8  5  1 11
  6. action ABILLYSHOOT       0   5  5  1 28
  7. action ABILLYCOCK      -15   3  5  1 26
  8. action ABILLYSTAND       0   1  1  1 40
  9.  
  10. action ABILLYDYING     -26  11  1  1 11
  11. action ABILLYHIT        40   5  5  1 26
  12. action ABILLYDEAD      -16   1  1  1  1
  13. action ABILLYTRKDEAD    71   1  1  1  1
  14.  
  15.  
  16. action ABILLYITCH       26   3  1  1 18
  17. action ABILLYSCRATCH    29   3  1  1 18
  18. action ABILLYSNIFF      32   7  1  1 11
  19.  
  20. action ABILLYJIBONE     66   1  1  1  1 
  21. action ABILLYJIBTWO     66   5  1  1 12
  22. action ABILLYJIBDEAD    70   1  1  1  1
  23.  
  24. move BILLYWALKVELS 72
  25. move BILLYRUNVELS 108
  26. move BILLYSTOPPED
  27.  
  28. ai AIBILLYSEEKENEMY  ABILLYWALK    BILLYWALKVELS seekplayer
  29. ai AIBILLYSHOOTENEMY ABILLYSHOOT   BILLYSTOPPED faceplayer
  30. ai AIBILLYFLEEENEMY  ABILLYWALK    BILLYWALKVELS fleeenemy
  31. ai AIBILLYSHOOT      ABILLYSHOOT   BILLYSTOPPED faceplayer
  32. ai AIBILLYDODGE      ABILLYRUN     BILLYRUNVELS dodgebullet
  33. ai AIBILLYCHARGE     ABILLYRUN     BILLYRUNVELS seekplayer
  34. ai AIBILLYDYING      ABILLYDYING   BILLYSTOPPED faceplayer
  35. ai AIBILLYTRKDYING   ABILLYDYING   BILLYSTOPPED faceplayer
  36. ai AIBILLYHIT        ABILLYHIT     BILLYSTOPPED faceplayer
  37. ai AIBILLYITCH       ABILLYITCH    BILLYSTOPPED faceplayer
  38. ai AIBILLYSCRATCH    ABILLYSCRATCH BILLYSTOPPED faceplayer
  39. ai AIBILLYSNIFF      ABILLYSNIFF   BILLYSTOPPED faceplayer
  40. ai AIBILLYJIBONE     ABILLYJIBONE  BILLYSTOPPED faceplayer
  41. ai AIBILLYJIBTWO     ABILLYJIBTWO  BILLYSTOPPED faceplayer
  42.  
  43.  
  44. state billyitchstate
  45.   ifcount 18
  46.   {
  47.     ai AIBILLYSCRATCH
  48.     sound BRSCRATH
  49.   }
  50. ends
  51.  
  52. state billyscratchstate
  53.   ifactioncount 18
  54.   {
  55.       ai AIBILLYSNIFF
  56.       sound BRSNIFF
  57.   }
  58. ends
  59.  
  60. state billysniffstate
  61.   ifcount 18
  62.   {
  63.     ai AIBILLYSEEKENEMY
  64.   }
  65. ends
  66.  
  67.  
  68. state billyseekenemystate
  69.   ifactornotstayput
  70.   {
  71.      // Billy with set pal num 31 and 32
  72.      //  shoot less and seek more (32 is also deaf)
  73.      ifspritepal 31
  74.      {
  75.         ifrnd 8
  76.         {
  77.           ifp palive
  78.             ifcansee
  79.               ifcanshoottarget
  80.             {
  81.               ai AIBILLYSHOOTENEMY
  82.               break
  83.             }
  84.         }
  85.      }                
  86.      else ifspritepal 32
  87.      {
  88.         ifrnd 8
  89.         {
  90.           ifp palive
  91.             ifcansee
  92.               ifcanshoottarget
  93.             {
  94.               ai AIBILLYSHOOTENEMY
  95.               break
  96.             }
  97.         }
  98.      }                
  99.      // NN out of 256 times, if player is alive and billy can 
  100.      // see player, switch ai to shoot 
  101.      else ifrnd 32
  102.      {
  103.        ifp palive
  104.          ifcansee
  105.            ifcanshoottarget
  106.            {
  107.              ai AIBILLYSHOOTENEMY
  108.              break
  109.            }
  110.      }
  111.      else ifrnd 32 
  112.      {
  113.         ifpdistg 3084
  114.         {
  115.           ai AIBILLYSEEKENEMY    
  116.           break
  117.         }
  118.      }
  119.  
  120.      // NN out of 256 times, if we get down here in 
  121.      // the code and we're not moving
  122.      // try opening a door to find player
  123.      ifrnd 8
  124.        ifnotmoving
  125.          operate
  126.  
  127.   }
  128.   // Else Billy Ray confined to home sector
  129.   else
  130.   {
  131.     ifrnd 32
  132.       ifp palive
  133.         ifcansee
  134.           ifcanshoottarget
  135.         {
  136.           ai AIBILLYSHOOTENEMY
  137.           break
  138.         }
  139.  
  140.     ifcount 48
  141.     {
  142.       ifrnd 8
  143.         ifp palive
  144.           ifcansee
  145.             ifcanshoottarget
  146.           {
  147.             ifrnd 192
  148.               ai AIBILLYSHOOTENEMY
  149.             else
  150.               ai AIBILLYFLEEENEMY
  151.             break
  152.           }
  153.     }
  154.   }
  155. ends
  156.  
  157.  
  158. state billyshootenemystate
  159.  
  160.     {
  161.  
  162.         ifrnd 2
  163.           ifrnd 16
  164.           {
  165.               ai AIBILLYSCRATCH
  166.               break
  167.           }
  168.  
  169.         // Logic means when count = 12, and ifcanshoottarget
  170.         //    shoot SHOTGUN
  171.         ifcount 12 
  172.             { } 
  173.         else ifcount 11
  174.         {
  175.           ifcansee
  176.             ifcanshoottarget
  177.             { 
  178.               sound BILLY_ATTACK 
  179.               shoot SHOTGUN 
  180.               shoot SHOTGUN 
  181.               shoot SHOTGUN 
  182.               shoot SHOTGUN 
  183.               shoot SHOTGUN 
  184.             }
  185.             else 
  186.                 ai AIBILLYSEEKENEMY
  187.         }
  188.  
  189.         // Logic means when count = 25, cock shotgun
  190.         ifcount 25 
  191.             { } 
  192.         else ifcount 24 
  193.         { 
  194.             action ABILLYCOCK 
  195.             sound SHOTGUN_COCK 
  196.          
  197.         }
  198.  
  199.         // Billy with set pal num 31 and 32
  200.         //  shoot less and seek more (32 is also deaf)
  201.         ifcount 46 
  202.             { } 
  203.         else ifcount 45
  204.         {
  205.             ifspritepal 31
  206.             {
  207.                 action ABILLYWALK
  208.                 ifpdistl 768 
  209.                     ai AIBILLYFLEEENEMY
  210.                 else
  211.                     ai AIBILLYSEEKENEMY
  212.                 break
  213.             }
  214.             else ifspritepal 32
  215.             {
  216.                 action ABILLYWALK
  217.                 ifpdistl 768 
  218.                     ai AIBILLYFLEEENEMY
  219.                 else
  220.                     ai AIBILLYSEEKENEMY
  221.                 break
  222.             }
  223.         }
  224.  
  225.         // Logic means when count = 48, and ifcanshoottarget
  226.         //    shoot SHOTGUN
  227.         ifcount 48 
  228.             { } 
  229.         else ifcount 47
  230.         {
  231.           ifcansee
  232.             ifcanshoottarget 
  233.             { 
  234.                 sound BILLY_ATTACK 
  235.                 shoot SHOTGUN 
  236.                 shoot SHOTGUN 
  237.                 shoot SHOTGUN 
  238.                 shoot SHOTGUN 
  239.                 shoot SHOTGUN 
  240.             }
  241.             else 
  242.                 ai AIBILLYSEEKENEMY
  243.         }
  244.  
  245.         // Logic means when count = 60, cock shotgun
  246.         ifcount 60 
  247.         { } 
  248.         else ifcount 59 
  249.         { 
  250.             action ABILLYCOCK 
  251.             sound SHOTGUN_COCK 
  252.         }
  253.  
  254.         // Logic means when count > 72, 
  255.         // NN out of 256 times resetcount 
  256.         // else either flee, or seek enemy
  257.         ifcount 72
  258.         {
  259.             ifrnd 64 
  260.                 resetcount
  261.             else
  262.             {
  263.                 ifpdistl 768 
  264.                     ai AIBILLYFLEEENEMY
  265.                 else
  266.                     ai AIBILLYSEEKENEMY
  267.                 break
  268.             }
  269.         }
  270.  
  271.         ifaction ABILLYCOCK 
  272.             ifactioncount 2 
  273.                 action ABILLYSHOOT
  274.  
  275.  
  276.     }
  277.  
  278. ends
  279.  
  280. state billyfleeenemystate
  281.   ifactioncount 8
  282.   {
  283.     ifrnd 32 
  284.     {
  285.       ai AIBILLYITCH
  286.       sound BRITCH
  287.     }
  288.     else
  289.       ai AIBILLYSEEKENEMY
  290.   }
  291.   else
  292.     ifnotmoving
  293.       ai AIBILLYITCH
  294. ends
  295.  
  296. state checkbillyhitstate
  297.   spawn BLOOD
  298.   ifdead
  299.   {
  300.     state random_wall_jibs
  301.     // state drop_shotgun
  302.     addkills 1
  303.     ifwasweapon SHOTGUN
  304.     {
  305.       state drop_shotgun
  306.     }
  307.     ifwasweapon SHOTSPARK1
  308.     {
  309.       state drop_shotgun
  310.     }
  311.     ifwasweapon RADIUSEXPLOSION
  312.     {
  313.        state drop_shotgun
  314.        sound SQUISHED
  315.        spawn BLOODPOOL
  316.        state nf
  317.        ai AIBILLYJIBONE
  318.        break
  319.     }
  320.     else
  321.       ifwasweapon CROSSBOW
  322.       {
  323.         state drop_shotgun
  324.         sound SQUISHED
  325.         state standard_jibs
  326.         killit
  327.       }
  328.     else
  329.     {
  330.       ai AIBILLYDYING
  331.     }
  332.     sound BILLY_DYING
  333.   }
  334.   else
  335.   {
  336.     sound BILLY_PAIN
  337.     state random_wall_jibs
  338.  
  339.     ifrnd 64
  340.         ai AIBILLYHIT
  341.     else
  342.       ifrnd 64
  343.         ai AIBILLYSHOOTENEMY
  344.     else
  345.       ifrnd 64
  346.       {
  347.         ai AIBILLYFLEEENEMY
  348.         action ABILLYWALK
  349.       }
  350.   }
  351. ends
  352.  
  353. state billydyingstate
  354.   ifactioncount 11
  355.   {
  356.     ifrnd 64
  357.       spawn BLOODPOOL
  358.     state bf
  359.     iffloordistl 8
  360.       sound THUD
  361.     action ABILLYDEAD
  362.     move BILLYSTOPPED
  363.     break
  364.   }
  365. ends
  366.  
  367. state billytrkdyingstate
  368.   ifactioncount 5
  369.   {
  370.     spawn BLOODPOOL
  371.     state nf
  372.     iffloordistl 8
  373.       sound THUD
  374.     action ABILLYTRKDEAD
  375.     move BILLYSTOPPED
  376.     break
  377.   }
  378. ends
  379.  
  380. state billyjibbedstate
  381.   ifai AIBILLYJIBTWO
  382.     ifactioncount 5
  383.     {
  384.       iffloordistl 8
  385.         sound THUD
  386.       action ABILLYJIBDEAD
  387.       move BILLYSTOPPED
  388.       break
  389.     }
  390. ends
  391.  
  392. actor BILLYRAYSTAYPUT BILLYRAYSTRENGTH ABILLYSTAND
  393.   ai AIBILLYSEEKENEMY
  394.   cactor BILLYRAY
  395. enda
  396.  
  397. actor BILLYRAY BILLYRAYSTRENGTH ABILLYSTAND
  398.   fall
  399.   state checksquished
  400.   ifaction ABILLYSTAND
  401.     ai AIBILLYSEEKENEMY
  402.   else
  403.     ifaction ABILLYDEAD
  404.   {
  405.       strength 0
  406.       ifhitweapon
  407.         ifwasweapon RADIUSEXPLOSION
  408.       {
  409.         sound SQUISHED
  410.         state standard_jibs
  411.         killit
  412.       }
  413.       break
  414.   }
  415.   else ifaction ABILLYJIBONE
  416.   {
  417.     strength 0
  418.  
  419.     ifactioncount 30
  420.     {    
  421.       ai AIBILLYJIBTWO
  422.       break
  423.     }
  424.     ifhitweapon
  425.       ifwasweapon RADIUSEXPLOSION
  426.       {
  427.         sound SQUISHED
  428.         state standard_jibs
  429.         killit
  430.       }
  431.       break
  432.   }
  433.   else ifaction ABILLYJIBDEAD
  434.   {
  435.     strength 0
  436.     ifhitweapon
  437.       ifwasweapon RADIUSEXPLOSION
  438.       {
  439.         sound SQUISHED
  440.         state standard_jibs
  441.         killit
  442.       }
  443.       break
  444.   }
  445.   else ifaction ABILLYTRKDEAD
  446.   {
  447.     strength 0
  448.     ifhitweapon
  449.       ifwasweapon RADIUSEXPLOSION
  450.       {
  451.         sound SQUISHED
  452.         state standard_jibs
  453.         killit
  454.       }
  455.       break
  456.   }
  457.   else
  458.     ifai AIBILLYDYING
  459.       state billydyingstate
  460.   else
  461.     ifai AIBILLYTRKDYING
  462.       state billytrkdyingstate
  463.   else
  464.     ifai AIBILLYJIBONE
  465.       state billyjibbedstate
  466.   else
  467.     ifai AIBILLYJIBTWO
  468.       state billyjibbedstate
  469.   else
  470.     ifai AIBILLYHIT
  471.     {
  472.       ifactioncount 3
  473.       ai AIBILLYSEEKENEMY
  474.     }
  475.   else
  476.   {
  477.     ifai AIBILLYSEEKENEMY
  478.       state billyseekenemystate
  479.     else
  480.       ifai AIBILLYDODGE
  481.         state billyseekenemystate
  482.     else
  483.       ifai AIBILLYSHOOTENEMY
  484.         state billyshootenemystate
  485.     else
  486.       ifai AIBILLYFLEEENEMY
  487.         state billyfleeenemystate
  488.     else
  489.       ifai AIBILLYCHARGE
  490.         state billyseekenemystate
  491.     else
  492.       ifai AIBILLYITCH
  493.         state billyitchstate
  494.     else
  495.       ifai AIBILLYSCRATCH
  496.         state billyscratchstate
  497.     else
  498.       ifai AIBILLYSNIFF
  499.         state billysniffstate
  500.         
  501.     ifhittruck
  502.     {
  503.         ai AIBILLYTRKDYING
  504.         break
  505.     }
  506.     else ifhitweapon
  507.       state checkbillyhitstate
  508.  
  509.     ifrnd 1
  510.     { 
  511.       ifrnd 32
  512.         soundonce BILLY_ROAM
  513.       else
  514.         ifrnd 64
  515.           soundonce BILLY_ROAM2
  516.       else
  517.         soundonce BILLY_ROAM3
  518.     }
  519.  
  520.   }
  521. enda
  522.  
  523.  
  524.