-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Content.Shared.Chemistry.Components; | ||
using Robust.Shared.Audio; | ||
|
||
namespace Content.Server.Fluids.EntitySystems; | ||
|
||
[RegisterComponent] | ||
[Access(typeof(SmokeSystem))] | ||
public sealed class SmokeOnTriggerComponent : Component | ||
Check failure on line 8 in Content.Server/ADT/SmokeGrenadeComponent/SmokeOnTriggerComponent.cs GitHub Actions / Test Packaging
Check failure on line 8 in Content.Server/ADT/SmokeGrenadeComponent/SmokeOnTriggerComponent.cs GitHub Actions / Test Packaging
Check failure on line 8 in Content.Server/ADT/SmokeGrenadeComponent/SmokeOnTriggerComponent.cs GitHub Actions / build (ubuntu-latest)
Check failure on line 8 in Content.Server/ADT/SmokeGrenadeComponent/SmokeOnTriggerComponent.cs GitHub Actions / build (ubuntu-latest)
Check failure on line 8 in Content.Server/ADT/SmokeGrenadeComponent/SmokeOnTriggerComponent.cs GitHub Actions / YAML Linter
|
||
{ | ||
[DataField("spreadAmount"), ViewVariables(VVAccess.ReadWrite)] | ||
public int SpreadAmount = 20; | ||
|
||
[DataField("time"), ViewVariables(VVAccess.ReadWrite)] | ||
public float Time = 30f; | ||
/// <summary> | ||
/// Код взят из https://github.com/space-wizards/space-station-14/pull/16942 | ||
/// </summary> | ||
[DataField("sound")] | ||
public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Effects/smoke.ogg"); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
- type: entity | ||
name: Дымовая граната | ||
description: Вам определенно не стоит пытаться разобрать её самостоятельно | ||
parent: GrenadeBase | ||
id: ADTSmokeGrenade | ||
components: | ||
- type: Sprite | ||
sprite: ADT/Objects/Weapons/Grenades/smokegrenades.rsi | ||
- type: SmokeOnTrigger | ||
spreadAmount: 70 | ||
time: 40 | ||
sound: /Audio/Effects/smoke.ogg | ||
- type: DeleteOnTrigger | ||
- type: Appearance | ||
- type: OnUseTimerTrigger | ||
delay: 2.5 | ||
beepSound: | ||
path: "/Audio/Effects/beep1.ogg" | ||
params: | ||
volume: 5 | ||
initialBeepDelay: 0 | ||
beepInterval: 2 | ||
|
||
- type: entity | ||
name: Дымовая граната | ||
description: Вам определенно не стоит пытаться разобрать её самостоятельно. Вы чувствуете страх держа её в руках | ||
parent: GrenadeBase | ||
id: ADTSSmokeGrenade | ||
components: | ||
- type: Sprite | ||
sprite: ADT/Objects/Weapons/Grenades/ssmokegreandes.rsi | ||
- type: SmokeOnTrigger | ||
spreadAmount: 120 | ||
time: 60 | ||
sound: /Audio/Effects/smoke.ogg | ||
- type: DeleteOnTrigger | ||
- type: Appearance | ||
- type: OnUseTimerTrigger | ||
delay: 2.5 | ||
beepSound: | ||
path: "/Audio/Effects/beep1.ogg" | ||
params: | ||
volume: 5 | ||
initialBeepDelay: 0 | ||
beepInterval: 2 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": 1, | ||
"license": "CC-BY-SA-3.0", | ||
"copyright": "Created by https://github.com/VigersRay", | ||
"size": { | ||
"x": 32, | ||
"y": 32 | ||
}, | ||
"states": [ | ||
{ | ||
"name": "icon" | ||
}, | ||
{ | ||
"name": "primed" | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": 1, | ||
"license": "CC-BY-SA-3.0", | ||
"copyright": "Created by https://github.com/VigersRay", | ||
"size": { | ||
"x": 32, | ||
"y": 32 | ||
}, | ||
"states": [ | ||
{ | ||
"name": "icon" | ||
}, | ||
{ | ||
"name": "primed" | ||
} | ||
] | ||
} |