Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. script 100 ENTER //player initialize and monster spawner script
  2. {
  3. int a;
  4.  
  5. SetActorPosition(0, GetActorX(100+(100*PlayerNumber())), GetActorY(100+(100*PlayerNumber())), GetActorZ(100+(100*PlayerNumber())), TRUE);
  6.  
  7. Thing_ChangeTID(0, 150+(100*PlayerNumber()));
  8.  
  9. ClearInventory();
  10. GiveInventory("Chainsaw", 1);
  11. GiveInventory("Pistol", 1);
  12. GiveInventory("Shotgun", 1);
  13. GiveInventory("Clip", 30);
  14. GiveInventory("Shell", 11);
  15.  
  16. delay(70);
  17.  
  18. while(TRUE)
  19. {
  20. Spawn(spawntypename[(spawntype[PlayerNumber()]+random(0, 2))], GetActorX(100+(100*PlayerNumber()))+1088*cos(a), GetActorY(100+(100*PlayerNumber()))+1088*sin(a), GetActorZ(100+(100*PlayerNumber())), 120+(100*PlayerNumber()), ((a+0.5) >> 8));
  21. delay(spawndelay[PlayerNumber()]);
  22. a+=0.03; //use 90.0 for super slow spawning! (well, the thing moving around very slowly)
  23. }
  24. }
  25.  
  26. script 103 ENTER //score
  27. {
  28. int multiplier = 1;
  29. int multiplierstage = 1;
  30. int timelocal;
  31. int displaytime;
  32. int lastcount;
  33. int which;
  34. int score;
  35.  
  36. if (PlayerNumber() == 0){which=1;}
  37. if (PlayerNumber() == 1){which=0;}
  38.  
  39. delay(1);
  40.  
  41. if(GetCVAR("di_mode") == 2)
  42. {
  43. while(TRUE){
  44. if(timelocal > 0){timelocal--;}
  45. displaytime = timelocal/35;
  46. while(lastcount > ThingCount(T_NONE, 120+(100*PlayerNumber())))
  47. {
  48. lastcount--;
  49. GiveInventory("PointItem", 10*multiplier);
  50. multiplier++;
  51. timelocal=35*10;
  52. }
  53. if (timelocal <= 0)
  54. {
  55. multiplier = 1;
  56. multiplierstage = 1;
  57. }
  58. if (multiplier >= 5*multiplierstage)
  59. {
  60. ACS_Execute(235, 0, 35*multiplierstage, which, 0);
  61. multiplierstage++;
  62. }
  63. score = CheckInventory("PointItem");
  64. HudMessage(d:displaytime; HUDMSG_PLAIN, 5, CR_GOLD, 0.5, 0.07, 0);
  65. HudMessage(d:score; HUDMSG_PLAIN, 4, CR_RED, 0.5, 0.09, 0);
  66. delay(1);
  67. lastcount = ThingCount(T_NONE, 120+(100*PlayerNumber()));
  68. }
  69. }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement