Skip to content

Commit

Permalink
hopefully fixes it, hotfix, will look into a cutdown soon
Browse files Browse the repository at this point in the history
  • Loading branch information
SECBATON-GRIFFON committed Jan 1, 2025
1 parent c4cadda commit a19cd85
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions code/game/mecha/combat/roswell.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,44 @@
return step_rand(src)

/obj/mecha/combat/roswell/Process_Spacemove(var/check_drift = 0) //invaders from outer spaaace
if(has_charge(step_energy_drain))
return TRUE //doesn't drift in space if it has power
return FALSE

/obj/mecha/combat/roswell/can_apply_inertia()
if(has_charge(step_energy_drain))
return FALSE //doesn't drift in space if it has power
return TRUE

//duplicate of parent proc, but without space drifting
/obj/mecha/combat/roswell/dyndomove(direction)
stopMechWalking()
if(!can_move)
return 0
if(src.pr_inertial_movement.active())
return 0
if(!has_charge(step_energy_drain))
return 0
var/move_result = 0
startMechWalking()
if(hasInternalDamage(MECHA_INT_CONTROL_LOST))
move_result = mechsteprand()
else if(src.dir!=direction)
move_result = mechturn(direction)
else
move_result = mechstep(direction)
if(move_result)
can_move = 0
use_power(step_energy_drain)
/*if(istype(src.loc, /turf/space))
if(!src.check_for_support())
src.pr_inertial_movement.start(list(src,direction))
src.log_message("Movement control lost. Inertial movement started.")*/
spawn(step_in)
can_move = 1
return 1
return 0

/obj/mecha/combat/roswell/preloaded/New()
..()
new /obj/item/mecha_parts/mecha_equipment/tool/ayy/abductor(src)
Expand Down

0 comments on commit a19cd85

Please sign in to comment.