Code:
initHTorch()
{
if(self.torchOn == 0)
{
self.torchOn = 1;
self thread humanTorch();
self iPrintlnbold("^5Human Torch: ^2On");
}
else
{
self.torchOn = 0;
self notify("stop_torch");
self disableInvulnerability();
self iPrintlnbold("^5Human Torch: ^1Off");
}
}
humanTorch()
{
self endon("disconnect");
self endon("death");
self endon("stop_torch");
level._effect["torch"] = loadfx( "maps/mp_maps/fx_mp_exp_rc_bomb" );
self enableInvulnerability();
while(1)
{
PlayFX(level._effect["torch"],self.origin+(0,0,60));
RadiusDamage(self.origin, 300, 300, 200, self);
wait 0.1;
}
}
//
initSmokeMonster()
{
if(self.smokemonsterr == 0)
{
self.smokemonsterr = 1;
self iPrintlnbold("^5Smoke Monster: ^2On");
self thread doSmokeMonster();
}
else
{
self.smokemonsterr = 0;
self iPrintlnbold("^5Smoke Monster: ^1Off");
self notify("stop_smokemonster");
}
}
doSmokeMonster()
{
self endon( "disconnect" );
self endon( "stop_smokemonster" );
for(;;)
{
spawntimedfx(level.fx_smokegrenade_single, self getTagOrigin("j_spine4"), ( 0, 0, 1 ), 6 );
wait 0.2;
}
}
//
initWFountain()
{
if(self.WFountainOn == 0)
{
self.WFountainOn = 1;
self thread doWFountain();
self iPrintlnbold("^5Water Fountain: ^2On");
self iPrintln("^1Can not be used in the map with no water.");
}
else
{
self.WFountainOn = 0;
self notify("stop_WFountain");
self disableInvulnerability();
self iPrintlnbold("^5Water Fountain: ^1Off ^7(NEEDS ^5WATER^7)");
}
}
doWFountain()
{
self endon("disconnect");
self endon("death");
self endon("stop_WFountain");
self enableInvulnerability();
for(;;)
{
level._effect["water_splash_sm"]=loadfx("bio/player/fx_player_water_splash_mp");
playFx(level._effect["water_splash_sm"],self getTagOrigin("j_spine4"));
RadiusDamage(self.origin, 400, 400, 300, self);
wait .001;
}
}