This commit is contained in:
Emagged
2024-02-07 01:41:42 +01:00
parent 878bd46498
commit e461db8e5f
3 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -71,9 +71,9 @@ SUBSYSTEM_DEF(throwing)
///When this variable is false, non dense mobs will be hit by a thrown item. useful for things that you dont want to be cheesed by crawling, EG. gravitational anomalies
var/dodgeable = TRUE
/// Can a thrown mob move themselves to stop the throw?
var/block_movement = TRUE
var/should_block_movement = TRUE
/// This is internal variable to support no gravity movement even if variable above is TRUE. This variable will change during throwing
var/block_movement_actual = TRUE
var/block_movement = TRUE
/datum/thrownthing/proc/tick()
var/atom/movable/AM = thrownthing
@@ -104,9 +104,9 @@ SUBSYSTEM_DEF(throwing)
gravity = has_gravity(AM, AM.loc)
if(!gravity)
block_movement_actual = FALSE // you should be able to move if there is no gravity, supports jetpack movement during throw
block_movement = FALSE // you should be able to move if there is no gravity, supports jetpack movement during throw
else
block_movement_actual = block_movement
block_movement = should_block_movement
if((dist_travelled >= maxrange || AM.loc == target_turf) && gravity)
hitcheck() //Just to be sure
+1 -1
View File
@@ -442,7 +442,7 @@
TT.diagonals_first = diagonals_first
TT.callback = callback
TT.dodgeable = dodgeable
TT.block_movement = block_movement
TT.should_block_movement = block_movement
var/dist_x = abs(target.x - src.x)
var/dist_y = abs(target.y - src.y)
+1 -1
View File
@@ -68,7 +68,7 @@
if(mob.notransform)
return 0 //This is sota the goto stop mobs from moving var
if(mob.throwing && mob.throwing.block_movement_actual)
if(mob.throwing && mob.throwing.block_movement)
return
if(mob.control_object)