Commit Graph

221 Commits

Author SHA1 Message Date
Rob Bailey
7c69e1232d [READY] Better shuttle sound algorithm (#43884)
About The Pull Request

Shuttle sounds previously played PER DOOR AT MAX VOLUME
This fixes that problem by instead playing shuttle sounds from the nearest engine or door if there's no engines.
Also there's distance sounds.
Why It's Good For The Game

it's not because it's actually SOUL for the shuttle sound to horribly ear rape you when it has enough doors.
Changelog

cl
fix: Shuttle sounds should no longer ass blast your ears as they no longer play PER DOOR and instead from the nearest engine, or door if none are available.
soundadd: Distant shuttle sounds.
/cl
2019-05-27 22:22:39 +12:00
spookydonut
eb8f7a0494 Adds two shuttle states more functionality (#43005)
* Adds two shuttle states more functionality

* typo

* changes as requested to the pirate shuttle
2019-03-08 10:56:16 -05:00
coiax
c29c029d65 Non-emagged shuttles no longer throw atoms around (#41999)
- Normal shuttles that are not emagged will no longer throw things around.
  People will still be knocked down.
- Emagged shuttles and poorly designed shuttles will also throw things
  around on tables, as well as closets.

Shuttles were not mapped with the idea that their contents would be thrown
around violently every time they moved. This means that things like wheely
chairs, potted plants get chucked about the place. To get around this, the
"magnetic_catch" component was added, to partially bypass this effect in the
first place. But this component is only used in one place, in shuttle loading,
which means if a shuttle is custom built, suddenly and unexpectedly,
everything flies everywhere.

Instead, violent shuttle throwing should be limited to crappy shuttles,
(ie. asteroid with engines) and emagged shuttles. As such, I've removed
the magnetic component from tables and racks, to make shuttle throwing
more violent when it happens.
2018-12-27 11:50:23 -08:00
kevinz000
10d846022a [READY]MultiZ stuff - tile atmos, movement backend, falling backend, etc etc - Electric boogaloo (#40428)
Basic multiZ mob movement procs (Observers can always move)
Open space, showing what things are below it, and everything that entails. No complex support for dynamic generation just yet.
Decide how openspace should look :/

    Atoms falling through open space (NO MOB SUPPORT/DAMAGE/ANYTHING YET.)

//CANCELLED FOR ANOTHER PR - [ ] Being able to see upwards? Downwards is going to be handled by open space.

MultiZ tile atmospherics - EDIT: Working demo! https://puu.sh/B7mUs/3f6274740f.mp4
Bugtest the heck out of this trainwreck.
2018-12-11 22:09:59 +13:00
Tad Hardesty
0f96875e1e Use an atom proc to link shuttles to their computers (#40311)
* Use signals to link shuttles to their computers

* Use Initialize instead of ComponentInitialize

* Use an ordinary proc instead of signals
2018-09-23 03:50:45 -04:00
Tad Hardesty
7949ed8445 Make shuttle getStatusText more useful 2018-09-03 22:35:32 -07:00
Tad Hardesty
aff11eaaa8 Give multiple copies of shuttles their own area instances (#39890) 2018-08-27 06:04:48 -04:00
Jordan Brown
19f649e05c Merge pull request #39908 2018-08-26 17:14:02 -04:00
Tad Hardesty
77d2e26172 Enhance the power of the Shuttle Manipulator (#39870)
The 50s/5s thing appears to be a mistake, given that 5s is 50ds and fast travel checks seconds against 50 and sets deciseconds to 50 on adjacent lines.

In addition to sending shuttles to docks, three extra modes are added:

    Infinite Transit puts the shuttle in transit which lasts until another destination is chosen
    Delete Shuttle does what it sounds like
    Into The Sunset marks every mind on the shuttle as 'escaped' and then deletes the shuttle
        Also puts the mobs in stasis so they won't suffocate, bleed out, etc. before roundend

It is also now possible to change the destination dock of the arrivals shuttle (example: an event where arrivals are sent to the Lavaland Wastes dock instead).
2018-08-26 12:54:24 +12:00
Tad Hardesty
ba887b39ed Refactor status displays 2018-08-25 01:34:30 -07:00
Tad Hardesty
0708d3dbaa Fix escape pod 1 not reaching the recovery ship (#39675) 2018-08-14 17:12:25 -04:00
Emmett Gaines
e248d342b8 Removes the shuttle timid var (#39445)
Now that shuttles are all loaded via template we no longer have a need for the
timid var on shuttles.

Well not all shuttles, it seems I forgot to template the backup shuttle so it
wouldn't have been working until now. This got fixed here as well.
2018-08-01 21:19:16 -07:00
ninjanomnom
a7f6e72978 Fixes cargo shuttle ids 2018-07-26 17:46:16 -04:00
Emmett Gaines
3ffd45eaf5 Allows duplicates of shuttle templates (#39219)
* Allows duplicates of shuttle templates

* Trigger shuttle linkage from template load
2018-07-26 22:46:35 +12:00
Jordan Brown
7c84d4f464 Makes a thing use its macro (#38556) 2018-06-18 17:16:57 -07:00
Jordan Brown
16a0814601 Merge pull request #38527 from AutomaticFrenzy/patch/ripples
Fix ripples appearing too broadly and disappearing too soon
2018-06-17 12:11:33 -04:00
Tad Hardesty
75dd6d7158 Improve readability of ripple check 2018-06-17 01:24:03 -07:00
Tad Hardesty
d4415e5387 Fix ripples appearing too broadly and disappearing too soon 2018-06-16 02:58:28 -07:00
kevinz000
7996baca4c Clear transit changes 2018-06-11 19:13:38 -07:00
kevinz000
7bf86ed53f Refactors transit requests to turf_reservations. 2018-06-04 16:30:15 -07:00
Emmett Gaines
820dae6c33 Fixes jumpToNullSpace (#37442)
woops
2018-04-27 21:04:23 +03:00
Emmett Gaines
7dcd690756 Removes some unnecesary vars on shuttles (#37041)
* Removes some unnecesary vars on shuttles

* Forgot to reapply unused transit turf flag
2018-04-12 13:42:03 +03:00
kevinz000
4d41d3cf95 Shuttle garbage collection (#36871)
* Shuttle garbage collection

* istype
2018-04-07 20:51:30 -04:00
Emmett Gaines
49d1e9ee66 Shuttles have additional baseturfs, and other minor baseturf changes (#36388)
cl ninjanomnom
fix: Shuttles have proper baseturfs now.
fix: Mineral walls properly use their baseturfs when destroyed/drilled.
add: A new engineering goggle mode allows you to see the shuttle area you're standing in.
admin: Buildmode works a bit better with baseturfs now and can properly only remove the top layer of turfs when editing. Note that as a result the order you place turfs is important and a wall placed on space means when the wall is removed there will be space underneath.
/cl

This adds an area hook for turfs getting the PlaceOnTop proc called so shuttle areas are able to intercept it and add a special turf used for determining where the bottom of the shuttle is. I'm not too certain on this being the best way to handle it but the alternatives restrict the kind of turfs that are allowed to be on shuttles which I didn't want to do as it was part of the whole intent of the baseturf change to allow any turf type on shuttles.

The alternative to the area hook would require a tool which attaches turfs to a shuttle which is why there's a shuttle area viewing tool in this pr. I considered doing it this way first but decided it was too clunky.

In addition to other changes:

Tiled/Reinforced floors have proper baseturfs now.

A large amount of the remaining ChangeTurf calls were swapped over to various baseturf helpers so, for example, mining doesn't create a lavaland turf if somehow the mineral wall is on plating.

Escape pods, the aux base, and syndicate drop pod have been converted over to shuttle templates as well.

The error when the timid var is set incorrectly has been changed to a stack_trace.

The change turf file has been made all lowercase as per standard.
2018-04-05 11:13:20 +12:00
Emmett Gaines
8174eaf2e1 Improves the shuttle error to include jump links and destination (#36305) 2018-03-10 18:52:29 -05:00
coiax
8e20aa3f7b Refactors shuttles to be loaded in, rather than be on the station maps (#33766)
* Refactors shuttles to be loaded in, rather than be on the station maps

- Shuttles are now loaded in by the shuttle subsystem.

You configure what shuttles are loaded in via
`/obj/configuration/shuttle_load` objects.

* Box arrivals shuttle is now imported from template

* Moves things out of the #ifdef

* Box emergency shuttle is now imported

* Box emergency shuttle is now templated

* Box ferry and whiteship now load from template

* More shuttles on Box done

* Apart from the pods, Box is now completely templated

* Delta now has all non-awkward shuttles loaded in

And Centcom..

* Removes no ops turfs, more error messages

* Fixes slightly chopped off external wall

* Massaging more shuttles into working correctly

* Debug messages are king

* Delta cargo shuttle now docks again

* First pass of Metastation shuttles

* Omegastation first pass

* Metastation now has its own shuttle

* Did most shuttles on Pubby

* Turns out Pubby arrival shuttle is slightly smaller than Box arrival

* Whoops, missed a stationary port

* TGMified the pubby arrival shuttle

* First pass, box is working

* All stations now have roundstart_template and no configuration objects

* Removes roundstart_move

* Why do we even have these unused keys

* Remove unused coded vars

* removes some excessive safety checks

* Missed some Centcom cargo dock stuff

* Got it working again

* That thing that Cyberboss wanted

* Noop turfs the shuttle templates

* And template noop for the area

* Attempts to assuage travis

* Warning!

* Please love me, Travis

* RIP Remie
2018-01-25 15:18:15 -05:00
MoreRobustThanYou
5bc77ea0bc Shuttles will now throw you when taking off
🆑 SPACE CONDUCTOR
tweak: Shuttles will throw you around if ya don't buckle in
/🆑
2018-01-25 09:15:10 +13:00
Emmett Gaines
c206c0cc68 lets check_dock be silent (#34614) 2018-01-21 19:34:17 +01:00
Tad Hardesty
f2dbe5cf13 Replace explicit z-level checks with defines (#33829)
* Replace explicit z-level checks with defines

* Rename turf_z_is_planet for consistency

* Use TRUE/FALSE in onSyndieBase
2017-12-29 14:40:06 -05:00
Emmett Gaines
4595c46dca turns the baseturf var into a part time list (#33705) 2017-12-25 20:10:08 -05:00
Emmett Gaines
ca603a6db4 a new file for dock and its new fractured existence (#33627) 2017-12-18 21:24:48 -06:00
Emmett Gaines
25080ff2c4 defines math (#33498) 2017-12-17 11:02:11 -05:00
Cruix
ac1fbcc858 Fixed several bad type checks in shuttle procs (#33497) 2017-12-13 22:08:30 -05:00
Jordan Brown
f91c577863 Merge pull request #33457 from ninjanomnom/check-your-tick
Check ticks some more in dock()
2017-12-12 13:58:03 -05:00
ninjanomnom
bef7ed41d3 nothing happened 2017-12-11 13:06:34 -05:00
ninjanomnom
9462eb18d8 check tick before onMove 2017-12-11 05:48:40 -05:00
Emmett Gaines
7848d73acc minor improvements (#33424) 2017-12-10 18:44:00 -05:00
Cruix
05d7402bad Allowed shuttle docking ports to be hidden from some shuttle docking computers (#33148)
Added a delay to the white ship shuttle docking computer designating a landing spot
2017-12-11 09:22:48 +13:00
ninjanomnom
327727f70c allows for qdel in shuttleMove procs 2017-12-07 22:37:30 -05:00
ninjanomnom
761c02ba45 old turf in afterShuttleMove 2017-12-05 16:00:16 -05:00
Emmett Gaines
17180f1f0e custom docker improvements (#32626) 2017-11-24 12:44:12 +01:00
Emmett Gaines
7c69cdcb8a Revert math (#33059)
* Revert "all this wrapping and it's not even christmas (#33035)"

This reverts commit faaf151580.

* Revert "fuck me for forgetting to graph this one"

This reverts commit 45d7acea2f.

* Revert "defines math"

This reverts commit 2817a1737b.
2017-11-23 20:59:52 -05:00
ninjanomnom
2817a1737b defines math 2017-11-22 17:36:58 -05:00
ShizCalev
12b8daa02b Fixes incorrect to_chat usage 2017-11-18 23:09:10 -05:00
Emmett Gaines
3934a84249 fixes shuttle parallax again (#32350) 2017-11-03 16:22:48 -04:00
oranges
2bd56ab358 Merge pull request #32269 from ninjanomnom/cargo-shuttle-moblock
Makes enterTransit check canMove and sets mode to idle
2017-11-02 09:51:45 +13:00
Emmett Gaines
4d420b8975 Shuttle rotation refactor and significant performance upgrade (#31942)
* Shuttle rotation refactor

* cleanup

* fixes the air leak bug

* Updates the turf decal component and cleans up some code

* transfercomponents and some list optimization

* Makes turf_decals cleanable in theory

* review cleanup

* final cleanup: decals work
2017-10-31 21:23:17 -04:00
ninjanomnom
dc359635ca Makes enterTransit check canMove and sets mode to idle 2017-10-30 17:54:08 -04:00
Emmett Gaines
13ab4f55d9 Next round of shuttle fixes at the cost of a small piece of my sanity (#31784)
* shuttle bugs begone

* cleanup
2017-10-17 19:00:10 +02:00
Cruix
8d4a9b832e Fixed the shuttle navigation computer allowing you to move docking ports (#31721)
* Fixed the shuttle navigation computer allowing you to move stationary docking ports

* Moved a var from stationary docking ports to mobile docking ports

* Removed a sanity check
2017-10-16 22:01:01 -06:00