Skip to content

Commit

Permalink
de-shittifies the sniper and dualtube
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoe2013 committed Jul 26, 2023
1 parent d4a5545 commit 9e241b9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
7 changes: 6 additions & 1 deletion code/modules/projectiles/guns/shotguns.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,12 @@ can cause issues with ammo types getting mixed up during the burst.
playsound(src, 'sound/machines/switch.ogg', 15, TRUE)
return TRUE

/obj/item/weapon/gun/shotgun/pump/dual_tube/set_bursting()
/obj/item/weapon/gun/shotgun/pump/dual_tube/verb/toggle_tube()
set category = "Weapons"
set name = "Toggle Shotgun Tube"
set desc = "Toggles which shotgun tube your gun loads from."
set src = usr.contents

var/obj/item/weapon/gun/shotgun/pump/dual_tube/shotgun = get_active_firearm(usr)
if(shotgun == src)
swap_tube(usr)
Expand Down
12 changes: 8 additions & 4 deletions code/modules/projectiles/guns/specialist.dm
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,15 @@
if(toggling_action)
toggling_action.update_button_icon()

/obj/item/weapon/gun/rifle/sniper/set_bursting(mob/user)
if(has_aimed_shot)
/obj/item/weapon/gun/rifle/sniper/verb/toggle_laser()

Check failure on line 270 in code/modules/projectiles/guns/specialist.dm

View workflow job for this annotation

GitHub Actions / Run Linters

duplicate definition of verb/toggle_laser
set category = "Weapons"
set name = "Toggle Laser"
set desc = "Toggles your laser on or off."
set src = usr.contents

var/obj/item/weapon/gun/rifle/sniper/sniper = get_active_firearm(usr)
if((sniper == src) && has_aimed_shot)
toggle_laser(user)

Check failure on line 278 in code/modules/projectiles/guns/specialist.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "user"
else
..()

//Pow! Headshot.
/obj/item/weapon/gun/rifle/sniper/M42A
Expand Down

0 comments on commit 9e241b9

Please sign in to comment.