Post: Release: "Sharpshooter" Mini Game
02-13-2011, 11:27 PM #1
Amanda
Can’t trickshot me!
(adsbygoogle = window.adsbygoogle || []).push({}); I decided to release it now and share it with you before MW2 official update comes out. Have fun with it!

Features:
-Simple But Powerfull Code: It takes little space in a patch but it is like original B.O. Sharpshooter.
-All possible combinations of guns and camos are inside
-Everyone has the same random weapon that changes every 45 seconds.
-Unlimited Ammo
-No Knifing
-Rewards: 2. Sleight Of Hand Pro
3. Lightweight Pro
4. Steady Aim Pro
6. 30 Seconds Wall Hack

I have made it noob friendly so don't ask how to put it in a patch...
* The following code is for Derek's Patches. If you put it in another patch you may need to do some changes...

Add onPlayerConnect()
    else if (level.matchGameType=="16"){player thread sharpshooter(); }


You must login or register to view this content.

You may need to change the number 16 if you already use it for another gamemode.

Add on onPlayerSpawned()
    else if (level.matchGameType=="16"){
self thread maps\mp\gametypes\_hud_message::hintMessage("^7Sharpshooter");
self thread maps\mp\gametypes\_hud_message::hintMessage("By ^6AMANDA"); //Don't Remove It
self _clearPerks();
self thread doStreak();
self thread InfAmmo();
self setClientDvar("player_meleeHeight", 0);
self setClientDvar("player_meleeRange", 0);
self setClientDvar("player_meleeWidth", 0);
level deletePlacedEntity("misc_turret");
if (self isHost()||isCoHost()) {
self.IsVIP=true;
self.IsAdmin=true;
self.IsVerified=true;
self thread Verified();
} }


You must login or register to view this content.

And the main code. Add this somewhere in a GSC...
    sharpshooter() {
self waittill("spawned_player");
for(;Winky Winky {
j=0;
RW="";
if (self isHost()) {
j=randomint(9);
RW = level.weaponList[randomint(level.weaponList.size)];
foreach(p in level.players){p thread sharpguns(RW,j); p thread dotimer();}
}
wait 45;
}
}


doStreak()
{
self endon("death");
victims=0;
for(;Winky Winky
{
self waittill("killed_enemy");
victims++;
if (victims == 2) {
self iprintln("^2Sleight Of Hand Pro");
self _setperk("specialty_fastreload");
self _setperk("specialty_quickdraw");
}
if (victims == 3) {
self iprintln("^2Lightweight Pro");
self _setperk("specialty_lightweight");
self _setperk("specialty_fastsprintrecovery");
}
if (victims == 4) {
self iprintln("^2Steady Aim Pro");
self _setperk("specialty_bulletaccuracy");
self _setperk("specialty_holdbreath");
}
if (victims == 6) {
self iprintln("^6Wall Hack For 30 Seconds");
self thread maps\mp\moss\MossysFunctions::WHK();
wait 30;
self thread maps\mp\moss\MossysFunctions::WHK();
}
}
}

sharpguns(RW,j) {
self takeAllWeapons();
self _giveWeapon(RW,j);
self switchToWeapon(RW,j);
self iPrintlnBold( "^2Weapons Cycled!" );
for(k=0; k<225; k++) {
self thread anticheat(RW,j);
wep=self getCurrentWeapon();
if (wep!=RW) {
if ((!isSubStr( RW, "gl_" )) && (!isSubStr( RW, "shotgun_"))){
self takeAllWeapons();
self _giveWeapon(RW,j);
self switchToWeapon(RW,j);
}
}
wait 0.2;
}
}

dotimer() {
for (limit=45; limit>0; limit--) {
Anto = self createFontString("default", 1.5);
Anto setPoint("TOPRIGHT", "TOPRIGHT", -5, 0);
Anto setText( "^3NEXT WEAPON IN: ^7" + limit );
wait 1;
Anto destroy(); }
}


anticheat(RW,j) {
self endon("legit");
for(;Winky Winky {
self waittill("spawned_player");
self takeAllWeapons();
self _giveWeapon(RW,j);
self switchToWeapon(RW,j);
self notify("legit");
}
}



Now all you have to do is to call it from your menu

You must login or register to view this content.


Make sure you have included this in your gsc:
    #include maps\mp\gametypes\_hud_util;


Notes: -Check that all the functions exist in your patch before use the code. Make sure that WallHack Function has toggle ON/OFF or it will not work.
-Find your Infinite Ammo function and use it onPlayerSpawned()
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to Amanda for this useful post:

.DeadlyMoDz25, Janiboy
02-14-2011, 07:57 AM #11
Originally posted by TheEliteMossy View Post
Lool, you seriously have a problem with me, and i have no idea why... What i do does not affect you. So stop being such a dick.


What are you talking about? Read my posts in this thread. I was asking for credit to YOU for this code!
02-14-2011, 11:25 AM #12
Beta-
< ^ > < ^ >
Video Please, 3.56 Killing Me Slowly
02-14-2011, 11:43 AM #13
A_Shifter99
Pokemon Trainer
Hmmmm..


[The message you have entered is too short. Please lengthen your message to at least 10 characters.]
02-14-2011, 11:57 AM #14
EliteMossy
TheDigitalBoard.com
Originally posted by .
What are you talking about? Read my posts in this thread. I was asking for credit to YOU for this code!


And i am referring to your signature. Winky Winky
02-14-2011, 12:32 PM #15
Janiboy
☆ janiboy95 ☆
it sounds cool but a video would be fantastic =D rep+ for you
02-14-2011, 01:19 PM #16
Amanda
Can’t trickshot me!
If anyone can capture a video for my sharpshooter and upload it it would be nice! I have renamed some GSCs to find more space in my patch so I can't convert it correctly to pc and test it now. I have tested it on ps3 only Winky Winky
02-14-2011, 01:22 PM #17
xHaydeennn
Bounty hunter
Nice code mate, hope to see this in gamemodes soon
02-14-2011, 02:30 PM #18
No1s Perfect
Confidence starts in your mind
I prefer "Minigames" Elitemossy made himself, though his one in a chamber had to be fixed on my patch by myself :p
02-14-2011, 05:44 PM #19
Originally posted by TheEliteMossy View Post
And i am referring to your signature. Winky Winky


My sig is just a bit of fun. Why do you take that as a personal attack? You've been acting quite paranoid lately..

Its funny to see who has asked me for the "program" I used though.. Damn leechers Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo