Can secondary attack (right-click) and fire guns with TK (#65473)

This commit is contained in:
cacogen
2022-03-25 21:56:28 -04:00
committed by GitHub
parent ee2b700586
commit 980c5cdee7
6 changed files with 111 additions and 30 deletions
+2 -2
View File
@@ -125,10 +125,10 @@
shell.loaded_projectile.wound_bonus = original_wb
shell.loaded_projectile.bare_wound_bonus = original_bwb
pellets += shell.loaded_projectile
var/turf/current_loc = get_turf(user)
var/turf/current_loc = get_turf(fired_from)
if (!istype(target_loc) || !istype(current_loc) || !(shell.loaded_projectile))
return
INVOKE_ASYNC(shell, /obj/item/ammo_casing.proc/throw_proj, target, target_loc, shooter, params, spread)
INVOKE_ASYNC(shell, /obj/item/ammo_casing.proc/throw_proj, target, target_loc, shooter, params, spread, fired_from)
if(i != num_pellets)
shell.newshot()