BO3's System for Max Ammo for BO1
BO1 Modding Releases & Resources
3
Posts
2
Posters
374
Views
2
Watching
-
This script overrides the max ammo to function like BO3's Max Ammo!
Installation
Plutonium/storage/t5/scripts/sp
Raw Code
#include maps\_utility; init() { level thread on_player_connect(); } on_player_connect() { for (;;) { level waittill("connected", player); player thread max_ammo_clip_fix(); } } max_ammo_clip_fix() { self endon("disconnect"); lastAmmoCheck = []; for (;;) { wait 0.1; weapons = self getweaponslist(); i = 0; while (i < weapons.size) { weapon = weapons[i]; if (!self hasweapon(weapon)) { i++; continue; } ammo = self getweaponammostock(weapon); maxAmmo = weaponmaxammo(weapon); // Init tracking if (!isDefined(lastAmmoCheck[weapon])) lastAmmoCheck[weapon] = ammo; // Detect Max Ammo refill if (ammo == maxAmmo && lastAmmoCheck[weapon] < maxAmmo) { self setweaponammoclip(weapon, weaponclipsize(weapon)); } lastAmmoCheck[weapon] = ammo; i++; } } } -
hello, i like your script very much and works pretty well, but i have a very small issue, if you buy ammo from the wall, it doesn't fill to the max it acts as if i reloaded the weapon after i buy the ammo, reducing the reserve ammo instead of the entire ammo
-
hello, i like your script very much and works pretty well, but i have a very small issue, if you buy ammo from the wall, it doesn't fill to the max it acts as if i reloaded the weapon after i buy the ammo, reducing the reserve ammo instead of the entire ammo
StarGold Thank you for notifying me, I'll work on this!