home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Messiah / data1.cab / Program_Executable_Files / messiahscripts / Enemies / chot.hxx < prev    next >
Text File  |  1999-11-29  |  8KB  |  251 lines

  1.  
  2. Actor(chot)
  3. {
  4.         file(chotHeader);
  5.         rank(_RankSergeantM);
  6.  
  7.         startstate(statenormal);
  8. //        startaction(chotidle);
  9.         startaction(copidleNoGun);
  10.  
  11.         //AI variables. All characters using copgen.hxx needs these defined to work properly
  12.         float(_declare,AIControl,0);
  13.         float(_declare,AIHideControl,_AIHCInRoute);
  14.         float(_declare,AIUsage,_AIUHideForRetreat|_AIUHideForAttack|_AIUHideAttackOffensive|_AIUHideRetreatDefensive|_AIUHideLeanOutAttack);
  15.         float(_declare,AIAbility,_AIAJump|_AIAClimb|_AIAPickUpWeapon);
  16.         float(_declare,AIManPowerThreshold,300);
  17.         float(_declare,AIPowerRatingThreshold,50);
  18.         float(_declare,AIGrenadeThrowThreshold,10);
  19.  
  20.  
  21.         //XXXMsika, all this crap should go into copai.hxx, so the states are treated the same for all classes
  22.         if(VAIState==_AIstateChotEat && VAICon!=0)
  23.         {
  24.             if(Vaction!=ChotStandUpFromEat && Vaction!=ChotWalk)
  25.             {
  26.                 spawnaction(ChotEatCop);
  27.             }
  28.             if(Vaction==ChotEatCop)
  29.             {
  30.                 if(VFrame>=25 && VFrame<=28 && VRnd<50)
  31.                 {
  32.                     spawnparticle(fx_bloodspurt,3,emptyvector,emptyvector,-1);        //3 is throat
  33.                     spawnparticle(fx_bloodspray,3,emptyvector,emptyvector,-1);
  34.                     spawnparticle(fx_blood,3,emptyvector,emptyvector,-1);
  35.                     spawnparticle(fx_blood,3,emptyvector,emptyvector,-1);
  36.                 }
  37.             }
  38.         }
  39.  
  40.         #include    "messiahscripts\enemies\copgen.hxx"
  41. }
  42.  
  43. Actor(chothung)
  44. {
  45.         file(Chot2Header);
  46.         rank(_RankSergeantM);
  47.  
  48.         if(vactivetime==0)
  49.         {
  50.             call(AIChangeClass,_AIClassWorker);
  51.         }
  52.  
  53.         ActorFlag(_or,_AFLAGnopossesion|_AFLAGnolinkup);
  54.  
  55.         startstate(statenormal);
  56.         startaction(ChotPunchingBagIdle);
  57. /*
  58.         vector(_set,gactorpos,2,15,0);
  59.         vector(_set,gactorine,-45,200,40);
  60.         spawnparticle(fx_chain,8,gactorpos,gactorine,-1);
  61.         vector(_set,gactorpos,2,15,0);
  62.         vector(_set,gactorine,-45,215,40);
  63.         spawnparticle(fx_chain,8,gactorpos,gactorine,fx_chain2);
  64. */
  65.         if(VHealth<=0)
  66.         {
  67.             Direction(_clr,_DIRalive);
  68.             State(_or,StateDead);
  69.         }
  70.  
  71.         if(Vaction==ChotPunchingBagPunched)
  72.         {
  73.             if(VFrame==1)
  74.             {
  75.                 if(VTrigger==_DIRalive)
  76.                 {
  77.                     sample(SFXChotPainOuch,-1);
  78.                 }
  79.                 spawnparticle(fx_bloodspurt,1,emptyvector,emptyvector,-1);
  80.                 spawnparticle(fx_bloodspray,1,emptyvector,emptyvector,-1);
  81.                 spawnparticle(fx_blood,1,emptyvector,emptyvector,-1);
  82.                 spawnparticle(fx_blood,1,emptyvector,emptyvector,-1);
  83.             }
  84.         }
  85.  
  86.         if(VTrigger==_DIRalive && VTrigger==_DIRactorbulletcol && VACtion!=ChotPunchingBagShot)
  87.         {
  88.             spawnaction(ChotPunchingBagShot);
  89.         }
  90.  
  91.  
  92.  
  93.         //need a check for depossession - Only action possible if possessed
  94.         //need a check on bullet collision - dies instantly -> need Gabe to do a hanged-death animation
  95.  
  96.         callsub(BackGroundTriggerChecks);
  97. }
  98.  
  99. Actor(chot2sp)
  100. {
  101.         file(chotHeader);
  102.         rank(_RankSergeantM);
  103.  
  104.         startstate(statenormal);
  105.         startaction(copidleNoGun);
  106.         //startaction(chotidle);
  107.  
  108.         //AI variables. All characters using copgen.hxx needs these defined to work properly
  109.         float(_declare,AIControl,0);
  110.         float(_declare,AIHideControl,_AIHCInRoute);
  111.         float(_declare,AIUsage,_AIUHideForRetreat|_AIUHideForAttack|_AIUHideAttackOffensive|_AIUHideRetreatDefensive|_AIUHideLeanOutAttack);
  112.         float(_declare,AIAbility,_AIAJump|_AIAClimb|_AIAPickUpWeapon);
  113.         float(_declare,AIManPowerThreshold,300);
  114.         float(_declare,AIPowerRatingThreshold,50);
  115.         float(_declare,AIGrenadeThrowThreshold,10);
  116.  
  117.         #include    "messiahscripts\enemies\copgen.hxx"
  118. }
  119.  
  120. Actor(chot3ct)
  121. {
  122.         file(chotHeader);
  123.         rank(_RankSergeantM);
  124.  
  125.         startstate(statenormal);
  126.         startaction(copidleNoGun);
  127.  
  128.         //AI variables. All characters using copgen.hxx needs these defined to work properly
  129.         float(_declare,AIControl,0);
  130.         float(_declare,AIHideControl,_AIHCInRoute);
  131.         float(_declare,AIUsage,_AIUHideForRetreat|_AIUHideForAttack|_AIUHideAttackOffensive|_AIUHideRetreatDefensive|_AIUHideLeanOutAttack);
  132.         float(_declare,AIAbility,_AIAJump|_AIAClimb|_AIAPickUpWeapon);
  133.         float(_declare,AIManPowerThreshold,300);
  134.         float(_declare,AIPowerRatingThreshold,50);
  135.         float(_declare,AIGrenadeThrowThreshold,10);
  136.  
  137.         #include    "messiahscripts\enemies\copgen.hxx"
  138. }
  139. Actor(chot4ot)
  140. {
  141.         file(chotHeader);
  142.  
  143.         rank(_RankSergeantM);
  144.  
  145.         startstate(statenormal);
  146.         startaction(copidleNoGun);
  147.  
  148.         //AI variables. All characters using copgen.hxx needs these defined to work properly
  149.         float(_declare,AIControl,0);
  150.         float(_declare,AIHideControl,_AIHCInRoute);
  151.         float(_declare,AIUsage,_AIUHideForRetreat|_AIUHideForAttack|_AIUHideAttackOffensive|_AIUHideRetreatDefensive|_AIUHideLeanOutAttack);
  152.         float(_declare,AIAbility,_AIAJump|_AIAClimb|_AIAPickUpWeapon);
  153.         float(_declare,AIManPowerThreshold,300);
  154.         float(_declare,AIPowerRatingThreshold,50);
  155.         float(_declare,AIGrenadeThrowThreshold,10);
  156.  
  157.         #include    "messiahscripts\enemies\copgen.hxx"
  158. }
  159.  
  160.  
  161.  
  162. Actor(chotMOT) // Chot w/ mask and open trench
  163. {
  164.         file(ChotMOTHeader);
  165.  
  166.         rank(_RankSergeantM);
  167.  
  168.         startstate(statenormal);
  169.         startaction(copidleNoGun);
  170.  
  171.         //AI variables. All characters using copgen.hxx needs these defined to work properly
  172.         float(_declare,AIControl,0);
  173.         float(_declare,AIHideControl,_AIHCInRoute);
  174.         float(_declare,AIUsage,_AIUHideForRetreat|_AIUHideForAttack|_AIUHideAttackOffensive|_AIUHideRetreatDefensive|_AIUHideLeanOutAttack);
  175.         float(_declare,AIAbility,_AIAJump|_AIAClimb|_AIAPickUpWeapon);
  176.         float(_declare,AIManPowerThreshold,300);
  177.         float(_declare,AIPowerRatingThreshold,50);
  178.         float(_declare,AIGrenadeThrowThreshold,10);
  179.  
  180.         #include    "messiahscripts\enemies\copgen.hxx"
  181. }
  182.  
  183. Actor(chotCT) // chot w/ closed trench
  184. {
  185.         file(ChotCTHeader);
  186.  
  187.         rank(_RankSergeantM);
  188.  
  189.         startstate(statenormal);
  190.         startaction(copidleNoGun);
  191.  
  192.         //AI variables. All characters using copgen.hxx needs these defined to work properly
  193.         float(_declare,AIControl,0);
  194.         float(_declare,AIHideControl,_AIHCInRoute);
  195.         float(_declare,AIUsage,_AIUHideForRetreat|_AIUHideForAttack|_AIUHideAttackOffensive|_AIUHideRetreatDefensive|_AIUHideLeanOutAttack);
  196.         float(_declare,AIAbility,_AIAJump|_AIAClimb|_AIAPickUpWeapon);
  197.         float(_declare,AIManPowerThreshold,300);
  198.         float(_declare,AIPowerRatingThreshold,50);
  199.         float(_declare,AIGrenadeThrowThreshold,10);
  200.  
  201.         #include    "messiahscripts\enemies\copgen.hxx"
  202. }
  203.  
  204.  
  205.  
  206. Actor(chot2)
  207. {
  208.         file(Chot2Header);
  209.  
  210.         rank(_RankSergeantM);
  211.  
  212.         startstate(statenormal);
  213.         startaction(copidleNoGun);
  214.  
  215.         //AI variables. All characters using copgen.hxx needs these defined to work properly
  216.         float(_declare,AIControl,0);
  217.         float(_declare,AIHideControl,_AIHCInRoute);
  218.         float(_declare,AIUsage,_AIUHideForRetreat|_AIUHideForAttack|_AIUHideAttackOffensive|_AIUHideRetreatDefensive|_AIUHideLeanOutAttack);
  219.         float(_declare,AIAbility,_AIAJump|_AIAClimb|_AIAPickUpWeapon);
  220.         float(_declare,AIManPowerThreshold,300);
  221.         float(_declare,AIPowerRatingThreshold,50);
  222.         float(_declare,AIGrenadeThrowThreshold,10);
  223.  
  224.         #include    "messiahscripts\enemies\copgen.hxx"
  225. }
  226.  
  227. Actor(chot5)
  228. {
  229.         file(Chot5Header);
  230.  
  231.         rank(_RankSergeantM);
  232.  
  233.         startstate(statenormal);
  234.         startaction(copidleNoGun);
  235.  
  236.         //AI variables. All characters using copgen.hxx needs these defined to work properly
  237.         float(_declare,AIControl,0);
  238.         float(_declare,AIHideControl,_AIHCInRoute);
  239.         float(_declare,AIUsage,_AIUHideForRetreat|_AIUHideForAttack|_AIUHideAttackOffensive|_AIUHideRetreatDefensive|_AIUHideLeanOutAttack);
  240.         float(_declare,AIAbility,_AIAJump|_AIAClimb|_AIAPickUpWeapon);
  241.         float(_declare,AIManPowerThreshold,300);
  242.         float(_declare,AIPowerRatingThreshold,50);
  243.         float(_declare,AIGrenadeThrowThreshold,10);
  244.  
  245.         #include    "messiahscripts\enemies\copgen.hxx"
  246. }
  247.  
  248.  
  249.  
  250.  
  251.