Skip to content

Commit

Permalink
cringe
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyThorne committed Nov 17, 2023
1 parent 7b17fee commit 234ca6b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
autofiring_by = null
aim_targets = null
last_moved_mob = null
QDEL_LIST(firemodes)
QDEL_NULL_LIST(firemodes)
. = ..()

/obj/item/gun/proc/set_autofire(atom/fire_at, mob/fire_by)
Expand Down
2 changes: 2 additions & 0 deletions code/modules/projectiles/guns/projectile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@

/obj/item/gun/projectile/Destroy()
QDEL_NULL_LIST(ammo_magazine)
QDEL_NULL_LIST(loaded)
QDEL_NULL(chambered)
return ..()

/obj/item/gun/projectile/consume_next_projectile()
Expand Down
2 changes: 2 additions & 0 deletions code/modules/projectiles/projectile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@

/obj/item/projectile/proc/launch(atom/target, target_zone, mob/user, params, Angle_override, forced_spread = 0)
original = target
previous = get_turf(loc)
def_zone = check_zone(target_zone)
firer = user
var/direct_target
Expand Down Expand Up @@ -369,6 +370,7 @@
return 1

/obj/item/projectile/proc/before_move()
previous = loc
return

/obj/item/projectile/proc/after_move()
Expand Down
9 changes: 6 additions & 3 deletions code/modules/projectiles/projectile/special.dm
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,18 @@
var/mob/living/simple_animal/hostile/facehugger/holder = null

/obj/item/projectile/facehugger_proj/Bump(atom/A, forced = FALSE)
if(A == src)
return FALSE // no idea how this could ever happen but let's ensure

if(A == firer)
loc = A.loc
return
return FALSE

if(!holder)
return
return FALSE

if(bumped)
return
return FALSE
bumped = TRUE

if(istype(A, /mob/living/carbon/human))
Expand Down

0 comments on commit 234ca6b

Please sign in to comment.