1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Release Black Ops 2 GSC Managed Code List

Discussion in 'Call of Duty: Black Ops 2 Scripts' started by CabCon, Feb 14, 2016.

  1. VerTical

    VerTical Trial Moderator Staff Member Donator

    502
    754
    93
    Credits:
    1,226
    WoW Nice :wink:
     
    DemonicForce_AUS likes this.
  2. chadbell

    chadbell Active Member

    38
    10
    8
    Credits:
    165
    Nice post well handy thank you to all contributors
     
    DemonicForce_AUS and CabCon like this.
  3. KryptolusHD

    KryptolusHD Modder

    113
    144
    43
    Credits:
    867
    Nice Mr.CabCon
     
    CabCon likes this.
  4. zerker24

    zerker24 Developer

    34
    40
    18
    Credits:
    430
    Looks like we could use more scripts.

    Here is the newest edition to my menu. I call it advanced hit markers. Basically the hit marker is red if you shoot an enemy, and green if you shoot a teammate. There is also a killed player message with headshot detection.

    Advanced Hit Markers.
    This script is by: Zerker24
    PHP:
    toggleAdvHit()
    {
       if (!
    isdefined(self.bools["hitmk"]))
           
    self.bools["hitmk"] = false;
     
       if (!
    isdefined(self.crosshairs))
               
    self.crosshairs = [];

       if (!
    isdefined(self.lastHitCount))
           
    self.lastHitCount 0;
     
       foreach (
    player in level.players)
       {
           
    player thread advHitLoop();
       }
       if (
    self.bools["hitmk"] == false)
       {
           
    self.bools["hitmk"] = true;
           
    self iPrintln("Hit MK [^2ON^7]");
       }
       else
       {
           
    self.bools["hitmk"] = false;
           
    self iPrintln("Hit MK [^1OFF^7]");
       }
    }

    advHitLoop()
    {
       
    self endon("disconnect");
       
    level endon("stopHitmk");
       for(;;)
       {
           
    self waittill("damage"damageattackerdirection_vecpointtypemodelnametagnamepartnameweaponname);
           if (
    attacker.bools["hitmk"])
           {
               if (
    self.team == attacker.team)
               {
                   
    attacker thread drawHitMkr((010));
                   if (
    self.health == 0)
                   {
                       if (
    type == "MOD_HEAD_SHOT")
                           
    attacker iPrintlnbold("You Headshot ^2" getPlayerName(self));
                       else
                           
    attacker iPrintlnbold("You Killed ^2" getPlayerName(self));
                   }
               }
               else
               {
                   
    attacker thread drawHitMkr((100));
                   if (
    self.health == 0)
                   {
                       if (
    type == "MOD_HEAD_SHOT")
                           
    attacker iPrintlnbold("You Headshot ^1" getPlayerName(self));
                       else
                           
    attacker iPrintlnbold(" You Killed ^1" getPlayerName(self));
                   }
               }
           }
           
    wait 0.05;
       }
    }

    drawHitMkr(color)
    {
       
    totNum self.crosshairs.size 1;
       
    self.crosshairs[totNum] = CHdrawShader("damage_feedback"0122448color1999);
       
    self.crosshairs[totNumsetPoint"CENTER""CENTER"012 );
       
    self.crosshairs[totNumFadeOverTime(1);
       
    self.crosshairs[totNum].alpha 0;
       
    wait 1;
       
    self.crosshairs[totNumdestroy();
    }

    clearHitMkr()
    {
       
    level endon("stopHitmk");
       for (;;)
       {
           
    wait 3;
           if (
    self.lastHitCount == self.crosshairs.size)
           {
               
    self.crosshairs = [];
               
    self.lastHitCount 0;
           }
       }
    }

    CHdrawShader(shaderxywidthheightcoloralphasort)
    {
       
    hud newClientHudElem(self);
       
    hud.elemtype "icon";
       
    hud.color color;
       
    hud.alpha alpha;
       
    hud.sort sort;
       
    hud.children = [];
       
    hud setParent(level.uiParent);
       
    hud setShader(shaderwidthheight);
       
    hud.x;
       
    hud.y;
       
    hud.archived false;
       return 
    hud;
    }

    Don't forget to pre cache "damage_feedback".
     
    Last edited: Dec 14, 2016
  5. BLUELOCC

    BLUELOCC New Member

    2
    1
    3
    Credits:
    32
    can someone please help me make a gsc mod menu im such a noob lol
     
  6. CabCon

    CabCon Head Administrator Staff Member

    2,561
    1,479
    113
    Credits:
    24,653
    If you are looking for gsc tutorials or stuff like that, take a look inside this section: Please login or register to view links or downloads!
    If you need help with something, create a thread inside our question section: Please login or register to view links or downloads!
     

Share This Page