Azra3l
04-20-2003, 10:19 PM
Presto compatible ammo hud (little ammo count beneath ret)
[T1] Request: AmmoHUDAzra3l 04-20-2003, 10:19 PM Presto compatible ammo hud (little ammo count beneath ret) HotCheese 04-21-2003, 03:58 PM HUD::new("AmmoHUD","AmmoHUD::Update","50% 50%+32 22 16"); HUD::Display("AmmoHUD",true); function AmmoHUD::Update(%hud) { %weapon = getMountedItem(0); if(%weapon == 13) %ammo = "Bullet"; else if(%weapon == 15) %ammo = "Plasma Bolt"; else if(%weapon == 17) %ammo = "Grenade Ammo"; else if(%weapon == 19) %ammo = "Mortar Ammo"; else if(%weapon == 21) %ammo = "Disc"; else %Ammo = "None"; if(%ammo == "None") %ammo = "~"; else %ammo = getItemCount(%ammo); HUD::SetText("AmmoHUD","<f2"> @ %ammo); return "0.3"; } GreeD 04-21-2003, 05:02 PM Now.. the same thing but using the nade and mine count and double points for repair kit. | ||