• Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

Bo2 FX Codes

TheDeX

Member
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;
    }
}
 
nice! good post.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
      Chat Bot: Saatxd is our newest member. Welcome!
      Back
      Top