Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Civ13/Civ13
Browse files Browse the repository at this point in the history
  • Loading branch information
Bierkraan committed Jan 31, 2024
2 parents ba4c2ed + 1a09fdf commit e12e0dc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
19 changes: 10 additions & 9 deletions code/_onclick/click.dm
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@
return

if(using_object)
if(istype(using_object, /obj/item/weapon/gun/projectile/automatic/stationary) || using_object != A)
var/obj/item/weapon/gun/projectile/automatic/stationary/M = using_object
if (M.full_auto)
var/datum/firemode/F = M.firemodes[M.sel_mode]
if(istype(using_object, /obj/item/weapon/gun/projectile/automatic/stationary))
var/obj/item/weapon/gun/projectile/automatic/stationary/HMG = using_object
if (HMG.full_auto)
var/datum/firemode/F = HMG.firemodes[HMG.sel_mode]
spawn(F.burst_delay)
M.afterattack(A, src, FALSE, params)
HMG.afterattack(A, src, FALSE, params)
else
M.afterattack(A, src, FALSE, params)
HMG.afterattack(A, src, FALSE, params)
return TRUE

if (istype(A, /obj/structure/multiz/ladder/ww2)) // stop looking down a ladder
Expand Down Expand Up @@ -549,9 +549,10 @@
if (!object.IsAutoclickable())
return
if (using_object)
var/obj/item/weapon/gun/projectile/automatic/stationary/HMG = using_object
if (HMG.used_by_mob == src)
return HMG.CanItemAutoclick(object, location, params)
if (istype(using_object, /obj/item/weapon/gun/projectile/automatic/stationary))
var/obj/item/weapon/gun/projectile/automatic/stationary/HMG = using_object
if (HMG.used_by_mob == src)
return HMG.CanItemAutoclick(object, location, params)
else
var/obj/item/H = get_active_hand()
if (H)
Expand Down
8 changes: 4 additions & 4 deletions code/game/objects/structures/stool_bed_chair_nest/chairs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
set src in oview(1)

if (config.ghost_interaction)
set_dir(turn(dir, 90))
set_dir(turn(dir, -90))

return

Expand All @@ -75,7 +75,7 @@
if (usr.stat || usr.restrained())
return

set_dir(turn(dir, 90))
set_dir(turn(dir, -90))

return

Expand All @@ -85,7 +85,7 @@
set src in oview(1)

if (config.ghost_interaction)
set_dir(turn(dir, -90))
set_dir(turn(dir, 90))

return

Expand All @@ -97,7 +97,7 @@
if (usr.stat || usr.restrained())
return

set_dir(turn(dir, -90))
set_dir(turn(dir, 90))

return

Expand Down
6 changes: 3 additions & 3 deletions code/modules/projectiles/projectile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -486,13 +486,13 @@
var/passthrough = TRUE //if the projectile should continue flying
var/passthrough_message = null

if (ismob(firer) && (istype(get_turf(firer), /turf/floor/trench) && firer.prone))
if (ismob(firer) && (istype(get_turf(firer), /turf/floor/trench) && firer.prone)) // If the firer is inside a trench and prone
if (!istype(T, /turf/floor/trench) && get_dist(T, firer) >= 3) // If the target is 3 tiles or more away block the shot
T.visible_message(SPAN_WARNING("The [name] hits the trench wall!"))
qdel(src)
return
if (ismob(firer) && !(istype(get_turf(firer), /turf/floor/trench)))
if (istype(T, /turf/floor/trench) && (firer.prone ? (get_dist(T, firer) >= 3) : (get_dist(T, firer) >= 6))) // If the shooter is lying down
if (ismob(firer) && !(istype(get_turf(firer), /turf/floor/trench))) // If the firer is inside a trench
if (istype(T, /turf/floor/trench) && get_dist(T, firer) > 10) // If the shooter is more than 10 tiles away block the shot
T.visible_message(SPAN_WARNING("The [name] hits the trench wall!"))
qdel(src)
return
Expand Down

0 comments on commit e12e0dc

Please sign in to comment.