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

  1. /*
  2. Actors:
  3.  
  4. Chot
  5. Chot2sp
  6. Chot3ct
  7. chot4ot
  8. chotmot    (Mask and open trench)
  9. ChotOT
  10. ChotCT
  11. */
  12.  
  13.  
  14.  
  15.  
  16. //*******************************************************************8
  17. // WALK CYCLES
  18.  
  19. Action(Chotwalk)
  20. {
  21.         file("pc\actors\Chot\xxx\Mwkshtcy.xxx",100,on);
  22.         trigger(_DIRwalking|_DIRforward);
  23.         break(on);
  24. //        offset(on);
  25. //        offsetstartframe(5);
  26. //        gravity(off);
  27.         connections(Chotwalk,ChotRun,ChotStandShoot,Chotidle);
  28. }
  29.  
  30.  
  31. //*******************************************************************8
  32. //RUN CYCLES
  33. action(ChotRun)
  34. {
  35.  
  36.         file("pc\actors\Chot\xxx\Mrun1p.xxx",100,on);
  37.         trigger(_DIRforward);
  38.         break(on);
  39. //        offset(on);
  40. //        offsetstartframe(9);
  41.         connections(ChotRun,ChotRunJump,Chotwalk,ChotIdle);
  42. }
  43.  
  44. action(ChotRunRight90)
  45. {
  46.         file("pc\actors\Chot\xxx\mrnshtl.ske",100,on);
  47.         nrintframes(4);
  48.         trigger(_DIRsideRight);
  49.         break(on);
  50.         connections(ChotRunRight90,ChotRun,Chotwalk,ChotStandShoot,ChotIdle);
  51. }
  52.  
  53. action(ChotRunLeft90)
  54. {
  55.         file("pc\actors\Chot\xxx\mrnshtr.ske",100,on);
  56.         nrintframes(4);
  57.         trigger(_DIRsideleft);
  58.         break(on);
  59.         connections(ChotRunLeft90,ChotRun,Chotwalk,ChotStandShoot,ChotIdle);
  60. }
  61.  
  62. action(ChotRunRight45)
  63. {
  64.         file("pc\actors\Chot\xxx\mrnSh45L.ske",100,on);
  65.         nrintframes(4);
  66.         trigger(_DIRsideRight);
  67.         break(on);
  68.         connections(ChotRunRight45,ChotRun,Chotwalk,ChotStandShoot,ChotIdle);
  69. }
  70.  
  71. action(ChotRunLeft45)
  72. {
  73.         file("pc\actors\Chot\xxx\mrnSh45R.ske",100,on);
  74.         nrintframes(4);
  75.         trigger(_DIRsideLeft);
  76.         break(on);
  77.         connections(ChotRunLeft45,ChotRun,Chotwalk,ChotStandShoot,ChotIdle);
  78. }
  79.  
  80.  
  81.  
  82. //***************************Run Backwards******************************
  83.  
  84. action(ChotRunBack)
  85. {
  86.  
  87. //        file("pc\actors\Chot\xxx\Mrnbkstp.xxx",100,off);
  88.         file("pc\actors\Chot\xxx\Mrnbkcyp.ske",100,on);
  89.         trigger(_DIRbackward);
  90.         break(on);
  91. //        offset(on);
  92. //        offsetstartframe(9);
  93. //        gravity(off);
  94.         connections(ChotRunBackJump,ChotRunBack,ChotIdle);
  95. }
  96.  
  97. action(ChotRunJump)
  98. {
  99.  
  100.         file("pc\actors\Chot\xxx\Mjmp3p.xxx",100,off);
  101.         trigger(_DIRjump);
  102. //        offset(off);
  103. //        offsetstartframe(1);
  104. //        gravity(off);
  105.         connections(ChotRun,Chotidle);
  106.  
  107. }
  108.  
  109. action(ChotRunBackJump)
  110. {
  111.  
  112.         file("pc\actors\Chot\xxx\Mjmpbkp.xxx",100,off);
  113.         trigger(_DIRjump);
  114.         break(off);
  115. //        offset(off);
  116. //        offsetstartframe(1);
  117. //        gravity(off);
  118.         connections(ChotRunback,ChotIdle);
  119.  
  120. }
  121.  
  122.  
  123. action(ChotPushBack)
  124. {
  125.         file("pc\actors\Chot\xxx\Mpshbk6p.xxx",100,off);
  126.         trigger(_DIRjump);
  127.         connections(Chotidle);
  128. }
  129.  
  130.  
  131. action(ChotPossesed)
  132. {
  133.         //file("pc\actors\Chot\xxx\mblprosp.xxx",100,off);
  134.         //file("pc\actors\Chot\xxx\mwundg.xxx",100,off);
  135.         file("pc\actors\prost1\xxx\mposs1.xxx",100,off);
  136.  
  137.         trigger(_DIRactorbulletcol);
  138.         break(off);
  139.         connections(Chotidle);
  140. }
  141.  
  142. action(ChotShot)
  143. {
  144.         file("pc\actors\Chot\xxx\mwundg.xxx",100,off);
  145.         trigger(_DIRactorbulletcol);
  146. //        gravity(off);
  147. //        collision(off);
  148.         connections(Chotidle);
  149. }
  150.  
  151. Action(Chotpickup)
  152. {
  153.         file("pc\actors\chot\xxx\Mneidl4p.xxx",100,off);
  154.         trigger(_DIRaction);
  155.         connections(Chotidle);
  156. }
  157.  
  158.  
  159. action(ChotIdle)
  160. {
  161.         file("pc\actors\Chot\xxx\Mneidl2p.xxx",2,on,-1,-1,Sub_RandomCopScratchesCrotch); //ass scratch
  162.         file("pc\actors\Chot\xxx\Mneidl3p.xxx",4,on,-1,-1,Sub_RandomCopScratchesCrotch);//crotch scratch
  163.         file("pc\actors\Chot\xxx\Mneidl1p.xxx",100,on);//look around
  164.  
  165.         trigger(_allDIR);
  166.         break(on);
  167. //        collision(on);
  168.         connections(GeneralThrownBack,ChotStandShoot,ChotRun,ChotRunBack,ChotWalk,Chotpickup,ChotPushback,ChotIdle);
  169. }
  170.  
  171.  
  172.  
  173. //*********************Special Chot Actions (eat, ritual, etc) **************
  174.  
  175.  
  176. action(ChotEatCop)
  177. {
  178.         file("pc\actors\Chot\xxx\ChEat2.ske",100,on);
  179.         trigger(_allDIR);
  180.         break(on);
  181.         nrintframes(8);
  182.         intforloop(on);
  183.         //nomove(true)
  184.         connections(ChotEatCop);
  185. }
  186.  
  187. action(ChotEatCop2)
  188. {
  189.         file("pc\actors\Chot\xxx\ChEat1.ske",50,on);
  190.         file("pc\actors\Chot\xxx\ChEat2.ske",100,on);
  191.         trigger(_allDIR);
  192.         break(on);
  193.         nrintframes(8);
  194.         intforloop(on);
  195.         //nomove(true)
  196.         connections(ChotEatCop2);
  197. }
  198.  
  199.  
  200. action(ChotStandUpFromEat)
  201. {
  202.         file("pc\actors\Chot\xxx\ChEatSt2.ske",100,off);
  203.         trigger(_allDIR);
  204.         break(on);
  205.         nrintframes(8);
  206.         connections(ChotStandUpFromEat);
  207. }    
  208.  
  209. //*************************** Shoot! ******************* 
  210. action(ChotStandShoot)
  211. {
  212. //        file("pc\actors\chot\xxx\Mfir2stp.xxx",100,off);
  213. //        file("pc\actors\chot\xxx\Mfir2cyG.xxx",100,on);
  214. //        file("pc\actors\chot\xxx\Mfir2ndp.xxx",100,off);
  215.         file("pc\actors\chot\xxx\Mfir2cyp.ske",100,on);
  216.         trigger(_DIRshoot);
  217.         break(on);
  218.         connections(ChotRunBack,Chotwalk,ChotRun,ChotStandShoot,Chotidle);
  219. }
  220.  
  221.  
  222.  
  223. action(GeneralThrownBack)
  224. {
  225.         file("pc\actors\Chot\xxx\mwundg.xxx",100,off);
  226.         //file("pc\actors\prost1\xxx\shotstrt.xxx",100,on);
  227.         trigger(_DIRactorbulletcol);
  228.         break(on);
  229.         connections(GeneralThrownBackEnd);
  230.  
  231. }
  232.  
  233. action(GeneralThrownBackEnd)
  234. {
  235.         file("pc\actors\prost1\xxx\shotstrt.xxx",100,off);
  236.         trigger(_DIRallcol);
  237.         break(off);
  238.         connections(GeneralThrownBackEnd2);
  239.  
  240. }
  241.  
  242.  
  243. action(GeneralThrownBackEnd2)
  244. {
  245.         file("pc\actors\prost1\xxx\shotend.ske",100,on);
  246.         trigger(_alldir);
  247.         break(off);
  248.         connections(GeneralThrownBackEnd);
  249. }
  250.  
  251.  
  252. Action(ChotThrowgrenade)
  253. {
  254.         file("pc\actors\copm\xxx\Mthrwgrp.xxx",100,on);
  255.         trigger(_allDir);
  256.         break(off);
  257.         connections(Chotidle);
  258. }
  259.  
  260.  
  261. action(ChotAboutFace)
  262. {
  263.         file("pc\actors\copm\xxx\mspnp.xxx",100,off);
  264.         trigger(_allDIR);
  265.         break(off);
  266.         connections(Chotidle);
  267. }
  268.  
  269.  
  270. action(ChotJump)
  271. {
  272.         file("pc\actors\prost1\xxx\jump2.ske",100,off);
  273.         nrintframes(3);
  274.         trigger(_allDIR);
  275.         connections(ChotJump);
  276. }
  277.  
  278.  
  279. action(ChotWound1)
  280. {
  281.         //file("pc\actors\copm\xxx\Mthrwfrg.xxx",100,off);
  282.         file("pc\actors\chot\xxx\Mthrwfg2.ske",100,off);
  283.         trigger(_DIRactorbulletcol);
  284.         break(off);
  285.         gravity(off);
  286.         collision(off);
  287.         move(0,0.1,0);
  288.         //nrintframes(4);
  289.         connections(ChotIdle);
  290. }
  291.  
  292. action(ChotWound2)
  293. {
  294.         file("pc\actors\chot\xxx\mwundg2.ske",100,off);
  295.         trigger(_DIRactorbulletcol);
  296.         gravity(off);
  297.         collision(off);
  298.         move(0,0.1,0);
  299.         break(off);
  300.         nrintframes(4);
  301.         connections(ChotWound2b);
  302. }
  303. action(ChotWound2b)
  304. {
  305.         file("pc\actors\copm\xxx\Mstun2p.xxx",100,off);
  306.         //trigger(_allDir);
  307.         gravity(off);
  308.         collision(off);
  309.         move(0,0.1,0);
  310.         trigger(_allDIR);
  311.         break(off);
  312.         nrintframes(4);
  313.         connections(ChotIdle);
  314. }
  315.