mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
Ports Blob from https://github.com/Goob-Station/Goob-Station/pull/975 that was ported from https://github.com/Rxup/space-station-14. Credit to VigersRay for original code, Roudenn and Rxup for maintaining and jorgun for the Goob port. --- - [X] Port https://github.com/Goob-Station/Goob-Station/pull/975; - [X] Port https://github.com/Goob-Station/Goob-Station/pull/1209; - [X] Port Blob related code from https://github.com/Goob-Station/Goob-Station/pull/1262; - [X] Port Blob related code from https://github.com/Goob-Station/Goob-Station/pull/1340; - [X] Port https://github.com/Goob-Station/Goob-Station/pull/1408; - [X] Port https://github.com/Goob-Station/Goob-Station/pull/1419; - [X] Port https://github.com/Goob-Station/Goob-Station/pull/1440; - [X] Port https://github.com/Goob-Station/Goob-Station/pull/1817; - [X] Port https://github.com/Goob-Station/Goob-Station/pull/2077; - [ ] ~Port https://github.com/Goob-Station/Goob-Station/pull/1916~; - [ ] ~Port https://github.com/Goob-Station/Goob-Station/pull/1917~; - [X] Port https://github.com/Goob-Station/Goob-Station/pull/2077; - [X] Port https://github.com/Goob-Station/Goob-Station/pull/2092; - [X] Port https://github.com/Goob-Station/Goob-Station/pull/2546; - [X] Port https://github.com/Rxup/space-station-14/pull/963; - [X] Port https://github.com/Rxup/space-station-14/pull/998; - [ ] ~Port https://github.com/Goob-Station/Goob-Station/pull/2563~. - [X] Enable Blob and Blob gamemode; - [X] Add `StationGlobConfig` to all stations; - [X] Use `AnnouncerSystem` in `BlobRuleSystem.cs`; - [X] Blob language and Hivemind (from https://github.com/Rxup/space-station-14/pull/176); - [x] Change CVars location; - [X] Add media. --- <details><summary><h1>Media</h1></summary> <p> https://youtu.be/-WtMQwRcmrU?si=su3An6RtiCTZg-DV </p> </details> --- 🆑 VigersRay, Roudenn, Rxup, vladospupuos, fishbait and Kyoth25f - add: Added a new antagonist: Blob --------- Co-authored-by: fishbait <gnesse@gmail.com> Co-authored-by: Fishbait <Fishbait@git.ml> Co-authored-by: Aiden <aiden@djkraz.com> Co-authored-by: beck-thompson <107373427+beck-thompson@users.noreply.github.com> Co-authored-by: lanse12 <cloudability.ez@gmail.com> Co-authored-by: BombasterDS <deniskaporoshok@gmail.com> Co-authored-by: Aviu00 <93730715+Aviu00@users.noreply.github.com> Co-authored-by: Piras314 <p1r4s@proton.me> Co-authored-by: shibe <95730644+shibechef@users.noreply.github.com> Co-authored-by: Ilya246 <57039557+Ilya246@users.noreply.github.com> Co-authored-by: JohnOakman <sremy2012@hotmail.fr> Co-authored-by: Fat Engineer Gaming <159075414+Fat-Engineer-Gaming@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Rouden <149893554+Roudenn@users.noreply.github.com>
101 lines
4.6 KiB
C#
101 lines
4.6 KiB
C#
using JetBrains.Annotations;
|
|
using Robust.Shared.Map;
|
|
using Robust.Shared.Physics.Dynamics;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Physics;
|
|
|
|
/// <summary>
|
|
/// Defined collision groups for the physics system.
|
|
/// Mask is what it collides with when moving. Layer is what CollisionGroup it is part of.
|
|
/// </summary>
|
|
[Flags, PublicAPI]
|
|
[FlagsFor(typeof(CollisionLayer)), FlagsFor(typeof(CollisionMask))]
|
|
public enum CollisionGroup
|
|
{
|
|
None = 0,
|
|
Opaque = 1 << 0, // 1 Blocks light, can be hit by lasers
|
|
Impassable = 1 << 1, // 2 Walls, objects impassable by any means
|
|
MidImpassable = 1 << 2, // 4 Mobs, players, crabs, etc
|
|
HighImpassable = 1 << 3, // 8 Things on top of tables and things that block tall/large mobs.
|
|
LowImpassable = 1 << 4, // 16 For things that can fit under a table or squeeze under an airlock
|
|
GhostImpassable = 1 << 5, // 32 Things impassible by ghosts/observers, ie blessed tiles or forcefields
|
|
BulletImpassable = 1 << 6, // 64 Can be hit by bullets
|
|
InteractImpassable = 1 << 7, // 128 Blocks interaction/InRangeUnobstructed
|
|
// Y dis door passable when all the others impassable / collision.
|
|
DoorPassable = 1 << 8, // 256 Allows door to close over top, Like blast doors over conveyors for disposals rooms/cargo.
|
|
BlobImpassable = 1 << 9, // 512 Blob Tiles Goobstation - Blob
|
|
|
|
MapGrid = MapGridHelpers.CollisionGroup, // Map grids, like shuttles. This is the actual grid itself, not the walls or other entities connected to the grid.
|
|
|
|
// 32 possible groups
|
|
// Why dis exist
|
|
AllMask = -1,
|
|
|
|
SingularityLayer = Opaque | Impassable | MidImpassable | HighImpassable | LowImpassable | BulletImpassable | InteractImpassable | DoorPassable,
|
|
|
|
// Humanoids, etc.
|
|
MobMask = Impassable | HighImpassable | MidImpassable | LowImpassable | BlobImpassable, //Goobstation - Blob
|
|
MobLayer = Opaque | BulletImpassable,
|
|
// Mice, drones
|
|
SmallMobMask = Impassable | LowImpassable | BlobImpassable, //Goobstation - Blob
|
|
SmallMobLayer = Opaque | BulletImpassable,
|
|
// Birds/other small flyers
|
|
FlyingMobMask = Impassable | HighImpassable | BlobImpassable, //Goobstation - Blob
|
|
FlyingMobLayer = Opaque | BulletImpassable,
|
|
|
|
// Mechs
|
|
LargeMobMask = Impassable | HighImpassable | MidImpassable | LowImpassable | BlobImpassable, //Goobstation - Blob
|
|
LargeMobLayer = Opaque | HighImpassable | MidImpassable | LowImpassable | BulletImpassable,
|
|
|
|
// Machines, computers
|
|
MachineMask = Impassable | MidImpassable | LowImpassable | BlobImpassable, //Goobstation - Blob
|
|
MachineLayer = Opaque | MidImpassable | LowImpassable | BulletImpassable,
|
|
ConveyorMask = Impassable | MidImpassable | LowImpassable | DoorPassable,
|
|
|
|
// Crates
|
|
CrateMask = Impassable | HighImpassable | LowImpassable,
|
|
|
|
// Tables that SmallMobs can go under
|
|
TableMask = Impassable | MidImpassable | BlobImpassable, //Goobstation - Blob
|
|
TableLayer = MidImpassable,
|
|
|
|
// Tabletop machines, windoors, firelocks
|
|
TabletopMachineMask = Impassable | HighImpassable | BlobImpassable, //Goobstation - Blob
|
|
// Tabletop machines
|
|
TabletopMachineLayer = Opaque | HighImpassable | BulletImpassable,
|
|
|
|
// Airlocks, windoors, firelocks
|
|
GlassAirlockLayer = HighImpassable | MidImpassable | BulletImpassable | InteractImpassable,
|
|
AirlockLayer = Opaque | GlassAirlockLayer,
|
|
|
|
// Airlock assembly
|
|
HumanoidBlockLayer = HighImpassable | MidImpassable,
|
|
|
|
// Soap, spills
|
|
SlipLayer = MidImpassable | LowImpassable,
|
|
ItemMask = Impassable | HighImpassable,
|
|
ThrownItem = Impassable | HighImpassable | BulletImpassable | BlobImpassable, //Goobstation - Blob
|
|
WallLayer = Opaque | Impassable | HighImpassable | MidImpassable | LowImpassable | BulletImpassable | InteractImpassable,
|
|
GlassLayer = Impassable | HighImpassable | MidImpassable | LowImpassable | BulletImpassable | InteractImpassable,
|
|
HalfWallLayer = MidImpassable | LowImpassable,
|
|
|
|
// Statue, monument, airlock, window
|
|
FullTileMask = Impassable | HighImpassable | MidImpassable | LowImpassable | InteractImpassable,
|
|
// FlyingMob can go past
|
|
FullTileLayer = Opaque | HighImpassable | MidImpassable | LowImpassable | BulletImpassable | InteractImpassable,
|
|
|
|
SubfloorMask = Impassable | LowImpassable,
|
|
|
|
|
|
// start-goobstation: blob
|
|
BlobMobMask = Impassable | HighImpassable | MidImpassable | LowImpassable,
|
|
BlobMobLayer = Opaque | BulletImpassable,
|
|
|
|
FlyingBlobMobMask = Impassable | HighImpassable,
|
|
FlyingBlobMobLayer = Opaque | BulletImpassable,
|
|
|
|
BlobTileLayer = Opaque | BlobImpassable | BulletImpassable
|
|
// end-goobstation: blob
|
|
}
|