mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-27 15:17:21 +01:00
Attempt to fix mech and fighter movement issues within space. (#7376)
* Attempt to fix mech and fighter movement issues within space. Here is the issue in question: https://github.com/VOREStation/VOREStation/issues/8438 * Update Mecha.dm to fix #7376 request
This commit is contained in:
@@ -585,6 +585,15 @@
|
||||
last_message = world.time
|
||||
return 0
|
||||
|
||||
|
||||
/*
|
||||
//A first draft of a check to stop mechs from moving fully. TBD when all thrusters modules are unified.
|
||||
if(!thrusters && !src.pr_inertial_movement.active() && isspace(src.loc))//No thrsters, not drifting, in space
|
||||
src.occupant_message("Error 543")//debug
|
||||
return 0
|
||||
*/
|
||||
|
||||
|
||||
if(!thrusters && src.pr_inertial_movement.active()) //I think this mean 'if you try to move in space without thruster, u no move'
|
||||
return 0
|
||||
|
||||
@@ -2487,4 +2496,4 @@
|
||||
if(-INFINITY to 15)
|
||||
occupant.throw_alert("mech damage", /obj/screen/alert/low_mech_integrity, 3)
|
||||
else
|
||||
occupant.clear_alert("mech damage")
|
||||
occupant.clear_alert("mech damage")
|
||||
|
||||
@@ -194,7 +194,7 @@
|
||||
return result
|
||||
|
||||
// Can't control ourselves when drifting
|
||||
if(isspace(loc) || my_mob.lastarea?.has_gravity == 0)
|
||||
if((isspace(loc) || my_mob.lastarea?.has_gravity == 0) && !my_mob.in_enclosed_vehicle) //If(In space or last area had no gravity) or(you in vehicle)
|
||||
if(!my_mob.Process_Spacemove(0))
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user