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

  1.  
  2.  
  3.  
  4.  
  5. Actor(CopLSit)
  6. {
  7.         file(CopLSitHeader);
  8.         rank(_RankSergeantL);
  9.  
  10.         startstate(StateNormal);
  11.         startaction(Dweller1Sitting);
  12.  
  13.         if(VSniperMode==0)
  14.         {
  15.             if(vstate!=statedead)
  16.             {
  17.                 vector(_set,Gactorpos,15,10,20);
  18.                 spawnparticle(fx_flare,4,gactorpos,emptyvector,fx_coplaserflareblue);
  19.  
  20.             }
  21.         }
  22.  
  23.             
  24.         //AI variables. All characters using copgen.hxx needs these defined to work properly
  25.         float(_declare,AIControl,0);
  26.         float(_declare,AIHideControl,_AIHCInRoute);
  27.         float(_declare,AIUsage,_AIUHideForRetreat|_AIUHideForAttack|_AIUHideAttackDefensive|_AIUHideRetreatOffensive|_AIUHideLeanOutRetreat|_AIUHideLeanOutAttack);
  28.         float(_declare,AIAbility,_AIAJump|_AIAClimb|_AIAPickUpWeapon|_AIAFlashVisors);
  29.         float(_declare,AIManPowerThreshold,1);
  30.         float(_declare,AIPowerRatingThreshold,50);
  31.         float(_declare,AIGrenadeThrowThreshold,10);
  32.  
  33.         #include    "messiahscripts\enemies\copgen.hxx"
  34. }
  35.  
  36. Actor(DeadCopL)
  37. {
  38.     file(LightCopHeader);
  39.     rank(_RankScum);
  40.  
  41.     ActorFlag(_or,_AFLAGnopossesion);
  42.     ActorFlag(_or,_AFLAGnotarget);
  43.     ActorFlag(_or,_AFLAGnocollision);
  44.  
  45.     startstate(StateDead);
  46.     startaction(CopFallDead);
  47.  
  48.     if(VState!=StateDead)
  49.     {
  50.         Direction(_clr,_DIRalive);
  51.         State(_or,StateDead);
  52.     }
  53. }
  54.  
  55.  
  56.  
  57.  
  58. Actor(CopL)
  59. {
  60.         file(LightCopHeader);
  61.         rank(_RankSergeantL);
  62.  
  63.         startstate(StateNormal);
  64.         startaction(CopidleNoGun);
  65.  
  66.         if(VSniperMode==0)
  67.         {
  68.             if(vstate!=statedead)
  69.             {
  70.                 vector(_set,Gactorpos,15,10,20);
  71.                 spawnparticle(fx_flare,4,gactorpos,emptyvector,fx_coplaserflareblue);
  72.  
  73.             }
  74.         }
  75.  
  76.             
  77.         //AI variables. All characters using copgen.hxx needs these defined to work properly
  78.         float(_declare,AIControl,0);
  79.         float(_declare,AIHideControl,_AIHCInRoute);
  80.         float(_declare,AIUsage,_AIUHideForRetreat|_AIUHideForAttack|_AIUHideAttackDefensive|_AIUHideRetreatOffensive|_AIUHideLeanOutRetreat|_AIUHideLeanOutAttack);
  81.         float(_declare,AIAbility,_AIAJump|_AIAClimb|_AIAPickUpWeapon|_AIAFlashVisors);
  82.         float(_declare,AIManPowerThreshold,1);
  83.         float(_declare,AIPowerRatingThreshold,50);
  84.         float(_declare,AIGrenadeThrowThreshold,10);
  85.  
  86.         #include    "messiahscripts\enemies\copgen.hxx"
  87. }
  88.