/* Recharging Blaster Weapon like in JJ3D 1.0, by XxMoNsTeRXM http://www.jazz2online.com/snippets/133/recharging-blaster-weapon-like-in-jj3d/ */ void onLevelLoad() { jjWeapons[WEAPON::BLASTER].infinite = false; jjWeapons[WEAPON::BLASTER].maximum = 50; } void onPlayer(jjPLAYER@ p) { if (p.ammo[WEAPON::BLASTER] < jjWeapons[WEAPON::BLASTER].maximum) { if (jjGameTicks % 140 == 0) p.ammo[WEAPON::BLASTER] = p.ammo[WEAPON::BLASTER] + 1; } }