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

  1. // TURD MINION
  2.  
  3. action AMINRUN      0   8  5  1 11
  4. action AMINTHROW   40  11  5  1 18
  5. action AMINFREAK   95   5  5  1 8
  6. action AMINFREAK2  95   5  5  1 8
  7. action AMINJUMP   120   4  5  1 26
  8. action AMINFALL   140   4  5
  9.  
  10. move MINRUNVEL    125 -16
  11. move MINJUMPVEL   264      // This value seems to control how far
  12.                            // the Minion jumps
  13. move MINJUMPVEL2  396
  14. move MINSTOP
  15.  
  16. ai AIMINDODGE     AMINRUN     MINRUNVEL  dodgebullet
  17. ai AIMINJUMP      AMINJUMP    MINJUMPVEL jumptoplayer
  18. ai AIMINRUN       AMINRUN     MINRUNVEL  geth
  19. ai AIMINTHROW     AMINTHROW   MINSTOP    faceplayer
  20. ai AIMINFREAK     AMINFREAK   MINSTOP    faceplayerslow
  21. ai AIMINFREAK2    AMINFREAK   MINSTOP    spin
  22. ai AIMINAMBUSH    AMINJUMP    MINJUMPVEL2 jumptoplayer
  23.  
  24. state minfreakstate
  25.  
  26.   ifactioncount 2
  27.       soundonce MN_FREAK
  28.  
  29.   // if we've done our dance 10 times
  30.   // and we're close to the player
  31.   // Self-destruct and cause damage
  32.   ifactioncount 20
  33.   {
  34.     ifpdistl 854
  35.     {
  36.       sound SQUISHED
  37.       state standard_minionjibs
  38.       addphealth MINIONFREAK
  39.       killit
  40.     }
  41.     // else run
  42.     else
  43.       ai AIMINRUN
  44.   }
  45. ends
  46.  
  47. state minfreakstate2
  48.  
  49.   ifactioncount 2
  50.       soundonce MN_FREAK
  51.  
  52.   // if we've done our dance 10 times
  53.   // and we're close to the player
  54.   // Self-destruct and cause damage
  55.   ifactioncount 20
  56.   {
  57.     ifpdistl 4096
  58.     {
  59.       ifrnd 32
  60.       {
  61.         shoot SHITBALL
  62.         shoot SHITBALL
  63.         state minion_shitshower
  64.         soundonce LN_CRAP
  65.       }
  66.       ifactioncount 26
  67.       {
  68.         sound SQUISHED
  69.         ifpdistl 854
  70.         {
  71.           addphealth MINIONFREAK
  72.         }
  73.         soundonce LN_CRAP
  74.         state standard_minionjibs
  75.         state standard_minionjibs
  76.         killit
  77.       }
  78.     }
  79.     else
  80.       ai AIMINFREAK
  81.   }
  82.  
  83. ends
  84.  
  85. state minjumpstate
  86.   // If we're on frame AMINFALL, define above
  87.   // (last frame of AMINJUMP) and distance to floor < 16
  88.   // Start Running
  89.   ifaction AMINFALL
  90.   {
  91.     iffloordistl 16
  92.       ai AIMINRUN
  93.   }
  94.   // Else continue Jump anim until count > NN
  95.   // Then force frame to AMINFALL
  96.   // The ifcount NN controls the timing
  97.   // on when the Minion goes into his ready to land
  98.   // frame.  To tweak the timing on this
  99.   // adjust the ifcount NN value.
  100.   else
  101.     ifcount 32
  102.       action AMINFALL
  103. ends
  104.  
  105. state minrunstate
  106.     // If we've gone through 12 cycles of the
  107.     // Run animation, either Run again (low prob)
  108.     // OR
  109.     //  Throw shit (highest prob)
  110.     //  Jump       (middle  prob)
  111.     //  Freak      (low     prob)
  112.     ifactioncount 12
  113.     {
  114.       // Keep on running
  115.       ifrnd 4
  116.       {
  117.         resetactioncount
  118.         resetcount
  119.       }
  120.       else
  121.       {
  122.         // If we can see the player
  123.         ifcansee
  124.         {
  125.           // either throw, jump, or freak
  126.           ifrnd 32
  127.             ai AIMINTHROW
  128.           else ifrnd 16
  129.             ai AIMINJUMP
  130.           else ifrnd 8
  131.             ai AIMINFREAK
  132.           else ifrnd 4
  133.             ai AIMINFREAK2
  134.         }
  135.         // Go find player
  136.         else
  137.           move MINRUNVEL seekplayer
  138.  
  139.       }
  140.     }
  141. ends
  142.  
  143. state minthrowstate
  144.     ifcount 18 {
  145.       shoot SHITBALL
  146.       ai AIMINRUN
  147.     }
  148. ends
  149.  
  150.  
  151. state checkminhit
  152.   //
  153.   spawn BLOOD
  154.   ifdead
  155.   {
  156.     // Sound Dying sounds, spray jibs
  157.     // Then delete Minion from game
  158.     addkills 1
  159.     sound SQUISHED
  160.     state standard_minionjibs
  161.  
  162.     // If Minion is close to player
  163.     // Inflict damage
  164.     ifpdistl 854
  165.       addphealth MINIONFREAK
  166.  
  167.     killit
  168.     // sound HULK_DYING
  169.   }
  170.   else
  171.   {
  172.     sound MN_PN
  173.     state random_wall_jibs
  174.  
  175.     // If there are projectiles near
  176.     // Dodge or Throw (same prob)
  177.     // else if none of above selected
  178.     // No change (current ai will continue)
  179.     ifbulletnear
  180.     {
  181.        ifrnd 32
  182.          ai AIMINDODGE
  183.        else ifrnd 32
  184.          ai AIMINTHROW
  185.     }
  186.     // else No projectiles near so
  187.     // either
  188.     // Throw (high prob)
  189.     // Jump  (mid  prob)
  190.     // Freak (low  prob)
  191.     // No change (current ai will continue)
  192.     else ifrnd 32
  193.        ai AIMINTHROW
  194.     else ifrnd 16
  195.        ai AIMINJUMP
  196.     else ifrnd 8
  197.        ai AIMINFREAK
  198.   }
  199. ends
  200.  
  201. actor MINION MINIONSTRENGTH AMINRUN
  202.   fall
  203.   state checksquished
  204.   ifai 0
  205.   {
  206.     cstator 257
  207.     ifspritepal 7
  208.     {
  209.       ai AIMINAMBUSH
  210.     }
  211.     else
  212.     {
  213.       ai AIMINRUN
  214.     }
  215.   }
  216.   else
  217.   {
  218.     fall
  219.     ifai AIMINRUN
  220.     {
  221.       state minrunstate
  222.     }
  223.     else ifai AIMINTHROW
  224.     {
  225.       state minthrowstate
  226.     }
  227.     else ifai AIMINFREAK
  228.     {
  229.       state minfreakstate
  230.     }
  231.     else ifai AIMINFREAK2
  232.     {
  233.       state minfreakstate2
  234.     }
  235.     else ifai AIMINJUMP
  236.     {
  237.        state minjumpstate
  238.     }
  239.     else ifai AIMINDODGE
  240.     {
  241.        ifactioncount 4
  242.          ai AIMINRUN
  243.     }
  244.     else ifai AIMINAMBUSH
  245.     {
  246.       state minjumpstate
  247.     }
  248.   }
  249.  
  250.   ifhitweapon
  251.     state checkminhit
  252.  
  253.   ifrnd 1
  254.   {
  255.     ifrnd 32
  256.       soundonce MN_AMB
  257.     else ifrnd 128
  258.       soundonce MN_REC
  259.   }
  260.  
  261. enda
  262.