Commit Graph

242 Commits

Author SHA1 Message Date
kevinz000
d1411a8eee [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 10:09:09 +01:00
Jordan Brown
77bdf0f349 Merge pull request #41574 from 4dplanner/throwforce2
Sets lower default value for throw force
2018-11-20 11:16:57 +01:00
4dplanner
8d1be69d22 Passes thrownthing to hitby (#41411)
* Passes thrownthing to hitby

* Items now also pass thrownthing

* No longer uses default arguments

Also fixes bananium shield

* Adds more arguments to hitby calls

* Standardises throw_impact

* Clears up some loose ends

* Adds back wacky comment

* Reinstates can_push=FALSE on bananium shield
2018-11-15 14:30:27 +01:00
oranges
8628212755 Merge pull request #41261 from ninjanomnom/floating-movetype
Makes floating a movetype instead of a movable var
2018-11-05 17:47:32 +01:00
Dennok
a156ecc56f Fix pulling being broken by Z transitions (#40778) 2018-10-20 22:47:43 +01:00
Emmett Gaines
cf8c3233b6 Adds movetype based speed modifiers and makes the mood speed mod use it (#40581)
This allows us to more easily keep track of speed modifiers which only affect certain move modes. Also cleans up a small bit of movespeed and mood code while I'm at it.
2018-10-17 11:16:04 +01:00
kevinz000
1f7a76ade0 Combat/Stun (slip) overhaul staging, mobility flags, adds crawling (#39967)
Aiming to implement the framework oranges has detailed in https://tgstation13.org/phpBB/viewtopic.php?f=10&t=19102
Moves canmove to a bitflag in a new variable called mobility_flags, that will allow finer grain control of what someone can do codewise, for example, letting them move but not stand up, or stand up but not move.

Adds Immobilize()d status effect that freezes movement but does not prevent anything else.
Adds Paralyze()d which is oldstun "You can't do anything at all and knock down).
Stun() will now prevent any item/UI usage and movement (which is similar to before).
Knockdown() will now only knockdown without preventing item usage/movement.
People knocked down will be able to crawl at softcrit-speeds
Refactors some /mob variables and procs to /mob/living.
update_canmove() refactored to update_mobility() and will handle mobility_flags instead of the removed canmove

cl
rscadd: Crawling is now possible if you are down but not stunned. Obviously, you will be slower.
/cl
Refactors are done. I'd rather get this merged faster than try to fine tune stuff like slips. The most obvious gameplay effect this pr has will be crawling, and I believe I made tiny tweaks but I can't find it Anything I missed or weird behavior should be reported.
2018-10-10 23:21:27 +01:00
Emmett Gaines
1d157c337d Componentizes orbiting (#40433)
cl ninjanomnom
fix: Orbiting is a little more aggressive about staying in orbit. The wisp as a result now correctly follows you over shuttle moves.
/cl

Goodbye SSorbit you ticking piece of shit

This also gives update_sight a signal so wisp code isn't hardcoded into it.
2018-09-25 09:07:24 +01:00
kevinz000
bb5cca1893 Adds move force and move resist, movement/pushing/pulling tweaks (#39556)
* Removes anchroed from mobs, adds move force/resist

* Move force and move resist

* WIP, still has debug messages.

* Fixes

* Update living.dm

* Anchored removal

* Stuff

* Unit tests

* Removes anchored from dview

* DME

* Update anchored_mobs.dm

* Fix

* No ghost spacewind

* Update mulebot.dm

* Update temporary_visual.dm

* Update forcefields.dm

* Update step_triggers.dm

* Update portals.dm

* Update alien_acid.dm

* Update bump_teleporter.dm

* Update landmarks.dm

* Update countdown.dm

* Update blessing.dm

* Update shieldgen.dm

* Update containment_field.dm

* Update field_generator.dm

* Update singularity.dm

* Update atmosmachinery.dm

* Update door.dm

* Update gravitygenerator.dm

* Update door.dm

* Update effects.dm

* Update temporary_visual.dm

* Update bump_teleporter.dm

* Update forcefields.dm

* Update landmarks.dm

* Update portals.dm

* Fixes

* Throwforce annnd done, finally

* Fixes

* Haha I'm dumb sometimes
2018-09-15 21:58:05 +01:00
Nich
7215a69ceb Update atoms_movable.dm 2018-08-27 00:15:30 +02:00
Nich
7586affc1b ports a para thing 2018-08-27 00:09:47 +02:00
oranges
2e3c000bf7 Merge pull request #39728 from YPOQ/areaenteredfix
Fixes Move() not calling area/Entered and area/Exited()
2018-08-16 00:42:39 +01:00
Patrick Chieppe
584ab92bc3 Logging system refactor and improvement (#39521)
* Refactor several log lines to use datum_info_line and atom_loc_line

* Add default return strings from datum_info_line and atom_loc_line

* Add parentheses around atom_loc_line data

* Change more logs to use atom_loc_line

* Add check in atom_loc_line for turfs to avoid calling get_turf on them

* Re-add removed 'at'

* Replace datum_info_line with key_name and atom_loc_line with loc_name

* Refactor logging functions

* Avoid double-logging self-interactions

* Fallback to simple stringification if all else fails in key_name()

* Rewrite muscle spasm logging to use log_message

* Standardize logging of martial arts

* Tweak individual logging panel look

* Fix individual logging panel source

* When I typed || I really meant &&

* Fix Telecomms logging always showing client logs in the panel

* Reverts addition of buggy ownership log to panel

* Remove colon

* Fix missing log_directed_talk tag

* Add warning for missing type in log_direted_talk

* Change warnings to stack_traces

* Add square brackets around fallthrough key_name() case to help parsing

* Allow atom arguments/src in log_*() functions

* Change log_combat call with null argument to log_message

* Change mecha types' log_message() arguments to match atom and mob version

* Add key_name() case for atoms

* Fix resist_grab() unsetting pulledby before log_combat gets a chance to use it

* Fix log_globally logic

* Add logging for hitting objects with items

* Move log_combat() to atoms.dm

* Use utility functions for object stringification in log_combat()

* Use utility functions for object stringification in log_combat()

* Add missing logs for interacting with display cases

* Rewrite log_combat() comment

* Add missing space in log_combat()

* Add logging for hitting grilles barehanded

* Add missing ..()
2018-08-12 20:40:46 +01:00
Ling
8f51e31dc5 Merge pull request #2114 from yogstation13/upstream-merge-39181
[MIRROR] Movespeed Modification System
2018-08-12 10:50:10 +02:00
YPOQ
42373a7688 Fix Uncrossed being called on the wrong turf's contents (#39625)
Footprints should no longer spread out of control
2018-08-10 20:34:07 +01:00
kevinz000
b5e2daa978 Movespeed Modification System (#39181)
In preparation of pixel movement, I want to refactor our slowdown system to something more modular, and something that doesn't require /quite/ as many proccalls/calculations a tick. The way this works is intended to only have things recalculate when it's necessary, rather than calling it every move.
However, I've left movement_delay() in, as without completely redoing a lot of code it's not /quite/ ready at this point to tear it out completely, but I'm hoping everything can be transitioned over to this system later.
2018-08-09 21:55:07 +01:00
Emmett Gaines
d4d8b08185 Adds Uncrossed to forceMove (#39434)
Objects picked up from tables blocking throws will no longer be forever
unthrowable
2018-07-29 23:45:16 +01:00
Iamgoofball
8d1c48a78e Anim bugfixes (#39311)
* Adds juice to picking up stuff

Stolen completely from https://github.com/OracleStation/OracleStation/pull/1072

* perfection

* Pickup animation now tweens to the correct spot if you move

* mutable appearance

* Fixes the item pickup animation

* eh whatever

* Update atoms_movable.dm
2018-07-26 19:36:16 +02:00
JJRcop
6025285ab0 Pickup animation now tweens to the correct spot if you move (#39292) 2018-07-25 18:35:08 +02:00
Ling
b7f6bf3334 Merge pull request #1833 from yogstation13/upstream-merge-39245
[MIRROR] Fixes VV on movables not being able to move things into nullspace
2018-07-22 11:40:40 +02:00
Iamgoofball
e463968c2e Fixes the pickup animation. (#39261)
I'm not certain if it was the static, the mutable appearance, or the JJR PR that broke it, but I'm going to assume all of the above.
2018-07-22 07:38:22 +01:00
kevinz000
c247379b98 Fixes VV on movables not being able to move things into nullspace (#39245)
forcemove was refactored and no longer will let you pass in null.
2018-07-21 22:29:41 +01:00
AnturK
9eee86d4c1 Makes objects blocking air restore airflow in /atom/Destroy (#39210) 2018-07-21 11:28:49 +01:00
Iamgoofball
0ec3213f7d Adds juice to picking up stuff (#39231)
* Adds juice to picking up stuff

Stolen completely from https://github.com/OracleStation/OracleStation/pull/1072

* perfection

* Pickup animation now tweens to the correct spot if you move

* mutable appearance
2018-07-21 00:22:39 +01:00
Emmett Gaines
aaf66aac78 Fixes mech equipment being unremovable (#39161)
And probably other issues with objects in objects moving out
2018-07-17 10:04:47 +01:00
Emmett Gaines
165a9f7b28 Makes magnetic catch cleaner in game (#38956)
Utilizes the new signal refactor to cancel throws before they happen. This prevents the silly spin even though the throw was stopped.
2018-07-13 09:31:42 +01:00
Jordan Brown
703d9c0943 Merge pull request #38938 from ninjanomnom/b-b-bump
Converts collide back to bump and fixes double bumping in another way
2018-07-09 19:51:07 +01:00
ninjanomnom
9148814280 Shuttle throwing applies to all objects as opposed to just mobs 2018-07-04 02:05:31 +02:00
Tad Hardesty
0d4d92026a Move throwforce up to atom/movable (#38689) 2018-06-26 21:26:59 +01:00
Tad Hardesty
10e0fa2560 Merge pull request #38287 from ninjanomnom/signal-define
Use a define to speed up sending signals to datums with no signals
2018-06-15 12:40:41 +01:00
Cruix
975c1d6451 Fixed item attack overlays being in the hud plane (#38450) 2018-06-14 08:55:08 +01:00
oranges
8d31a4fa0c Merge pull request #38367 from AutomaticFrenzy/patch/pull-diagonally
Fix pulling diagonally looking goofy
2018-06-12 00:50:10 +01:00
vuonojenmustaturska
471ef5fd31 Include item overlays in attack animations (shows the proper color of screwdrivers etc) (#38225)
* overlay attacks

* this works too

* fix trays too
2018-06-03 19:24:34 +01:00
vuonojenmustaturska
77410bd84b Move NODROP_1, DROPDEL_1, ABSTRACT_1 and NOBLUDGEON_1 to item_flags where they belong (#38171)
* (mostly) nodrop

* (mostly) dropdel

* (mostly) abstract

* nobludgeon

* things i missed

* forgot one

* unintended changes

* energy handcuffs
2018-06-01 15:48:10 +02:00
oranges
7baefd0caf Merge pull request #38159 from AutomaticFrenzy/patch/diagonalley
Arrest diagonal movement when force-moved
2018-05-31 22:44:06 +01:00
Tad Hardesty
d33e3951b7 Allow into space diagonally (#38066) 2018-05-26 12:29:28 +01:00
kevinz000
908ba3a37e Shuffle Exited call to after loc is actually changed in forceMove (#38022)
Fixes storage forcing everything to mouse opacity fulltile
2018-05-25 08:08:34 +01:00
AnturK
d718a3a607 Fixes proximity sensors. (#37985)
* Fixes proximity sensors.

* comment -> removal
2018-05-24 10:44:20 +01:00
vuonojenmustaturska
c0642e965a Adds a stationloving component to replace a couple of flags and SSinbounds with (#37436)
* station lovin' happened so fast

* Update stationloving.dm

* less qdel memes

* imbue soul signal

* rename imbue soul signal

* dupemode

* henk

* Update atoms_movable.dm

* Update nuclearbomb.dm

* Update nuclearbomb.dm
2018-04-27 13:36:56 +01:00
vuonojenmustaturska
9a3903ff0f Couple of fixes for situations involving mechas and the clock cult gamemode (#37218)
* couple of mech fixes

* safety

* gateway, gravity gen

* Restores oingo-boingo punch-nuke
2018-04-18 15:33:07 +01:00
kevinz000
9ba8e6df20 Component Storage, Experimental attack_hand and [ui_]interact() refactors (#36696) 2018-04-12 12:46:50 +01:00
AnturK
43e6f8f658 Makes spacemove check location. 2018-04-09 21:34:56 +02:00
Cruix
99dfdac8d3 Added a new ability to sentient diseases (#36548)
* Replaced body zone magic strings with defines

* Added the Secrete Infection ability to sentient diseases, and updated the infective component
2018-03-30 20:10:37 +01:00
vuonojenmustaturska
54de24c2a0 Merge pull request #36541 from XDTM/NOTTHEBEES
Swarming component! Beware of bees
2018-03-27 15:04:54 +01:00
vuonojenmustaturska
39360b5f10 Removes a whole bunch of nuclear emergency memes (#36215)
* Meme removal

* unneeded check with non-shuttles not being in the typecache

* Disallows space Z transit into shuttles/inside walls and rock

* Revert 'remove navigation consoles on wardec'
2018-03-08 12:44:28 +01:00
Jittai
9cbb3f9b58 Ctrl-clicking mobs is consistent in that it upgrades grabs (#35547)
cl Jittai
tweak: Ctrl+Clicking progresses through grab cycle on living mobs (not just humans)
/cl
2018-02-20 09:41:44 +13:00
XDTM
f4847c230e [Ready]Minor Slime Update: slimepeople get the slime language, slimes speak slime instead of common (#33773)
* Minor Slime Update: slimepeople get the slime language, slimes speak the slime language instead of common

* shadow language

* shadows part 2
2018-01-25 08:47:21 +13:00
Tad Hardesty
35faafa8bc Refactor weather to use Z traits, assorted related cleanup (#34633)
* Add a proc for getting the station center

* Add a couple of comments to ZTRAIT defines

* Remove unused global_map list

* Refactor weather to use the trait system

* Un-hardcode the transit z-level

* Use Z traits to determine Portal Storm event areas

* Fix loading away missions containing anything that reads traits
2018-01-21 20:33:11 +01:00
AnturK
74e5327e97 Fixes the diagonal sliding 2018-01-18 09:33:27 +01:00
arsserpentarium
c86fc91b55 [READY]Pulling claw 2 (#33817)
Pulling claw is integrated circuit,which allows drones to pull things.
2018-01-12 09:02:56 +13:00