Advertisement
ijontichy

<stdin>

Jul 30th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. Script 3 (int PlayNum)
  2. {
  3. SetActivator(500+PlayNum);
  4. while(GetActorProperty(0, APROP_HEALTH) > 0)
  5. {
  6. int x = GetActorX(0);
  7. int z = GetActorZ(0);
  8. int vx = GetActorVelX(0);
  9. int vz = GetActorVelZ(0);
  10. int cx = GetActorX(100+PlayerNumber());
  11. int cz = GetActorZ(100+PlayerNumber());
  12. ModY[PlayerNumber()] = -256.0;
  13.  
  14. int Input = GetPlayerInput(0, INPUT_BUTTONS);
  15.  
  16. if(Input & BT_MOVELEFT)
  17. {
  18. Angle[PlayerNumber()] = 0.5; ModZ[PlayerNumber()] = 32.0;
  19. DownFirst[PlayerNumber()] = False;
  20. UpFirst[PlayerNumber()] = False;
  21. DownBuffer[PlayerNumber()] = 0;
  22. UpBuffer[PlayerNumber()] = 0;
  23. }
  24. else if(Input & BT_MOVERIGHT)
  25. {
  26. Angle[PlayerNumber()] = 1.0; ModZ[PlayerNumber()] = 32.0;
  27. DownFirst[PlayerNumber()] = False;
  28. UpFirst[PlayerNumber()] = False;
  29. DownBuffer[PlayerNumber()] = 0;
  30. UpBuffer[PlayerNumber()] = 0;
  31. }
  32.  
  33. if(GetActorY(0) != LVL_YPOS && YSuspend[PlayerNumber()] == False)
  34. SetActorPosition(0, GetActorX(500+PlayerNumber()),
  35. LVL_YPOS, GetActorZ(500+PlayerNumber()), 0);
  36.  
  37. SetActorAngle(0, Angle[PlayerNumber()]);
  38.  
  39. if(Input & BT_LOOKUP && Pogo[PlayerNumber()] == False
  40. && GetActorProperty(0, APROP_HEALTH) > 0)
  41. UpBuffer[PlayerNumber()]++;
  42.  
  43. if(Input & BT_LOOKDOWN && Pogo[PlayerNumber()] == False
  44. && GetActorProperty(0, APROP_HEALTH) > 0)
  45. DownBuffer[PlayerNumber()]++;
  46.  
  47. if(DownBuffer[PlayerNumber()] > 55)
  48. {
  49. if(DownFirst[PlayerNumber()] == False)
  50. {
  51. SetActorState(0, "LookDown", 0);
  52. DownFirst[PlayerNumber()] = True;
  53. ModZ[PlayerNumber()] = 0;
  54.  
  55. }
  56.  
  57. if(ModZ[PlayerNumber()] > -96.0)
  58. ModZ[PlayerNumber()] -= 4.0;
  59.  
  60. }
  61.  
  62. if(UpBuffer[PlayerNumber()] > 55)
  63. {
  64. if(UpFirst[PlayerNumber()] == False)
  65. {
  66. SetActorState(0, "LookUp", 0);
  67. UpFirst[PlayerNumber()] = True;
  68. ModZ[PlayerNumber()] = 0;
  69.  
  70. }
  71.  
  72. if(ModZ[PlayerNumber()] < 96.0)
  73. ModZ[PlayerNumber()] += 4.0;
  74.  
  75. }
  76.  
  77. SetActorPosition(100+PlayerNumber(), x, LVL_YPOS+ModY[PlayerNumber()], z+32.0+ModZ[PlayerNumber()], 0);
  78. //Spawn("Shadow", 0, 0, 0, 900+PlayerNumber(), 0);
  79. ////SetActorPosition(900+PlayerNumber(), x, LVL_YPOS, GetActorFloorZ(0), 0);
  80. //delay(LOOPTICS);
  81. //
  82. }
  83. //
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement