Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script 100 ENTER //player initialize and monster spawner script
- {
- int a;
- SetActorPosition(0, GetActorX(100+(100*PlayerNumber())), GetActorY(100+(100*PlayerNumber())), GetActorZ(100+(100*PlayerNumber())), TRUE);
- Thing_ChangeTID(0, 150+(100*PlayerNumber()));
- ClearInventory();
- GiveInventory("Chainsaw", 1);
- GiveInventory("Pistol", 1);
- GiveInventory("Shotgun", 1);
- GiveInventory("Clip", 30);
- GiveInventory("Shell", 11);
- delay(70);
- while(TRUE)
- {
- 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));
- delay(spawndelay[PlayerNumber()]);
- a+=0.03; //use 90.0 for super slow spawning! (well, the thing moving around very slowly)
- }
- }
- script 103 ENTER //score
- {
- int multiplier = 1;
- int multiplierstage = 1;
- int timelocal;
- int displaytime;
- int lastcount;
- int which;
- int score;
- if (PlayerNumber() == 0){which=1;}
- if (PlayerNumber() == 1){which=0;}
- delay(1);
- if(GetCVAR("di_mode") == 2)
- {
- while(TRUE){
- if(timelocal > 0){timelocal--;}
- displaytime = timelocal/35;
- while(lastcount > ThingCount(T_NONE, 120+(100*PlayerNumber())))
- {
- lastcount--;
- GiveInventory("PointItem", 10*multiplier);
- multiplier++;
- timelocal=35*10;
- }
- if (timelocal <= 0)
- {
- multiplier = 1;
- multiplierstage = 1;
- }
- if (multiplier >= 5*multiplierstage)
- {
- ACS_Execute(235, 0, 35*multiplierstage, which, 0);
- multiplierstage++;
- }
- score = CheckInventory("PointItem");
- HudMessage(d:displaytime; HUDMSG_PLAIN, 5, CR_GOLD, 0.5, 0.07, 0);
- HudMessage(d:score; HUDMSG_PLAIN, 4, CR_RED, 0.5, 0.09, 0);
- delay(1);
- lastcount = ThingCount(T_NONE, 120+(100*PlayerNumber()));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement