Commit Graph

338 Commits

Author SHA1 Message Date
Leshana 6770aba0f6 Allow pulling objects down stairs. Hopefully without too many wierd concequences. 2017-05-19 21:17:34 -04:00
Leshana 8fd50fd530 Fix movement over open space
* Lattices no longer block all downward movement out of their turf, they only block downward falling out of their turf.
* Objects are once again pullable on catwalks (not 100% sure why they were not, but had to do with the falling code calling Move())
* Falling on top of a mob will no longer do an infinate loop of swapping places vertically.
2017-05-19 13:05:49 -04:00
Leshana 8eaa363730 Memory performance fixes for open space
* Don't infinately accumulate underlays!
* Ease up on the New() and Destroy(),  make sure they are a top level object (loc is a turf)
* The open space darkness overlay is always the same, make it a global.
2017-05-19 00:07:08 -04:00
Leshana fdfa1274dc Run open space controller once during lobby so game will start with it done. 2017-05-18 19:55:02 -04:00
Leshana a8c9bb786a Workaround BYOND bug by switching floor decals from turf overlays to a magic overlay object.
* New atom to hold a turf's decal overlays instead of the turf itself.
* Change floor_decal initialization to use it instead, and change other decal/overlay interaction procs to use it instead.
* Add floor decal initialization to master controller to do them in one fel swoop instead of nickel and diming.
* Stop area init from updating open space turfs; let the open space controller do it.
2017-05-18 19:31:15 -04:00
Leshana 48eb4a0a49 Prevent speech duplicating through zshadow mobs 2017-05-18 19:31:15 -04:00
Leshana a8dbd7627d Converts our own uses of PoolOrNew to use just new() 2017-05-16 00:26:56 -04:00
Leshana 20cb56e406 Open space set to dynamic_lighting = 0
* Until we have real multi-z lighting, just leaving it lit seems to work better.  It looks darkish anyway.
2017-05-15 20:45:57 -04:00
Leshana f02d9d79b1 Fix mob zshadow update icons and other openspace fixes.
* Admin teleports will now update zshadow.
* update_icon() now syncs the zshadow.
* Objects being deleted will trigger open space update.
2017-05-15 20:45:22 -04:00
Leshana c12ac6d6b9 Fix taking damage when not falling and other falling bugs.
* Fix falling to check if movement actually succeeds before taking damage from falling.
* De-snowflakes how objects prevent you from falling out of their turf (catwalks and latticue)
* Improved the messaging and the way falling procs are called to make it more flexible and possible to hit things in a turf before the turf itself.
2017-05-15 20:44:25 -04:00
Leshana d5eb86d810 Transfer talking and visible messages upwards thru open space.
Mobs speaking and doing things that emit visible messages will now be seen on floors above, including the icons.
2017-05-15 20:37:07 -04:00
Leshana 735ec09743 Make ladders constructable. 2017-05-11 00:35:48 -04:00
Leshana e088e7c8aa Edits to tether 3, 5, 6 and prevent descending thru ceilings from space. 2017-04-29 03:25:18 -04:00
Leshana 71ce1dd536 Improvements and fixes to maps 1, 3, and 4 2017-04-27 00:43:37 -04:00
Leshana 25718bfa7b Fix zpipes losing color in-game.
* Colored zpipes (like scrubbers or supply for example) would always lose color in game becuase atmospherics machinery sets color = null since most pipes use overlays and the icon cache.  For better or worse, zpipes don't, they just use a normal icon_state, so they need color set.
2017-04-26 20:07:00 -04:00
Arokha Sieyes 80670b420c Merge current master in 2017-04-25 20:14:38 -04:00
Anewbe 2a872bbd47 Merge pull request #3348 from VOREStation/zpipe-typo
Fix typo in zpipe proc name.
2017-04-22 20:22:34 -05:00
Leshana 23bcfbe28c Fix typo in zpipe proc name.
* The proc obj/machinery/atmospherics/pipe/up/process was supposed to be obj/machinery/atmospherics/pipe/zpipe/process.
* Also changed hard coded integers to use constants while I was editing the file anyway.
2017-04-22 17:05:20 -04:00
comma c16fba6c8d Makes cable use BYOND directions
Instead of 11,12 they use 32,16 for DOWN,UP
Merges multiz handling into main logic
Port of: https://github.com/Baystation12/Baystation12/pull/15907
2017-04-21 14:25:11 -04:00
comma 5f2d23fbd7 Makes cable use BYOND directions
Instead of 11,12 they use 32,16 for DOWN,UP
Merges multiz handling into main logic
Port of: https://github.com/Baystation12/Baystation12/pull/15907
2017-04-21 11:22:07 -04:00
Arokha Sieyes 828255ac7f Open turf update_icon_edge when updating icons
So grass can edge into it.
2017-04-19 01:25:45 -04:00
Leshana 7237faf870 WIP - Leshana's improvements to z-level-falling code. Still in progress. 2017-04-18 23:19:48 -04:00
Leshana ebaf958179 Upgraded to "see-down" open spaces, inspired by Eris:
* Instead of open spaces simply showing a static image of the turf below, it shows the turf, all objects, and even moving mobs.
  * Controller updates the view to floor below fairly quickly; mobs update in real time.
  * Open space can be examined to see how deep it is.
  * Mobs are examinable even when on floor below, using a special "zshadow" mob.
  * Changes from Eris: Heavily re-written to handle layering, special cases, rewrote controller etc.  Shadow mobs don't break entering turfs, etc.
* Update to properly layer the objects from multiple "below" floors in the case of tripple-stacked or more z levels.
* Added constant defines for the planes in use.
* Added open_space.dmi with blank_open icon state for open space's darkening overlay.
2017-04-18 23:19:41 -04:00
Leshana 31ff4a8b85 Fixed walking up stairs.
* Now they won't try and bump you up to the next z on the "lower" step of the stairway.  They also don't directly set `loc`  Therefore pulling objects up/down actually works.
* Sets their layer so they won't appear above actual objects and mobs.
2017-04-18 23:19:33 -04:00
Leshana ceaf03a63d Ported Catwalks from Eris
* Catwalks are an upgrade to lattice; instead of just a framework of wires its a mostly solid grid walkway.
* They are semi-transparent so you can see wires/pipes below them a bit.
* Smoothly auto-joining sprites to look proper.
* Constructed by upgrading lattice; like lattice it will stop you falling if build over an open space.
* Changes from Eris: Converted << to to_chat(), fix redraw on Destroy(), Fix color macros in text.
2017-04-18 23:19:18 -04:00
Leshana ff3c5238aa De-snowflake thrown objects hitting turfs.
* Port of https://github.com/Baystation12/Baystation12/pull/16942
* Actually tell turfs when a thrown object hits them, and let them decide what to do about it!
  * We do this by calling hitby(), which is how it already works for obj and mob, so this makes behavior consistent.
* This allows us to cleanly solve the problem of a thrown object landing on open space without falling.
2017-04-17 13:13:40 -04:00
Leshana 95b9dde94a Multi-Z code formatting and utilities.
* Global procs should start with /proc
* Use to_chat() macro
* Added utility to find all z-levels are connected (transitively adjacent) and utility to test if two levels are connected.
2017-04-17 11:57:49 -04:00
PsiOmegaDelta 663e2b2d4c Can no longer move up/down from non-turf locations.
Port of https://github.com/Baystation12/Baystation12/pull/16653/
2017-04-16 21:33:16 -04:00
Neerti 0f781e36a7 Adds Multi-Z Test Map 2017-03-03 09:40:34 -05:00
Zuhayr 18c2f33eab Ported ventcrawling from vg. 2016-09-21 17:16:03 +01:00
Neerti 0a389a418b Revert "Ported ventcrawling from vg." 2016-09-20 17:21:58 -04:00
Zuhayr 843c48a9ee Ported ventcrawling from vg. 2016-09-16 04:05:49 +01:00
Zuhayr f93ea6a78f Tweaks to previous commits.
More tweaks to IPC fixes.
Merge resolution/compile fixes.

Further work on properly integrating, updating and fixing prosthetic options.

Repathed internal organs to organ/internal.

More work on full synthetics, changelings, overheating.

Working on getting organs to qdel properly and spawn properly when robotized.

Finalized some overheating values, added remaining prosthetic icons.

Finalizing the testing version of the full prosthetic bodies branch.

Added suit cyclers to the autolathe and map.

Fixing runtime errors.

Fixing errors.

Changelog.

Replacing limb and organ strings with constants.

Prevented brainless species from becoming full cyborgs.

Fixed issues with brain/MMIs renaming themselves inappropriately.

Various fixes and oversights.
2015-12-24 21:13:40 +10:30
PsiOmega fa6319d52d Turf initialization tweaking.
Removes the need for a spawn() in New().
2015-09-27 13:18:18 +02:00
SkyMarshal 144dbebb2d Multi-z fixes. 2015-09-26 17:39:16 -07:00
SkyMarshal 8b225e4ba6 Update to stairs. 2015-09-20 18:25:23 -07:00
Joseph Heinemeyer 8c61c3ab6f Fixes multi-z things. 2015-08-30 18:58:37 -07:00
SkyMarshal 772c320303 Multi-Z. 2015-08-30 14:15:20 -07:00