Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Call of Duty Hacks & Cheats › Call of Duty 7 - Black Ops Hacks & Cheats › Call of Duty Black Ops Server & GSC Modding › Call of Duty Black Ops GSC Modding Help & Discussion › Help Please Coding Question

Help Please Coding Question

Posts 1–6 of 6 · Page 1 of 1
littlegandhi1199
littlegandhi1199
Help Please Coding Question
Is there a way to add 1 bullet to a clip in a gun, say the pistol had 2 bullets and 0 stock ammo
I want to add 1 bullet to the 2 existing bullets here is what i can do

self setWeaponAmmoClip( "m1911_mp", 1 );

but this only sets the clip to 1 when i want it to add 1 bullet to clip
Is there a way to do this?
Maybe a way to find out the current clip and then add 1 bullet or just something simple like
self setWeaponAmmoClip( "m1911_mp", +1 );
but i know that ^ doesn't work

Help is appreciated
-Littlegandhi1199
#1 · 15y ago
littlegandhi1199
littlegandhi1199
Impossible or not?
#2 · 15y ago
SneakyPete
SneakyPete
i was wondering if you could do that on mw2 also but black ops would be nice also
#3 · 15y ago
master131
[MPGH]master131
It's in my TF2 Mod, custom weapon stock and clip and it changes when you reload.
#4 · 15y ago
littlegandhi1199
littlegandhi1199
I have tried to use your code but i can't find where you define weapon or ammo or clip for the thread... Can you outline it a little more for me
#5 · 15y ago
master131
[MPGH]master131
Usage:
self thread doCrazyAmmo("ak47_mp", 69, 69);

Don't recommend trying it on guns that reload every shot (eg, spas).
Code:
doCrazyAmmo(weapon, clip, ammo)
{
	self thread doCrazyStock(weapon, clip, ammo);
	
	self endon("death");
	self endon("disconnect");
	self.ammoClip[weapon] = clip;
	while(1) 
	{
		self waittill("weapon_fired");
		if(self getCurrentWeapon() == weapon) 
		{
			self.ammoClip[weapon]--;
			self setWeaponAmmoClip(weapon, self.ammoClip[weapon]);
			if(self getWeaponAmmoStock() == 0)
				self switchToWeapon(weapon);
		}
	}
}

doCrazyStock(weapon, clip, ammo)
{
	self endon("death");
	self endon("disconnect");
	self.ammoStock[weapon] = ammo;
	while(1) 
	{
		self waittill("reload");
		if(self getCurrentWeapon() == weapon) 
		{
			toRemove = clip - self.ammoClip[weapon];
			self.ammoStock[weapon] -= toRemove;
			self.ammoClip[weapon] += toRemove; 
			if(self.ammoStock[weapon] >= 0) 
			{
				self setWeaponAmmoStock(weapon, self.ammoStock[weapon]);
				self setWeaponAmmoClip(weapon, self.ammoClip[weapon]);
			}
		}
	}
}
#6 · 15y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Tags for this Thread

None