Say you used night-vision goggles and you wanted the map to be tinted a shade of green, representing night vision. How would you do this?
|
One method would be to have a translucent green icon and create a single universal object at the start of the world to be used as a HUD.
This object (an /atom/movable, that being either a /mob or an /obj) should have screen_loc defined as "SOUTHEAST to NORTHWEST" to cover the whole client screen. You should set its mouse_opacity to 0 so that this object is ignored by the mouse. When the night vision goggle is activated, you simply add the object to the client's screen as you would do to add an object to a list (like contents). Once done, remove the object from the client.screen. |
I've had trouble before with screen_loc. I could never figure out how to set things to screen. How do I do that?
|
obj/hud |
NOTE: With this method, you should probably use a partly-transparent black icon to represent night-time. Replace that with the green icon and then viola, you can see better than others.