Post: Black Ops 2 Sniper Lobby GSC???
05-01-2015, 02:28 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey Guys ive nearly finished my 4th GSC Menu but i want to make a sniperlobby in it.
I couldnt find the code or manage it myself :(
(adsbygoogle = window.adsbygoogle || []).push({});
05-02-2015, 05:13 PM #2
mrtn
Little One
Originally posted by 2709 View Post
Hey Guys ive nearly finished my 4th GSC Menu but i want to make a sniperlobby in it.
I couldnt find the code or manage it myself :(


I made a little function for a basic sniper lobby for you. I took the quickScope function from Gee's MW2 Quickscope mod, just so you know.

    doSniper() {
if(isSubStr(!self getCurrentWeapon(), "ballista_")) {
self iprintln("mang this is a sniper lobby");
self takeallweapons();
self giveWeapon("ballista_mp+dualclip");
self switchToWeapon("ballista_mp+dualclip");
} else {
//don't take the players weapon
}
}

quickScope(){
self endon("disconnect");
self endon("death");
for(;Winky Winky
{
if(self AdsButtonPressed()){
wait .4;
self allowADS(0);
wait .5;
self allowADS(1);
}
wait .3;
}
}


Just put that anywhere in your menu, then put these two on the onPlayerSpawned function;
self thread doSniper();
self thread quickScope();

The following user thanked mrtn for this useful post:

Coffee Bean
05-02-2015, 05:33 PM #3
Originally posted by 0x0000000 View Post
I made a little function for a basic sniper lobby for you. I took the quickScope function from Gee's MW2 Quickscope mod, just so you know.

    doSniper() {
if(isSubStr(!self getCurrentWeapon(), "ballista_")) {
self iprintln("mang this is a sniper lobby");
self takeallweapons();
self giveWeapon("ballista_mp+dualclip");
self switchToWeapon("ballista_mp+dualclip");
} else {
//don't take the players weapon
}
}

quickScope(){
self endon("disconnect");
self endon("death");
for(;Winky Winky
{
if(self AdsButtonPressed()){
wait .4;
self allowADS(0);
wait .5;
self allowADS(1);
}
wait .3;
}
}


Just put that anywhere in your menu, then put these two on the onPlayerSpawned function;
self thread doSniper();
self thread quickScope();


Damn nice dude Happy

The following user thanked Coffee Bean for this useful post:

mrtn
05-02-2015, 06:02 PM #4
mrtn
Little One
Originally posted by HooliganMoDz View Post
Damn nice dude Happy


Thank you Smile There is obviously more that can be done like making it toggleable in a menu. Right now you can only put the two threads in the onPlayerSpawned function so the lobby will always be sniper only unless you remove the threads. But I'm not gonna spoonfeed everything :P

The following user thanked mrtn for this useful post:

Coffee Bean
05-02-2015, 06:03 PM #5
Originally posted by 0x0000000 View Post
Thank you Smile There is obviously more that can be done like making it toggleable in a menu. Right now you can only put the two threads in the onPlayerSpawned function so the lobby will always be sniper only unless you remove the threads. But I'm not gonna spoonfeed everything :P


Totally understand but i just need it the way you posted it Happy thanks again dude you legend
05-02-2015, 06:10 PM #6
mrtn
Little One
Originally posted by HooliganMoDz View Post
Totally understand but i just need it the way you posted it Happy thanks again dude you legend


No problem, hope you enjoy it Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo