-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
Content.Server/ADT/SmokeGrenadeComponent/SmokeOnTriggerComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 partial class SmokeOnTriggerComponent : Component | ||
{ | ||
[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"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
Resources/Locale/ru-RU/ADT/Objects/Weapons/Grenades/grenades.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ent-ADTSmokeGrenade = Дымовая граната | ||
.desc = Вам определенно не стоит пытаться разобрать её самостоятельно. | ||
.suffix = { "" } | ||
ent-ADTSSmokeGrenade = Дымовая граната синдиката | ||
.desc = Вам определенно не стоит пытаться разобрать её самостоятельно. Вы чувствуете страх держа её в руках | ||
.suffix = { "" } |
45 changes: 45 additions & 0 deletions
45
Resources/Prototypes/ADT/Entities/Objects/Weapons/Throwable/grenades.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
- type: entity | ||
name: Smoke Grenade | ||
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: Syndicate Smoke Grenade | ||
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 |
Binary file added
BIN
+446 Bytes
Resources/Textures/ADT/Objects/Weapons/Grenades/smokegrenades.rsi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions
17
Resources/Textures/ADT/Objects/Weapons/Grenades/smokegrenades.rsi/meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
Binary file added
BIN
+446 Bytes
Resources/Textures/ADT/Objects/Weapons/Grenades/smokegrenades.rsi/primed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+468 Bytes
Resources/Textures/ADT/Objects/Weapons/Grenades/ssmokegreandes.rsi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions
17
Resources/Textures/ADT/Objects/Weapons/Grenades/ssmokegreandes.rsi/meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
Binary file added
BIN
+468 Bytes
Resources/Textures/ADT/Objects/Weapons/Grenades/ssmokegreandes.rsi/primed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.