[HELP] Boss... What the Fuck is with him?

Do you have a question about making weapon mods, or do you just need some tutorials and resources? Ask about all of that here.

Moderator: wildweasel

User avatar
JacKThERiPPeR
Wake up... Mr. Freeman...
Posts: 17
Joined: Fri Jul 21, 2006 13:52

[HELP] Boss... What the Fuck is with him?

Post by JacKThERiPPeR » Thu May 24, 2007 19:50

Code: Select all

script 8 (void) {
	SetMusic("D_NULL");
	SetPlayerProperty(1, 1, PROP_TOTALLYFROZEN);
	Delay(35*2);
	ChangeCamera(999, 0, 0);
	Delay(35*2);
	ChangeFloor(1002, "GATE3");
	Floor_RaiseByValue(1002, 25, 16);
	Floor_RaiseByValue(669, 25, 320);
	Delay(35*10);
	hudmessage(s:"No... NO!!"; HUDMSG_PLAIN, 1, CR_GREEN, 1.5, 0.5, 3.0);
	Delay(35*5);
	ActivatorSound("brain/pain", 127);
	hudmessage(s:"HAHAHAHAHAHA!!!"; HUDMSG_PLAIN, 1, CR_RED, 1.5, 0.5, 5.0);
	Delay(35*6);
	ActivatorSound("brain/sight", 127);
	hudmessage(s:"Greetings mortal..."; HUDMSG_PLAIN, 1, CR_RED, 1.5, 0.5, 

3.0);
	Delay(35*4);
	ActivatorSound("brain/sight", 127);
	hudmessage(s:"... are you ready to die?"; HUDMSG_PLAIN, 1, CR_RED, 1.5, 

0.5, 3.0);
	Delay(35*4);
	hudmessage(s:"Fuck you!!!"; HUDMSG_PLAIN, 1, CR_GREEN, 1.5, 0.5, 2.0);
	Delay(35*3);
	ActivatorSound("brain/pain", 127);
	hudmessage(s:"DIE!!!"; HUDMSG_PLAIN, 1, CR_RED, 1.5, 0.5, 3.0);
	Delay(35*4);
	SetPlayerProperty(1, 0, PROP_TOTALLYFROZEN);
	ChangeCamera(0, 0, 0);
	BossHealth = 100;
	ACS_ExecuteAlways(9, 1);
	ACS_ExecuteAlways(10, 1);
	SetMusic("D_PARTY");
}

script 9 (void) {
	if (BossHealth == 0) {
		//TODO: End boss
	} else {
		if (BossHealth <= 100) {
			SetFont("BOSSB4");
		} else if (BossHealth < 75) {
			SetFont("BOSSB3");
		} else if (BossHealth < 50) {
			SetFont("BOSSB2");
		} else if (BossHealth < 25) {
			SetFont("BOSSB1");
		}
		hudmessage(s:"a"; HUDMSG_PLAIN, 999, CR_UNTRANSLATED, 0.1, 1.1, 

1);
		Delay(1);
		Restart;
	}
}

script 10 (void) {
	if (BossHealth > 0) {
		SpawnSpot("WallyBear", 900, 0, 64);
		SpawnSpot("WallyBear", 901, 0, 64);
		Delay(35*20);
		Restart;
	}
}

script 11 (void) {
	BossHealth--;
}

script 12 (void) {
	if (ThingCount(0, 2001) == 0) {
		ACS_Execute(8, 1);
	}
}
Well, I have this code. This code what is supposed to do is to spawn WallyBear classes on mapspots, and when the "boss wall" is shot, then the Health lowers. However, it fails, and doesn't do anything with spawning WallyBears or lowering the Health. Any suggestions?

Return to “Weapon Modding Help & Resources”