BO3's System for Max Ammo for BO1
BO1 Modding Releases & Resources
1
Posts
1
Posters
44
Views
1
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++; } } }