TriggerSystem improvements (#35762)

* desynchronizer real

* yaml stuff from slarti branch

* C# stuff

* oops

* fix triggers

* atomize PR

---------

Co-authored-by: Flareguy <woaj9999@outlook.com>
This commit is contained in:
slarticodefast
2025-03-12 06:31:33 +01:00
committed by GitHub
parent a384cbed89
commit 175f5e6c2f
11 changed files with 201 additions and 98 deletions

View File

@@ -173,6 +173,8 @@
damage:
types:
Poison: 5
- type: TriggerOnCollide
fixtureID: projectile
- type: entity
id: ProjectilePolyboltCarp
@@ -181,8 +183,9 @@
description: Nooo, I don't wanna be fish!
categories: [ HideSpawnMenu ]
components:
- type: PolymorphOnCollide
- type: PolymorphOnTrigger
polymorph: WizardForcedCarp
- type: TriggerWhitelist
whitelist:
components:
- Body
@@ -194,8 +197,9 @@
description: Nooo, I don't wanna be monkey!
categories: [ HideSpawnMenu ]
components:
- type: PolymorphOnCollide
- type: PolymorphOnTrigger
polymorph: WizardForcedMonkey
- type: TriggerWhitelist
whitelist:
components:
- Body
@@ -212,8 +216,9 @@
layers:
- state: spell
color: brown
- type: PolymorphOnCollide
- type: PolymorphOnTrigger
polymorph: WizardWallDoor
- type: TriggerWhitelist
whitelist:
components:
- Airlock
@@ -262,8 +267,9 @@
description: KnoH KnoH!
categories: [ HideSpawnMenu ]
components:
- type: PolymorphOnCollide
- type: PolymorphOnTrigger
polymorph: WizardForcedCluwne
- type: TriggerWhitelist
whitelist:
components:
- Body
@@ -291,8 +297,9 @@
description: Nooo, I don't wanna be bread!
categories: [ HideSpawnMenu ]
components:
- type: PolymorphOnCollide
- type: PolymorphOnTrigger
polymorph: BreadMorph
- type: TriggerWhitelist
whitelist:
components:
- Body

View File

@@ -31,6 +31,10 @@
transferDamage: true
revertOnCrit: false
revertOnDeath: true
polymorphSound: !type:SoundPathSpecifier
path: /Audio/Magic/forcewall.ogg
exitPolymorphSound: !type:SoundPathSpecifier
path: /Audio/Magic/forcewall.ogg
- type: polymorph
id: WizardForcedSkeleton
@@ -42,6 +46,10 @@
transferDamage: true
revertOnCrit: false
revertOnDeath: false
polymorphSound: !type:SoundPathSpecifier
path: /Audio/Magic/forcewall.ogg
exitPolymorphSound: !type:SoundPathSpecifier
path: /Audio/Magic/forcewall.ogg
- type: polymorph
id: WizardForcedMonkey
@@ -53,6 +61,10 @@
transferDamage: true
revertOnCrit: false
revertOnDeath: true
polymorphSound: !type:SoundPathSpecifier
path: /Audio/Magic/forcewall.ogg
exitPolymorphSound: !type:SoundPathSpecifier
path: /Audio/Magic/forcewall.ogg
- type: polymorph
id: WizardWallDoor
@@ -64,6 +76,10 @@
transferDamage: false
revertOnCrit: false
revertOnDeath: false
polymorphSound: !type:SoundPathSpecifier
path: /Audio/Magic/forcewall.ogg
exitPolymorphSound: !type:SoundPathSpecifier
path: /Audio/Magic/forcewall.ogg
- type: polymorph
id: WizardForcedCluwne
@@ -74,6 +90,10 @@
transferHumanoidAppearance: true
inventory: Transfer
revertOnDeath: true
polymorphSound: !type:SoundPathSpecifier
path: /Audio/Magic/forcewall.ogg
exitPolymorphSound: !type:SoundPathSpecifier
path: /Audio/Magic/forcewall.ogg
# this is a test for transferring some visual appearance stuff
- type: polymorph