Post: Release: EliteMossy's Gun Game
01-02-2011, 06:14 AM #1
EliteMossy
TheDigitalBoard.com
(adsbygoogle = window.adsbygoogle || []).push({}); Here is my very own custom made Gun Game which is from my Private Patch

PLAY THIS ON FFA!!

Add this to init()
    precacheShader("cardtitle_bloodsplat");


add this to onPlayerConnect()
    
if(player isHost()){
player thread GunGameBuildGuns();
}
player.GunGameKills=0;
player.GunGameRunOnce=0;


Add this to onPlayerSpawned()
    
self thread GunGameSpawn();


Now here is the code for the Gun Game

    

GunGameBuildGuns()
{
level.GunList = [];
level.GunList[level.GunList.size] = GunGameCreate("usp_fmj_silencer_mp", 9, false);
level.GunList[level.GunList.size] = GunGameCreate("spas12_fmj_grip_mp", 5, false);
level.GunList[level.GunList.size] = GunGameCreate("m4_heartbeat_reflex_mp", 6, false);
level.GunList[level.GunList.size] = GunGameCreate("barrett_fmj_thermal_mp", 3, false);
level.GunList[level.GunList.size] = GunGameCreate("aa12_grip_mp", 6, false);
level.GunList[level.GunList.size] = GunGameCreate("fn2000_thermal_mp", 2, false);
level.GunList[level.GunList.size] = GunGameCreate("kriss_acog_rof_mp", 7, false);
level.GunList[level.GunList.size] = GunGameCreate("cheytac_fmj_mp", 7, false);
level.GunList[level.GunList.size] = GunGameCreate("mp5k_fmj_reflex_mp", 8, false);
level.GunList[level.GunList.size] = GunGameCreate("ump45_xmags_mp", 9, false);
level.GunList[level.GunList.size] = GunGameCreate("at4_mp", 8, false);
level.GunList[level.GunList.size] = GunGameCreate("tmp_mp", 3, false);
level.GunList[level.GunList.size] = GunGameCreate("ak47_acog_fmj_mp", 9, false);
level.GunList[level.GunList.size] = GunGameCreate("m240_heartbeat_reflex_mp", 9, false);
level.GunList[level.GunList.size] = GunGameCreate("glock_akimbo_fmj_mp", 1, true);
level.GunList[level.GunList.size] = GunGameCreate("pp2000_mp", 3, false);
level.GunList[level.GunList.size] = GunGameCreate("fal_acog_fmj_mp", 4, false);
level.GunList[level.GunList.size] = GunGameCreate("scar_fmj_reflex_mp", 5, false);
level.GunList[level.GunList.size] = GunGameCreate("pp2000_mp", 2, false);
level.GunList[level.GunList.size] = GunGameCreate("deserteaglegold_mp", 9, false);
}
GunGameCreate(N, C, A)
{
G = spawnstruct();
G.name = N;
G.camo = C;
G.akimbo = A;
return G;
}
GunGameSpawn()
{
if (!self.GunGameRunOnce)
{
self.KilledTitle = createIcon("cardtitle_bloodsplat", 260, 53);
self.KilledTitle setPoint("CENTER", "TOP", 0, 50);
self.KilledText = createFontString("objective", 1.Cool Man (aka Tustin);
self.KilledText setPoint("CENTER", "TOP", 7, 55);
self.KilledText setText("^7Player Killed!");
if (self isHost()) self thread GunGameScore();
setDvar("scr_dm_scorelimit", 0);
setDvar("scr_dm_timelimit", 0);
self thread maps\mp\gametypes\_hud_message::hintMessage("Elite GunGame");
self thread maps\mp\gametypes\_hud_message::hintMessage("First To Reach Weapon: " + level.GunList.size);
self.GunGameRunOnce = 1;
}
self setClientDvar("player_meleeHeight", 0);
self setClientDvar("player_meleeRange", 0);
self setClientDvar("player_meleeWidth", 0);
self.KilledTitle.alpha = 0;
self.KilledText.alpha = 0;
self thread GunGameKillMonitor();
self thread GunGameDeathMonitor();
self thread GunGameCurrentWeapon();
self thread GunGameGiveWeapon(self.GunGameKills);
}
GunGameKillMonitor()
{
self endon("death");
self endon("disconnect");
for (;Winky Winky
{
self waittill("killed_enemy");
self.GunGameKills++;
self.KilledTitle.alpha = 1;
self.KilledText.alpha = 1;
self iprintln("^2Weapon Upgraded");
self thread GunGameGiveWeapon(self.GunGameKills);
}
}
GunGameCurrentWeapon()
{
self endon("disconnect");
self endon("death");
for (;Winky Winky
{
self iprintln("Current Weapon Number is: " + self.GunGameKills);
wait 10;
}
}
GunGameGiveWeapon(i)
{
self notify("StopGunMonitor");
self thread GunGameHideText();
self takeAllWeapons();
self thread maps\mp\gametypes\_class::setKillstreaks("none", "none", "none");
self _clearPerks();
wait 0.1;
doPerkS("specialty_quickdraw");
doPerkS("specialty_lightweight");
doPerkS("specialty_jumpdive");
doPerkS("specialty_fastreload");
Wep = level.GunList[i].name;
Akimbo = level.GunList[i].akimbo;
Camo = level.GunList[i].camo;
self giveWeapon(Wep, Camo, Akimbo);
wait 0.5;
self switchToWeapon(Wep);
wait 0.5;
self thread GunGameGunMonitor();
}
GunGameGunMonitor()
{
self endon("death");
self endon("disconnect");
self endon("StopGunMonitor");
for (;Winky Winky
{
wait 1;
self closepopupMenu();
CurrentWep = self getCurrentWeapon();
ProperWep = level.GunList[self.GunGameKills].name;
if (ProperWep != CurrentWep) self thread GunGameGiveWeapon(self.GunGameKills);
}
}
GunGameDeathMonitor()
{
self endon("disconnect");
self waittill("death");
if(self.GunGameKills!=0) self.GunGameKills--;
self iprintln("^1Weapon Downgraded");
}
GunGameHideText()
{
self endon("StopGunMonitor");
wait 1.5;
self.KilledTitle.alpha = 0;
self.KilledText.alpha = 0;
}
GunGameScore()
{
self endon("disconnect");
for (;Winky Winky
{
wait 2;
foreach(p in level.players)
{
if (p.GunGameKills >= level.GunList.size)
{
level.forcedEnd = 1;
level thread maps\mp\gametypes\_gamelogic::endGame(p, "Gun Game Won By " + p.myName);
}
}
}
}
doPerkS(p)
{
self maps\mp\perks\_perks::givePerk(p);
wait 0.01;
}


Hope you people enjoy it Smile

Adding or removing Guns will alter the Weapon Limit AUTOMAGICALLY Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following 18 users say thank you to EliteMossy for this useful post:

Ada Wong, Agent_LSD, codwawandmw2, DarkLiightz, FrozN, Hakon, JakeM, Martinez_LJC, Morphia, mw2alltheway, MW2CptPrize, Ox1337, RaverBoy, richiebanker, Shieldsy, SolidSnake77, ViiZiiKz, whiterain18
01-02-2011, 06:15 AM #2
Damnit I wish I could try this. Someone should invite me to one Smile
01-02-2011, 06:39 AM #3
Moved to modified patches...technically this is a patch :p.
01-02-2011, 06:55 AM #4
Agent_LSD
Vault dweller
Originally posted by EliteMossy View Post
Here is my very own custom made Gun Game which is from my Private Patch


Thanks for this. Your v1.07 was fun, looking forward to getting this one plugged into a patch and giving it a go.
01-02-2011, 07:25 AM #5
thx mossy .... looks like u releasing ur patch in little pieces Winky Winky
01-02-2011, 07:44 AM #6
EliteMossy
TheDigitalBoard.com
Originally posted by KiiGz View Post
Another fail by elitemossy. You cant code for sh*t, get some skill son.


You do know this is not the right way to go about getting -rep....
01-02-2011, 07:45 AM #7
KiiGz
Bounty hunter
Originally posted by EliteMossy View Post
You do know this is not the right way to go about getting -rep.... I think i will +rep you.


HAHA thats what I wanted to do, noticed I removed the sig:carling:

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

-SprayzZz-, Sharpie, Shieldsy
01-02-2011, 07:49 AM #8
Hello Mossy, Thanks for this, just wondering, besides a different weapon set, whats different?
01-02-2011, 07:53 AM #9
Originally posted by EliteMossy View Post
You do know this is not the right way to go about getting -rep....


if you -rep him he will go down to like 10000 lol
01-02-2011, 07:59 AM #10
JakeM
ZOMG HaXz!
Originally posted by EliteMossy View Post
Here is my very own custom made Gun Game which is from my Private Patch

PLAY THIS ON FFA!!

Hope you people enjoy it Smile

Adding or removing Guns will alter the Weapon Limit AUTOMAGICALLY Smile


My mutli-game mode patch is going to be like 90% credit to you now. Because as of now I believe 5 out of 9 game modes in it are yours.

Maybe I should just rename it "Mossys Game Mode Patch" lol.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo