mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
28 lines
877 B
Plaintext
28 lines
877 B
Plaintext
/obj/item/weapon/gun
|
|
var/holy = 0 //For Divinely blessed guns
|
|
|
|
/* TGMC Ammo HUD Port Begin */
|
|
/obj/item/weapon/gun
|
|
var/hud_enabled = TRUE
|
|
|
|
/obj/item/weapon/gun/proc/has_ammo_counter()
|
|
return FALSE
|
|
|
|
/obj/item/weapon/gun/proc/get_ammo_type()
|
|
return FALSE
|
|
|
|
/obj/item/weapon/gun/proc/get_ammo_count()
|
|
return FALSE
|
|
|
|
/obj/item/weapon/gun/equipped(mob/living/user, slot) // When a gun is equipped to your hands, we'll add the HUD to the user. Pending porting over TGMC guncode where wielding is far more sensible.
|
|
if(slot == slot_l_hand || slot == slot_r_hand)
|
|
user.hud_used.add_ammo_hud(user, src)
|
|
else
|
|
user.hud_used.remove_ammo_hud(user, src)
|
|
|
|
return ..()
|
|
|
|
/obj/item/weapon/gun/dropped(mob/living/user) // Ditto as above, we remove the HUD. Pending porting TGMC code to clean up this fucking nightmare of spaghetti.
|
|
user.hud_used.remove_ammo_hud(user, src)
|
|
|
|
..() |