Post: [NEW] Better Crosshair [GSC]
07-03-2015, 06:16 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Yo NGU,

I just got the random idea to make a "better" crosshair for BO2.
I know, it's not that big of a thing, but I thought I'd share it.
Credits go to meh ^^
Also if you in any way not have the drawShader thingy in your script be sure to put it in!

Preview 1: You must login or register to view this content.
Preview 2: You must login or register to view this content.

Code:


ToggleCHM()
{
if (self.crosshair==false)
{
self iPrintln("^1Crosshair Mod Off");
self.menu.ch1 = self drawShader("white", 0, 204, 30, 1, (1, 0, 0), 255, 0);
self.menu.ch2 = self drawShader("white", 0, 190, 1, 30, (1, 0, 0), 255, 0);
self.crosshair=true;
}
else
{
self iPrintln("^2Crosshair Mod On");
self.menu.ch1 destroy();
self.menu.ch2 destroy();
self.crosshair=false;
}
}




Again, I know it's nothing but yeah...

Happy Modding Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to SwaiModz for this useful post:

HiddenHour, ksa_7ooo7, Vondy Supreme
07-04-2015, 09:21 AM #11
If u are coding using a base similar to mw2 This code will not work for you if u want it to work replace draw shader to CreateRectangle
07-04-2015, 01:46 PM #12
Originally posted by MadsCfg100SubsL View Post
If u are coding using a base similar to mw2 This code will not work for you if u want it to work replace draw shader to CreateRectangle


True, but you could also just add the drawShader function to your GSC menu.
07-04-2015, 03:57 PM #13
God
Banned
Originally posted by Kas View Post
In future please use the edit button instead of creating a whole new thread as shown here You must login or register to view this content.


can't see it, bigger arrow pls Sal
07-04-2015, 05:45 PM #14
Im_YouViolateMe
NextGenUpdate Elite
Originally posted by SwaiModz View Post
Yo NGU,

I just got the random idea to make a "better" crosshair for BO2.
I know, it's not that big of a thing, but I thought I'd share it.
Credits go to meh ^^
Also if you in any way not have the drawShader thingy in your script be sure to put it in!

Preview 1: You must login or register to view this content.
Preview 2: You must login or register to view this content.

Code:


ToggleCHM()
{
if (self.crosshair==false)
{
self iPrintln("^1Crosshair Mod Off");
self.menu.ch1 = self drawShader("white", 0, 204, 30, 1, (1, 0, 0), 255, 0);
self.menu.ch2 = self drawShader("white", 0, 190, 1, 30, (1, 0, 0), 255, 0);
self.crosshair=true;
}
else
{
self iPrintln("^2Crosshair Mod On");
self.menu.ch1 destroy();
self.menu.ch2 destroy();
self.crosshair=false;
}
}




Note: Don't toggle too much, or the function will stop working!

Again, I know it's nothing but yeah...

Happy Modding Smile


Or instead of destroying the element, you can just change the alpha. But ya know, whatever floats your boat.
07-04-2015, 05:57 PM #15
Baby Cakes
NextGenUpdate Elite
Great work and thanks for release
07-13-2015, 06:14 AM #16
Originally posted by KingBilly View Post
can't see it, bigger arrow pls Sal


Right ._.
07-13-2015, 06:15 AM #17
Thanks! Smile
07-13-2015, 06:47 AM #18
Patrick
League Champion
no need for a new thread for this, move it to managed code list 3 Winky Winky

The following user thanked Patrick for this useful post:

BoatyMcBoatFace
07-13-2015, 08:59 AM #19
Originally posted by Extinct
no need for a new thread for this, move it to managed code list 3 Winky Winky


Is he still even updating that? Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo