-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into lavaland-update-2
- Loading branch information
Showing
34 changed files
with
381 additions
and
4 deletions.
There are no files selected for viewing
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,8 @@ | ||
namespace Content.Shared._White.Collision.Blur; | ||
|
||
[RegisterComponent] | ||
public sealed partial class BlurOnCollideComponent : Component | ||
{ | ||
[DataField] | ||
public float BlurTime = 5f; | ||
} |
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,37 @@ | ||
using Content.Shared.Eye.Blinding.Components; | ||
using Content.Shared.Projectiles; | ||
using Content.Shared.StatusEffect; | ||
using Content.Shared.Throwing; | ||
|
||
namespace Content.Shared._White.Collision.Blur; | ||
|
||
public sealed class BlurOnCollideSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly StatusEffectsSystem _statusEffects = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<BlurOnCollideComponent, ProjectileHitEvent>(OnProjectileHit); | ||
SubscribeLocalEvent<BlurOnCollideComponent, ThrowDoHitEvent>(OnEntityHit); | ||
} | ||
|
||
private void OnEntityHit(Entity<BlurOnCollideComponent> ent, ref ThrowDoHitEvent args) | ||
{ | ||
ApplyEffects(args.Target, ent.Comp); | ||
} | ||
|
||
private void OnProjectileHit(Entity<BlurOnCollideComponent> ent, ref ProjectileHitEvent args) | ||
{ | ||
ApplyEffects(args.Target, ent.Comp); | ||
} | ||
|
||
private void ApplyEffects(EntityUid target, BlurOnCollideComponent component) | ||
{ | ||
_statusEffects.TryAddStatusEffect<BlurryVisionComponent>(target, | ||
"BlurryVision", | ||
TimeSpan.FromSeconds(component.BlurTime), | ||
true); | ||
} | ||
} |
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,9 @@ | ||
using Content.Shared.ADT.Crawling; | ||
|
||
namespace Content.Shared.ADT.Collision.Knockdown; | ||
|
||
[RegisterComponent] | ||
public sealed partial class KnockdownOnCollideComponent : Component | ||
{ | ||
|
||
} |
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,43 @@ | ||
using Content.Shared.Projectiles; | ||
using Content.Shared.ADT.Crawling; | ||
using Content.Shared.Throwing; | ||
using Content.Shared.DoAfter; | ||
using Content.Shared.Explosion; | ||
using Content.Shared.Input; | ||
using Robust.Shared.Input.Binding; | ||
using Content.Shared.Standing; | ||
using Robust.Shared.Serialization; | ||
using Content.Shared.Stunnable; | ||
using Robust.Shared.Player; | ||
using Content.Shared.Movement.Systems; | ||
using Content.Shared.Alert; | ||
using Content.Shared.Climbing.Components; | ||
using Content.Shared.Popups; | ||
using Robust.Shared.Physics.Systems; | ||
using Robust.Shared.Map.Components; | ||
using Content.Shared.Climbing.Systems; | ||
using Content.Shared.Climbing.Events; | ||
|
||
namespace Content.Shared.ADT.Collision.Knockdown; | ||
|
||
public sealed class KnockdownOnCollideSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly StandingStateSystem _standing = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<KnockdownOnCollideComponent, ProjectileHitEvent>(OnProjectileHit); | ||
} | ||
|
||
private void OnProjectileHit(Entity<KnockdownOnCollideComponent> ent, ref ProjectileHitEvent args) | ||
{ | ||
ApplyEffects(args.Target, ent.Comp); | ||
} | ||
|
||
private void ApplyEffects(EntityUid target, KnockdownOnCollideComponent component) | ||
{ | ||
_standing.Down(target, dropHeldItems: false); | ||
} | ||
} |
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
Binary file not shown.
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
4 changes: 4 additions & 0 deletions
4
Resources/Locale/ru-RU/ADT/prototypes/Entities/Objects/Weapons/Guns/Battery/battery_gun.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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
ent-ADTWeaponPistolX01 = X-01 М.Э.П. | ||
.desc = Мультифазовый энергетический пистолет. Это дорогая, современная версия антикварного лазерного пистолета. У этого оружия есть несколько уникальных режимов огня, но нет возможности самостоятельно перезаряжаться с течением времени. | ||
.suffix = { "Пистолет, Мультифазовый" } | ||
ent-ADTWeaponMiniatureEnergyCrossbow = миниатюрный энергетический арбалет | ||
.desc = Энергетический арбалет синдиката, маленький, тихий и смертоносный. | ||
ent-ADTWeaponEnergyCrossbow = энергетический арбалет | ||
.desc = Тяжёлое смертоносное оружие, поддаётся модификации модулями ПКА. Любимое оружие революционеров, еретиков и прочих любителей кустарной смерти. |
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
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
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
25 changes: 25 additions & 0 deletions
25
Resources/Prototypes/ADT/Recipes/Crafting/Graphs/Improvised/crossbow.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,25 @@ | ||
- type: constructionGraph | ||
id: EnergyCrossbowGraph | ||
start: start | ||
graph: | ||
- node: start | ||
edges: | ||
- to: crossbow | ||
steps: | ||
- tag: PKA | ||
icon: | ||
sprite: Objects/Weapons/Guns/Basic/kinetic_accelerator.rsi | ||
state: icon | ||
name: PKA | ||
- tag: ModularReceiver | ||
icon: | ||
sprite: Objects/Misc/modular_receiver.rsi | ||
state: icon | ||
name: modular receiver | ||
- material: Cable | ||
amount: 15 | ||
- material: Uranium | ||
amount: 10 | ||
doAfter: 10 | ||
- node: crossbow | ||
entity: ADTWeaponEnergyCrossbow |
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
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,3 @@ | ||
- type: statusEffect | ||
id: BlurryVision | ||
alwaysAllowed: true |
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 |
---|---|---|
|
@@ -450,3 +450,6 @@ | |
|
||
- type: Tag | ||
id: MiningShop | ||
|
||
- type: Tag | ||
id: PKA |
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 |
---|---|---|
|
@@ -75,4 +75,6 @@ | |
collection: GenericHit | ||
- type: AltFireMelee #ADT_Tweak | ||
attackType: Heavy | ||
|
||
- type: Tag #ADT tweak | ||
tags: | ||
- PKA |
Binary file added
BIN
+379 Bytes
Resources/Textures/ADT/Objects/Weapons/Guns/Battery/ebow.rsi/base.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
+217 Bytes
Resources/Textures/ADT/Objects/Weapons/Guns/Battery/ebow.rsi/equipped-BACK.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
+448 Bytes
Resources/Textures/ADT/Objects/Weapons/Guns/Battery/ebow.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.
Binary file added
BIN
+426 Bytes
Resources/Textures/ADT/Objects/Weapons/Guns/Battery/ebow.rsi/inhand-left.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
+411 Bytes
Resources/Textures/ADT/Objects/Weapons/Guns/Battery/ebow.rsi/inhand-right.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
+375 Bytes
Resources/Textures/ADT/Objects/Weapons/Guns/Battery/ebow.rsi/mag-0.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
+883 Bytes
Resources/Textures/ADT/Objects/Weapons/Guns/Battery/ebow.rsi/mag-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions
35
Resources/Textures/ADT/Objects/Weapons/Guns/Battery/ebow.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,35 @@ | ||
{ | ||
"version": 1, | ||
"license": "CC-BY-SA-3.0", | ||
"copyright": "Taken from Paradise at https://github.com/ParadiseSS13/Paradise/commit/1d0e3dde0f89e7926be32a3706883c3f003931f8", | ||
"size": { | ||
"x": 32, | ||
"y": 32 | ||
}, | ||
"states": [ | ||
{ | ||
"name": "icon" | ||
}, | ||
{ | ||
"name": "base" | ||
}, | ||
{ | ||
"name": "mag-0" | ||
}, | ||
{ | ||
"name": "mag-1" | ||
}, | ||
{ | ||
"name": "inhand-left", | ||
"directions": 4 | ||
}, | ||
{ | ||
"name": "inhand-right", | ||
"directions": 4 | ||
}, | ||
{ | ||
"name": "equipped-BACK", | ||
"directions": 4 | ||
} | ||
] | ||
} |
Binary file added
BIN
+365 Bytes
Resources/Textures/ADT/Objects/Weapons/Guns/Battery/miniature_ebow.rsi/base.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
+217 Bytes
.../Textures/ADT/Objects/Weapons/Guns/Battery/miniature_ebow.rsi/equipped-BELT.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
+404 Bytes
Resources/Textures/ADT/Objects/Weapons/Guns/Battery/miniature_ebow.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.
Binary file added
BIN
+268 Bytes
...es/Textures/ADT/Objects/Weapons/Guns/Battery/miniature_ebow.rsi/inhand-left.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
+265 Bytes
...s/Textures/ADT/Objects/Weapons/Guns/Battery/miniature_ebow.rsi/inhand-right.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
+244 Bytes
Resources/Textures/ADT/Objects/Weapons/Guns/Battery/miniature_ebow.rsi/mag-0.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
+756 Bytes
Resources/Textures/ADT/Objects/Weapons/Guns/Battery/miniature_ebow.rsi/mag-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.