Commit Graph

1536 Commits

Author SHA1 Message Date
mirrorcult
1c7285825c Refactor ExtinguisherCabinet->ItemCabinet and actually maps them in, adds EntityWhitelist (#4154)
* i probably shouldnt have done this in one commit

* map nonsense

* fix example code

* unnecessary

* test

* reviews

* little fix for open datafield

* add soul
2021-06-09 12:10:29 +10:00
mirrorcult
22e5ad89a5 MindComponent loc, kitchenspike loc fixes, climbable loc fixes (#4071)
* mindcomp loc, kitchenspike loc fixes, climbable loc fixes

* add fluent functions for words that change on pronoun, add grammarcomponent to humans

* fix the()

* cleanup

* cleanup

* reviews

* holla holla get dolla
2021-06-08 13:59:32 -07:00
ShadowCommander
6870b88a56 Interaction clean up (#4091)
* Rename and clean up interaction events

* Fix hand equip events

* Refactor duplicate client input validation

* Rename Use handler

* Move unneeded InRangeUnobstructed methods to extensions only

* Clean up UseInteractions

* Clean up ActivateItemInWorld

* Replace explicit range check with InRangeUnobstructed

Remove TransformComponent check, since transform is guaranteed now.

* Revert transform check removal

* More cleanup

* Reorder interaction checks

* Rename attack eventargs to interact

* Test V1

* Add interaction test

* Fix interaction test

* Fix container interaction test

* Rename interaction methods

* Rename player to user and attacked to target

* Clean up InteractAfter

* Clean up InRangeUnobstructed usages

* Rename attack to interact and weapon to used

* Changed can't reach message to only play when holding something

Cleaned up bracket formatting

* Fix Airtight validation check

* Remove extra words in comments

* Fix FaceClick rotation

* Move duplicate map check and face to method

* Fix test
2021-06-07 05:49:43 -07:00
20kdc
561a5bc0f2 Cloning error messages and prediction based timing (#4013)
* Cloning error messages and prediction based timing

* Cloning error messages & prediction based timing: Fix problems mentioned in reviews
2021-06-06 03:32:59 +10:00
Vera Aguilera Puerto
62ce603858 Fix punching (#4141) 2021-06-06 02:05:57 +10:00
metalgearsloth
70ac46ee09 Make dead bodies use CollisionWake (#4119)
* Make dead bodies use CollisionWake

* Disable CanCollide fuckery

* Update Content.Shared/GameObjects/Components/Mobs/State/SharedDeadMobState.cs

Co-authored-by: Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
2021-06-05 09:23:24 +02:00
mirrorcult
f744b655b8 Refactor MeleeWeaponComponent and related comps to be ECS (#4133)
* move everything to MeleeWeaponSystem

* refactor MeleeChemicalInjector

* hypospray and flash refactor

* stunbaton refactor

* bugfixes

* flash afterinteract

* resolve issues

* props

* playing the slots

* MeleeInteractEvent + bugfixes

* spear can actually use MeleeChemicalInjector
2021-06-05 09:20:52 +02:00
20kdc
2f821f2bc3 You can now return to a brain. Also, clean up terrible console misuse. (#4092)
* You can now return to a brain. Also, clean up terrible console misuse.

* Get rid of Obsolete attribute on Ghost.Execute
2021-06-03 01:03:19 -07:00
20kdc
6a78c401bf Singularity Fixes, Part 3 (#4105)
* Hopefully make singularity shader warping resolution-invariant

This may or may not fix intensity issues

* Fix singularity 'zero velocity' check

It got stuck in a corner. Twice. I really thought I'd fixed that.

* Make it easier to move around various power stuff by shrinking their AABBs a little and making singulo generator a circle

* Changes to some machine prototypes to reduce duplication of collision changes (#1)

* Changes to some machine prototypes to reduce duplication of collision changes

* BaseMachine.BaseMachineUnpowered -> BaseMachine.BaseMachinePowered
2021-06-03 00:55:50 -07:00
Vera Aguilera Puerto
74eb2bd283 Anchorable attempt events now have an optional extra delay field. 2021-06-03 09:40:56 +02:00
Vera Aguilera Puerto
c470a1c508 Fixes bug with anchorable attempt events, add "Before" events. 2021-06-03 09:36:43 +02:00
metalgearsloth
841d07c622 Fix buckle test (#4117)
AFAICT there's a directed event getting raised in TryUnbuckle from the parent change which then tries to GetComponent buckle which doesn't work.
2021-06-01 23:42:54 +10:00
Vera Aguilera Puerto
20243052cb NodeGroups are dirtied when one of the nodes' snapgrid position changes.
Adds method to add behavior to a node when its snapgrid position changes.
2021-06-01 11:48:24 +02:00
Vera Aguilera Puerto
59a26102c5 Remove INodeGroupManager, moves logic into NodeGroupSystem.
It was an absolutely redundant IoC service.
2021-06-01 11:34:19 +02:00
R. Neuser
db4213b21a Fix Issue #4056 - Prevent cargo order quantities larger than the maximum (#4057)
* Fix merge conflicts with #4078
Check if the requested cargo order amount exceeds the maximum capacity
Check if the maximum order capacity would be exceeded given current capcity and order amount when approved
Cap maximum cargo request amount on client-side
Play an error sound if a cargo order could not be added or approved

* Add back error sound

* Cargo orders over the maximum amount do not close the order UI
2021-05-31 21:45:28 -07:00
ShadowCommander
1d94ebdca5 Comment out unused variables (#3713)
* Comment out unused variables

* Address reviews

* Address more reviews
2021-06-01 00:01:13 +02:00
metalgearsloth
d93ebe9409 Remove ICollideSpecial
Handled in an ECS way by PreventCollideEvent.
The disposals one doesn't work anyway and would've required a larger refactor of disposals to fix so out of scope.
2021-05-30 23:30:44 +10:00
Vera Aguilera Puerto
1ec2f39291 Fix some things setting StackComponent count manually. 2021-05-30 08:53:02 +02:00
esguard
0ef61ba47a Fixes money being debitted multiple times (#4078) 2021-05-30 15:19:14 +10:00
20kdc
a3d9562532 Makes the singularity engine actually work stably. (#4068)
* Add GNU Octave script for tuning singularity engine. startsingularityengine is now properly tuned & sets up radiation collectors. FTLize RadiationCollectorComponent.

* Fix bugs with radiation collectors producing infinite power.

* Ensure singularities don't instantly annihilate other singularities (causing new singularities to instantly dissolve)

Technically found by a "bug" where a singularity generator would make multiple singularities, but this renders that bug harmless.

* Tune singularity shield emitters to hopefully randomly fail less, and add an Octave script for looking into that

* Fix singularity shader

* Map in an unfinished PA into Saltern

* Correct PA particles being counted twice by singularity calculations, add singulo food component

* Hopefully stop "level 1 singulo stuck in a corner" issues by freezing it when it goes to level 1 from any other level

* Apply suggestions on 'jazz' PR
2021-05-28 11:44:13 +02:00
mirrorcult
3ba0c01e4f Fix being able to fill beakers through walls (#4103) 2021-05-28 11:20:16 +02:00
Vera Aguilera Puerto
0c68f2973e Adds YAML linter validators for content tiles.
- Removes invalid floor drops.
2021-05-27 11:42:04 +02:00
Vera Aguilera Puerto
f64433a14d Makes more things queue delete to prevent physics collision callback issues. 2021-05-26 18:43:12 +02:00
Vera Aguilera Puerto
0f703b8f02 Stack examining is now ECS. 2021-05-26 10:32:40 +02:00
Vera Aguilera Puerto
33fa208214 Refactors stacks to be fully ECS. (#4046) 2021-05-26 10:20:57 +02:00
scrato
2d709f6294 Fix: #4037 Being able to dehandcuff yourself while dead (#4062)
* Fix #4037 (dead handcuffs)

* check ActionBlocker.CanInteract

* Removed unnecessary using

Co-authored-by: Michael Will <will_m@outlook.de>
2021-05-24 07:55:48 -07:00
20kdc
e88c092c3c Bring singularity back from the brink of "particles don't even hit" (#3963)
* Bring singularity back from the brink of "particles don't even hit anything"

* Remove force-disable-hard from singularity code so it doesn't just ignore containment

Shouldn't this be the prototype's job if they want that so much?
This might have some sorta downside, but this brings singulo back into being containable

* Apply ShadowCommander's suggested layers/masks for particles

Tested, singulo properly spawns and develops with this mask

Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>

Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
2021-05-23 21:14:15 -07:00
SethLafuente
48cd4a76c2 Protolathe Printing and R&D technology (#4039)
Co-authored-by: SETh lafuente <cetaciocascarudo@gmail.com>
2021-05-24 00:38:26 +00:00
ShadowCommander
acb102f978 Rename and clean up interaction events (#4044)
* Rename and clean up interaction events

* Fix hand equip events
2021-05-22 21:06:40 -07:00
Vera Aguilera Puerto
bf1fce006f Fix buckle not working 2021-05-22 13:53:51 +02:00
Swept
9dd2e9eeaa Removes solution transfer verbs (#4048) 2021-05-21 23:36:16 +02:00
Swept
4ca854b142 Changes - name: in StorageFillComponent.cs to - id: (#4051)
* Changes all - name: fields to - id: fields to make more sense in StorageFillComponent.cs

* Fixes test
2021-05-21 23:30:03 +02:00
SweptWasTaken
9954764c58 Adds a light code comment to StorageFillComponent.cs 2021-05-21 11:56:15 -07:00
Swept
74d044a4a9 Adds more splat and tweaks PuddleComponent.cs (#3942)
Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>
2021-05-21 00:19:18 +00:00
scrato
80a864724b Fixed 4014 (#4033)
Co-authored-by: Michael Will <will_m@outlook.de>
2021-05-20 14:58:28 +02:00
Vera Aguilera Puerto
3a27490c59 Material cleanup (#4025)
* work

* more work
2021-05-20 10:37:34 +02:00
Vera Aguilera Puerto
92b01d6a7c Makes a few deletes queued. (#4015) 2021-05-17 13:14:28 +02:00
ShadowCommander
b907c54470 Fix kitchen spike (#4008)
* Fix kitchen spike

* Add fluent localization

* Add newline

* Prevent things that are not dead from being spiked
2021-05-17 11:12:17 +02:00
Vera Aguilera Puerto
dc03f1f545 AnchorableComponent light cleanup. (#4009)
* Remove awful commands

* Unanchoring is a word.

* Fix disposal tests....

* Slight anchorable cleanup
2021-05-16 22:33:21 +02:00
20kdc
438b60310d Various Paper adjustments (#3993)
* Various Paper adjustments

+ can now have prefilled text
+ cleaned up paper sprite layering a bit,
+ adds an AME manual as a test but doesn't put it anywhere
+ Paper cannot write arbitrary Examine markup

* Paper component doesn't show text on examine anymore
2021-05-15 17:43:19 +02:00
Pieter-Jan Briers
26c2d9f479 Remove usages of physics anchored from content 2021-05-13 02:13:12 +02:00
Pieter-Jan Briers
251df93b71 Remove usages of AnchoredChangedMessage.
It was a component message which is now deprecated.
2021-05-13 02:05:46 +02:00
20kdc
e0f7ca7740 Little component to make batteries examinable. (#3982) 2021-05-13 01:10:57 +02:00
Vera Aguilera Puerto
f0c1efed9b Footstep SFX are played on entity coordinates, instead of following the entity.
This prevents client-side "can't play sound" spam when the entity is NaN'd due to PVS.
2021-05-12 14:50:15 +02:00
Vera Aguilera Puerto
722087f92a Melee arc effects are only sent to players inside PVS. 2021-05-12 14:47:56 +02:00
Vera Aguilera Puerto
462cddf860 Use ActorComponent instead of IActorComponent or BasicActorComponent. (#3966) 2021-05-12 13:42:18 +02:00
ShadowCommander
c2d66723a3 Cloning rework (#3808)
* Fix cloning

* Fix cloning after clone dies and remove unneeded code

* Fix ignored

Co-authored-by: Silver <silvertorch5@gmail.com>
2021-05-11 16:16:08 -07:00
Alex Evgrashin
bf94e37730 Fix anchoring? Maybe? (#3974) 2021-05-12 00:16:48 +02:00
Pieter-Jan Briers
4e89ba560e Add basic example NL entity localizations.
Make secret stash use fluent in one spot as example.
2021-05-11 23:13:43 +02:00
Vera Aguilera Puerto
9c3c81e8d8 Fix radio messages not being sent and messages not being escaped. 2021-05-11 12:17:47 +02:00