Results 1 to 1 of 1
  1. #1
    Member
    Join Date
    Jan 2015
    Posts
    71
    Points
    138
         User Info     Contact     Gamer ID
    Join Date
    Jan 2015
    Posts
    71
    Points
    138

    Contact info:

    Youtube Channel: http://www.youtube.com/user/nicisthatdeal

    Default (SC7E52)AllMoDs edit of JellyInjector's and Kyaii Chaos Dogs[ plays on all maps]

    cred to JellyInjector's and Kyaii
    took most of stuff out added some things

    ADD TO A MODMENU THAT HAS CHAOS DOGS IN IT OR IT WILL NOT PLAY RIGHT

    fixes
    no log win players dies and is changed to spectator
    no wii freez
    Dogs max at once is set to 6
    only tested with 5 players in lobby worked fine
    only made it to round 6

    UPDATES
    comming soon
    adding lots of stuff
    like a Raygun and more

    Code:
    #include common_scripts\ utility;
    #include maps\ mp\ _airsupport;
    #include maps\ mp\ _utility;
    #include maps\ mp\ gametypes\ _hud_util;
    
    
    init()
    {
      thread onPlayerConnect();
      thread onPlayerConnected();
    
      level.casSpot = -110;
      level.casColor = 1;
      level.prematchPeriod = 10;
      level.doublePoints = 0;
      level.instaKill = 0;
      level.lastPowerup = 99;
    
    
      thread cleanUpSystem();
      thread summonDogs();
      thread roundCount();
    
      game["icons"]["allies"] = "compass_objpoint_dogs";
      setdvar("g_TeamIcon_Allies", game["icons"]["allies"]);
    
      PrecacheShader("perk_times_two");
      PrecacheShader("hud_ammo_refill_drop");
      PrecacheShader("hud_ks_minigun");
      PrecacheShader("headicon_dead");
    
    }
    onPlayerConnect()
    {
      for(;;)
      {
        level waittill("connecting", player);
    
        player thread playerTeams();
      }
    }
    onPlayerConnected()
    {
      for(;;)
      {
        level waittill("connected", player);
    
        player thread onPlayerSpawned();
        player thread cash();
        player thread globalVars();
        player thread setupTeam();
        player thread reset();
      }
    }
    onPlayerSpawned()
    {
      for(;;)
      {
        self waittill("spawned_player");
    
        self thread spawnStuff();
    
      }
    }
    spawnStuff()
    {
      self clearPerks();
    
      self.maxhealth = 400;
      self.health = self.maxhealth;
    }
    reset()
    {
      self endon("disconnect");
    
      for(;;)
      {
        self waittill("death");
    
        self.playerStatus = "dead";
        self[[level.spectator]]();
    
        self.speedPerk = 0;
        self.healthPerk = 0;
        self.weaponPerk = 0;
    
        if(self.cash < 100)
          self.cash = 100;
        self.cas setText(self.casColor + self.cash);
    
        level waittill("round_up");
    
        self.playerStatus = "alive";
        self[[level.allies]]();
      }
    }
    cash()
    {
    
    
      self.cash = 150;
    
      self.casSpot = level.casSpot;
      level.casSpot += 20;
      if(level.casColor == 1)
      {
        self.casColor = "^2";
        self.casColor2 = "Green";
      }
      else if(level.casColor == 2)
      {
        self.casColor = "^1";
        self.casColor2 = "Red";
      }
      else if(level.casColor == 3)
      {
        self.casColor = "^5";
        self.casColor2 = "Blue";
      }
      else if(level.casColor == 4)
      {
        self.casColor = "^3";
        self.casColor2 = "Yellow";
      }
      else if(level.casColor == 5)
      {
        self.casColor = "";
        self.casColor2 = "White";
      }
      else if(level.casColor == 6)
      {
        self.casColor = "^9";
        self.casColor2 = "Orange";
      }
      else if(level.casColor == 7)
      {
        self.casColor = "^6";
        self.casColor2 = "Purple";
      }
      else if(level.casColor == 8)
      {
        self.casColor = "^8";
        self.casColor2 = "Grey";
      }
      else if(level.casColor == 9)
      {
        self.casColor = "^0";
        self.casColor2 = "Black";
      }
      level.casColor++;
    
      self.casID = self createFontString("objective", 1.5);
      self.casID setPoint("CENTER", "RIGHT", -40, -130);
      self.casID setText("You are " + self.casColor + self.casColor2);
      self.casID.foreground = true;
      self.casID.hidewheninmenu = true;
    
      self.cas = createServerFontString("objective", 2);
      self.cas setPoint("CENTER", "RIGHT", -40, self.casSpot);
      self.cas setText(self.casColor + self.cash);
      self.cas.foreground = true;
      self.cas.hidewheninmenu = true;
    
      self thread casDelete();
    }
    casDelete()
    {
      self waittill("disconnect");
    
      self.cas delete();
      level.casSpot -= 20;
      level.casColor--;
    }
    moreCash(points)
    {
      if(level.doublePoints == 1 && points > 0 && points != 250)
        points = points * 2;
    
      self.cash += points;
      self.cas setText(self.casColor + self.cash);
    
      cash = createServerFontString("objective", 1.5);
      cash setPoint("CENTER", "RIGHT", -70, self.casSpot);
      if(points > 0)
        cash setText("^3+" + points);
      else
        cash setText("^3" + points);
      cash.foreground = true;
      cash.hidewheninmenu = true;
    
      h = randomInt(50);
      cash moveOverTime(1.0);
      cash setPoint("CENTER", "RIGHT", -170, (self.casSpot - 25) + h);
    
      wait 1;
      cash destroy();
    }
    globalVars()
    {
      setDvar("ai_corpseCount", "5");
      setDvar("scr_dog_count", "100");
      setDvar("scr_dog_time", "65");
      setDvar("cg_spectateThirdPerson", "0");
      setDvar("scr_dog_max_at_once", "6");
      setDvar("g_TeamName_Allies", "Humans");
      setDvar("g_TeamName_Axis", "");
      setDvar("g_deadChat", "1");
      setDvar("g_gametype", "tdm");
      setDvar("scr_game_killstreaks", 0);
      setDvar("scr_disable_cac", 1);
      setDvar("scr_tdm_timelimit", 0);
      SetMatchFlag("disableingamemenu", 1);
    }
    summonDogs()
    {
      wait 4;
    
      level thread maps\ mp\ _dogs::dog_manager_spawn_dogs("axis", "allies", "0");
      level thread gameover();
      level thread cleanUpdogs();
    }
    roundCount()
    {
      level.round = 1;
      level.dogHealth = "65";
    
    
      setDvar("scr_dog_health", level.dogHealth);
    
    
      level.rnd = createServerFontString("objective", 2.3);
      level.rnd setPoint("TOPLEFT", "TOPLEFT", 10, 220);
      level.rnd setText("^2Round  ^1" + level.round);
      level.rnd.foreground = true;
      level.rnd.hidewheninmenu = true;
    
      for(;;)
      {
        level waittill("round_up");
    
        level.round += 1;
        level.rnd setText("^2Round  ^1" + level.round);
    
        level.dogHealthNum = int(level.dogHealth);
        level.dogHealthNum += 10;
        level.doghealth = level.dogHealthNum + "";
        if(level.instaKill == 0)
          setDvar("scr_dog_health", level.dogHealth);
    
    
        level thread maps\ mp\ _dogs::dog_manager_spawn_dogs("axis", "allies", "0");
      }
    }
    cleanUpSystem()
    {
      level endon("game_wasover");
    
      rndTimer = createServerFontString("objective", 1.5);
      rndTimer setPoint("CENTER", "TOP", 0, 10);
    
      for(i = 60; i > 0; i--)
      {
        rndTimer setText("Next round in: ^3" + i);
        wait 1.0;
      }
      rndTimer destroy();
    
      for(i = 0; i < level.dogs.size; i++)
      {
        if(!isdefined(level.dogs[i]))
        {
          continue;
        }
        level.dogs[i] delete();
        wait 0.01;
      }
      level notify("dogs done");
      level notify("round_up");
      level thread cleanUpSystem();
    }
    cleanUpdogs()
    {
      wait 30;
    
      for(i = 0; i < level.dogs.size; i++)
      {
        if(!isdefined(level.dogs[i]))
        {
          continue;
        }
        level.dogs[i] delete();
        wait 0.01;
      }
      level thread summonDog1();
    }
    summonDog1()
    {
      wait 1;
    
      level thread maps\ mp\ _dogs::dog_manager_spawn_dogs("axis", "allies", "0");
      level thread gameover();
    }
    setupTeam()
    {
      if(self.team == ("axis" || "spectator" || "none" || undefined))
      {
        wait 0.2;
        self[[level.allies]]();
      }
      self.playerStatus = "alive";
    }
    gameover()
    {
      self endon("disconnect");
    
      wait 5;
      for(;;)
      {
        if(level.aliveCount["allies"] == 0)
        {
          thread maps\ mp\ gametypes\ _globallogic::endGame("axis", "You survived ^1" + level.round + "^7 rounds!");
    
        }
    
        wait 0.1;
      }
    }
    playerTeams()
    {
      level endon("game_wasover");
    
      for(;;)
      {
        wait 1.0;
        if(self.playerStatus == "alive" && self.team == "allies")
        {
          self.playerStatus = "alive";
        }
        else if(self.playerStatus == "alive" && self.team == ("axis" || "spectator" || "none" || undefined))
        {
          self.playerStatus = "alive";
          self[[level.allies]]();
        }
        else if(self.playerStatus == "dead" && self.team == ("axis" || "allies" || "none" || undefined))
        {
          self.playerStatus = "dead";
          self[[level.spectator]]();
        }
      }
    }
    powerup(dogOrigin)
    {
      level.powerup = randomInt(40);
      if(level.powerup == level.lastPowerup)
      {
        while(level.powerup == level.lastPowerup)
          level.powerup = randomInt(3);
        level.lastPowerup = level.powerup;
      }
    
      if(level.powerup == 0)
        thread doPowerup("double_points", dogOrigin, "perk_times_two", 35, -200);
      if(level.powerup == 1)
        thread doPowerup("insta_kill", dogOrigin, "headicon_dead", 35, -150);
      if(level.powerup == 2)
        thread doPowerup("max_ammo", dogOrigin, "hud_ammo_refill_drop", 0, 0);
      if(level.powerup == 3)
        thread doPowerup("death_machine", dogOrigin, "hud_ks_minigun", 20, -100);
    }
    doPowerup(powerup, origin, icon, time, Xspot)
    {
      powerupIcon = newTeamHudElem("allies");
      powerupIcon.x = origin[0];
      powerupIcon.y = origin[1];
      powerupIcon.z = origin[2] + 35;
      powerupIcon.alpha = 1;
      powerupIcon.archived = true;
      powerupIcon setShader(icon, 20, 20);
      powerupIcon setwaypoint(false);
    
      powerupSpot = spawn("script_model", origin);
    
      p = 0;
      while(isDefined(powerupSpot) && p != 300)
      {
        wait 0.1;
        for(i = 0; i < level.players.size; i++)
        {
          if(distance(powerupSpot.origin, level.players[i].origin) < 50)
          {
            powerupIcon destroy();
            powerupSpot delete();
            break;
          }
          wait 0.01;
        }
        p++;
      }
    
      if(p == 300)
      {
        powerupIcon destroy();
        powerupSpot delete();
      }
      else
      {
        switch(powerup)
        {
          case "double_points":
            thread doublePoints();
            break;
          case "insta_kill":
            thread instaKill();
            break;
          case "max_ammo":
            thread maxAmmo();
            break;
          case "death_machine":
            thread deathMachine();
            break;
        }
        thread doPowerupDisplay(icon, Xspot, time, powerup);
      }
    }
    doPowerupDisplay(icon, Xspot, time, powerup)
    {
      if(powerup != "max_ammo")
      {
        screenIcon = createServerIcon(icon, 50, 50, "allies");
        screenIcon.x = Xspot;
        screenIcon.y = -120;
        screenIcon.horzAlign = "center";
        screenIcon.vertAlign = "bottom";
        screenIcon.alpha = 0.85;
    
        wait(time - 5);
    
        for(i = 5; i > 0; i--)
        {
          screenIcon.alpha = 0;
          wait 0.3;
          screenIcon.alpha = 0.85;
          wait 0.8;
        }
    
        level notify(powerup);
        screenIcon destroy();
      }
      else
        iPrintlnBold("^3MAX AMMO");
    }
    deathMachine()
    {
      iPrintlnBold("Death Machines For Everyone");
      for(i = 0; i < level.players.size; i++)
      {
        level.players[i]._curWep = level.players[i] getCurrentWeapon();
        level.players[i] giveWeapon("minigun_mp");
        level.players[i] giveMaxAmmo("minigun_mp");
        level.players[i] switchToWeapon("minigun_mp");
        wait 0.01;
      }
    
      level waittill("death_machine");
    
      for(i = 0; i < level.players.size; i++)
      {
        level.players[i] takeWeapon("minigun_mp");
        level.players[i] switchToWeapon(level.players[i]._curWep);
      }
    }
    maxAmmo()
    {
      iPrintlnBold("Max Ammo For Everyone");
      for(i = 0; i < level.players.size; i++)
      {
        weps = level.players[i] GetWeaponsList();
        for(k = 0; k < weps.size; k++)
        {
          level.players[i] giveMaxAmmo(weps[k]);
          wait 0.01;
        }
      }
    }
    doublePoints()
    {
      iPrintlnBold("Double Points for Everyone");
      if(level.doublePoints == 0)
      {
        level.doublePoints = 1;
      }
      else
      {
        level notify("double_points");
        wait 0.1;
        level.doublePoints = 1;
      }
      level waittill("double_points");
      level.doublePoints = 0;
    }
    instaKill()
    {
      iPrintlnBold("Insta Kill for Everyone");
      if(level.instaKill == 0)
      {
        level.instaKill = 1;
        setDvar("scr_dog_health", "1");
        for(i = 0; i < level.dogs.size; i++)
        {
          if(!isdefined(level.dogs[i]))
            continue;
          level.dogs[i].health = 1;
          wait 0.01;
        }
      }
      else
      {
        level notify("insta_kill");
        wait 0.1;
        level.instaKill = 1;
        setDvar("scr_dog_health", "1");
        for(i = 0; i < level.dogs.size; i++)
        {
          if(!isdefined(level.dogs[i]))
            continue;
          level.dogs[i].health = 1;
          wait 0.01;
        }
      }
      level waittill("insta_kill");
      setDvar("scr_dog_health", level.dogHealth);
      for(i = 0; i < level.dogs.size; i++)
      {
        if(!isdefined(level.dogs[i]))
          continue;
        level.dogs[i].health = level.dogHealth;
        wait 0.01;
      }
      level.instaKill = 0;
    }
    dogKilled(dogOrigin)
    {
      self setClientDvar("r_exposureTweak", 1);
      self setClientDvar("r_exposureValue", 15);
      self thread moreCash(50);
      thread powerup(dogOrigin);
    }

    0 Not allowed! Not allowed!
    Last edited by AllMoDs; 06-18-2015 at 07:16 PM.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 11:35 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.