Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Objects Hit By Projectiles #943

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,31 @@
path: /Audio/SimpleStation14/Items/Handling/drinkglass_drop.ogg
params:
volume: -2
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.25,-0.25,0.25,0.25"
density: 30
mask:
- ItemMask
layer:
- BulletImpassable # Ever seen a John Woo movie?
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 5
behaviors:
- !type:PlaySoundBehavior
sound:
collection: MetalBreak
params:
volume: -6
- !type:SpillBehavior { }
- !type:DoActsBehavior
acts: [ "Destruction" ]

- type: entity
parent: DrinkBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
!type:DamageTrigger
damage: 5
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:SpillBehavior { }
- !type:DoActsBehavior
acts: [ "Destruction" ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@
materialComposition:
Glass: 60
- type: SpaceGarbage
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.25,-0.25,0.25,0.25"
density: 25
mask:
- ItemMask
layer:
- BulletImpassable # Ever seen a John Woo movie?

- type: entity
name: broken plate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
damage: 25
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
Expand All @@ -48,6 +48,7 @@
collection: MetalBreak
- type: StaticPrice
price: 10
- type: RequireProjectileTarget

#Starts unanchored, cannot be rotated while anchored
- type: entity
Expand Down
Loading