Space Parallax Port (#69)

* better

* what the fuck

* Revert "what the fuck"

This reverts commit 384d5b33aacaf9c67be2c8c089979b9ee6b41074.

* chrwedrhbedrhbnedrh

* it works ? ? ?

* shutte

* prefs

* i think i did it right

* kk
This commit is contained in:
L.E.D
2016-11-11 14:49:19 -05:00
committed by TalkingCactus
parent 563c51ff70
commit c3972ad738
21 changed files with 371 additions and 7 deletions
+19 -1
View File
@@ -69,6 +69,8 @@
last_move = 0
return
update_client_hook(loc)
if(.)
Moved(oldloc, direct)
@@ -132,6 +134,9 @@
continue
AM.Crossed(src)
Moved(oldloc, 0)
update_client_hook(destination)
return 1
return 0
@@ -152,13 +157,26 @@
else //something went very wrong.
CRASH("Brainmob without container.")
/mob/living/silicon/pai/forceMove(atom/destination)
if(card)
card.forceMove(destination)
else //something went very wrong.
CRASH("pAI without card")
/atom/movable/proc/update_client_hook(atom/destination)
if(locate(/mob) in src)
for(var/client/C in parallax_on_clients)
if((get_turf(C.eye) == destination) && (C.mob.hud_used))
C.mob.hud_used.update_parallax_values()
/mob/update_client_hook(atom/destination)
if(locate(/mob) in src)
for(var/client/C in parallax_on_clients)
if((get_turf(C.eye) == destination) && (C.mob.hud_used))
C.mob.hud_used.update_parallax_values()
else if(client && hud_used)
hud_used.update_parallax_values()
//Called whenever an object moves and by mobs when they attempt to move themselves through space
//And when an object or action applies a force on src, see newtonian_move() below
+7
View File
@@ -5,6 +5,8 @@
desc = "A vast, cold, and lonely place."
intact = 0
plane = PLANE_SPACE_BACKGROUND
temperature = TCMB
thermal_conductivity = OPEN_HEAT_TRANSFER_COEFFICIENT
heat_capacity = 700000
@@ -21,6 +23,11 @@
/turf/open/space/New()
update_icon()
air = space_gas
var/image/I = image('icons/turf/space_parallax1.dmi',"[icon_state]")
I.plane = PLANE_SPACE_DUST
I.alpha = 80
I.blend_mode = BLEND_ADD
overlays += I
/turf/open/space/Destroy(force)
if(force)
+1
View File
@@ -2,6 +2,7 @@
icon_state = "black"
dir = SOUTH
baseturf = /turf/open/space/transit
plane = PLANE_TURF
/turf/open/space/transit/horizontal
dir = WEST