-
Notifications
You must be signed in to change notification settings - Fork 7
New Sherpa role for Rifleman + SmartGun BulletBox #94
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f662943
sherpa role
HorvatBG-gif 8976517
fixes
HorvatBG-gif 7b311e1
VRS
HorvatBG-gif ac4dfe7
SmartGun
HorvatBG-gif 0850bf8
fixes
HorvatBG-gif dedd992
map blip separated
HorvatBG-gif 272e17f
watafaku
HorvatBG-gif File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
Content.Shared/_Sich/Marine/Squads/SichSherpaItemComponent.cs
This file contains hidden or 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 Robust.Shared.GameObjects; | ||
|
|
||
| namespace Content.Shared._Sich.Marine.Squads | ||
| { | ||
| [RegisterComponent] | ||
| public sealed partial class SichSherpaItemComponent : Component | ||
| { | ||
| } | ||
| } |
9 changes: 9 additions & 0 deletions
9
Content.Shared/_Sich/Marine/Squads/SichSherpaRiflemanComponent.cs
This file contains hidden or 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 Robust.Shared.GameObjects; | ||
|
|
||
| namespace Content.Shared._Sich.Marine.Squads | ||
| { | ||
| [RegisterComponent] | ||
| public sealed partial class SichSherpaRiflemanComponent : Component | ||
| { | ||
| } | ||
| } |
30 changes: 30 additions & 0 deletions
30
Content.Shared/_Sich/Marine/Squads/SichSherpaRiflemanSystem.cs
This file contains hidden or 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,30 @@ | ||
| using Content.Shared.Inventory.Events; | ||
| using Content.Shared.Popups; | ||
| using Robust.Shared.GameObjects; | ||
| using Robust.Shared.Localization; | ||
|
|
||
| namespace Content.Shared._Sich.Marine.Squads; | ||
|
|
||
| public sealed class SichSherpaRiflemanSystem : EntitySystem | ||
| { | ||
| [Dependency] private readonly SharedPopupSystem _popup = default!; | ||
|
|
||
| public override void Initialize() | ||
| { | ||
| base.Initialize(); | ||
| SubscribeLocalEvent<SichSherpaItemComponent, BeingEquippedAttemptEvent>(OnBeingEquippedAttempt); | ||
| } | ||
|
|
||
| private void OnBeingEquippedAttempt(Entity<SichSherpaItemComponent> item, ref BeingEquippedAttemptEvent args) | ||
| { | ||
| if (HasComp<SichSherpaRiflemanComponent>(args.EquipTarget)) | ||
| return; | ||
|
|
||
| if (args.EquipTarget == args.Equipee) | ||
| _popup.PopupClient(Loc.GetString("rmc-bulky-backpack-user-unable"), args.Equipee, args.Equipee, PopupType.MediumCaution); | ||
| else | ||
| _popup.PopupEntity(Loc.GetString("rmc-bulky-backpack-target-unable", ("target", args.EquipTarget)), args.Equipee, args.Equipee, PopupType.MediumCaution); | ||
|
|
||
| args.Cancel(); | ||
| } | ||
| } |
2 changes: 2 additions & 0 deletions
2
Resources/Locale/en-US/_Sich/armor/sich-rmc-bulky-backpack.ftl
This file contains hidden or 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,2 @@ | ||
| rmc-bulky-backpack-user-unable = Ви плутаєтесь в ременях та скидуєте це з себе! | ||
| rmc-bulky-backpack-target-unable = {$target} не знає що робити з усіма цими ременями! |
This file contains hidden or 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,2 @@ | ||
| sich-rmc-job-name-sherpa = Шерпа | ||
| sich-rmc-job-prefix-sherpa = ШРП |
This file contains hidden or 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,2 @@ | ||
| rmc-storage-limit-not-flarebox = Це кріплення підтримує тільки коробку упаковок фаєрів М94! | ||
| rmc-storage-limit-one-bulletbox-smartgun = Кріплення замале щоб вмістити дві коробки з набоями для СмартГану! |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
8 changes: 8 additions & 0 deletions
8
Resources/Prototypes/_Sich/Catalog/Fills/Crates/bullet_boxes.yml
This file contains hidden or 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 @@ | ||
| - type: entity | ||
| parent: RMCCrateAmmo | ||
| id: SichRMCCrateBoxBulletsSmartGun | ||
| name: Ящик з коробкою набоїв для СмартГану 10х30мм (3000шт.) | ||
| components: | ||
| - type: StorageFill | ||
| contents: | ||
| - id: SichRMCBoxBulletsSmartGun |
16 changes: 16 additions & 0 deletions
16
Resources/Prototypes/_Sich/Entities/Clothing/Back/backpacks.yml
This file contains hidden or 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,16 @@ | ||
| - type: entity | ||
| parent: BaseItem | ||
|
HorvatBG-gif marked this conversation as resolved.
|
||
| id: SichRMCBackpackAmmoFolded | ||
| name: ВРС загального призначення | ||
| description: Згорнута вантажна рама для спорядження. Розгорніть перед використанням. | ||
| suffix: згонута | ||
| components: | ||
| - type: Item | ||
| size: Huge | ||
| - type: Sprite | ||
| sprite: _Sich/Objects/Clothing/Back/Backpacks/Marines/ammo_rack.rsi | ||
| state: ammo_pack-0 | ||
| - type: SpawnItemsOnUse | ||
| items: | ||
| - id: RMCBackpackAmmo | ||
| amount: 1 | ||
26 changes: 26 additions & 0 deletions
26
Resources/Prototypes/_Sich/Entities/Objects/Misc/pamphlets.yml
This file contains hidden or 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,26 @@ | ||
| - type: entity | ||
| parent: CMPamphlet | ||
| id: SichCMPamphletSherpa | ||
| name: довідник шерпи | ||
| description: Він навчить вас переносити важкі речі. | ||
| components: | ||
| - type: Sprite | ||
| sprite: _Sich/Objects/Misc/pamphlets.rsi | ||
| state: pamphlet_sherpa | ||
| - type: SkillPamphlet | ||
| addComps: | ||
| - type: SichSherpaRifleman | ||
| addSkills: | ||
| RMCSkillFireman: 1 | ||
| giveJobTitle: sich-rmc-job-name-sherpa | ||
| givePrefix: sich-rmc-job-prefix-sherpa | ||
| isAppendPrefix: false | ||
| giveIcon: | ||
| sprite: _Sich/Interface/cm_job_icons.rsi | ||
| state: hudsquad_sherpa | ||
| giveMapBlip: | ||
| sprite: /Textures/_Sich/Interface/map_blips.rsi | ||
| state: sherpa | ||
| jobWhitelists: | ||
| - popup: rmc-pamphlets-rifleman-warning | ||
| jobProto: CMRifleman |
24 changes: 24 additions & 0 deletions
24
Resources/Prototypes/_Sich/Entities/Objects/Weapons/Cases/sherpa.yml
This file contains hidden or 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,24 @@ | ||
| - type: entity | ||
| parent: RMCKitBase | ||
| id: SichRMCKitSherpa | ||
| name: набір шерпи | ||
| description: Набір всього необхідного для транспортування громіздких вантажів на полі бою. | ||
| components: | ||
| - type: Storage | ||
| maxItemSize: Huge | ||
| grid: | ||
| - 0,0,5,1 | ||
| - type: Sprite | ||
| sprite: _RMC14/Objects/Storage/procase_mini.rsi | ||
| - type: Icon | ||
| sprite: _RMC14/Objects/Storage/procase_mini.rsi | ||
| layers: | ||
| - state: closed | ||
| map: [ base ] | ||
| - state: loader | ||
| map: [ label ] | ||
| - type: StorageFill | ||
| contents: | ||
| - id: SichRMCBackpackAmmoFolded | ||
| - id: SichCMPamphletSherpa | ||
| - id: RMCRangefinder |
35 changes: 35 additions & 0 deletions
35
Resources/Prototypes/_Sich/Entities/Objects/Weapons/Guns/Ammunition/Boxes/bullet_boxes.yml
This file contains hidden or 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 @@ | ||
| - type: entity | ||
| parent: RMCBoxBulletsBase | ||
| id: SichRMCBoxBulletsSmartGun | ||
| name: коробка з набоями СмартГану (10x30мм) | ||
| description: Коробка з набоями 10х30мм. Використовується для поповнення магазинів СмартГану. Має шкіряну лямку, що дозволяє носити її на спині. | ||
| components: | ||
| - type: Tag | ||
| tags: | ||
| - SichBulletBoxSmartGun | ||
| - type: Sprite | ||
| layers: | ||
| - state: rifle_box | ||
| color: "#7b8246" | ||
| - state: rifle_box_marking | ||
| color: "#ffcb26" | ||
| - state: rifle_box_generic | ||
| color: "#ffcb26" | ||
| - state: rifle_ammo_full_rounds_base | ||
| map: [ "enum.BulletBoxLayers.Fill" ] | ||
| - state: rifle_ammo_full_rounds_color | ||
| map: [ "enum.BulletBoxLayers2.Fill" ] | ||
| color: "#ffc000" | ||
| - type: BulletBox | ||
| max: 3000 | ||
| amount: 3000 | ||
| bulletType: RMCBoxBulletsSmartGun | ||
| - type: ClothingSpeedModifier | ||
| walkModifier: 0.700 | ||
| sprintModifier: 0.700 | ||
| - type: HeldSpeedModifier | ||
| walkModifier: 0.700 | ||
| sprintModifier: 0.700 | ||
|
|
||
| - type: Tag | ||
| id: SichBulletBoxSmartGun |
Binary file added
BIN
+175 Bytes
Resources/Textures/_Sich/Interface/cm_job_icons.rsi/hudsquad_sherpa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions
14
Resources/Textures/_Sich/Interface/cm_job_icons.rsi/meta.json
This file contains hidden or 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,14 @@ | ||
| { | ||
| "version": 1, | ||
| "license": "CC-BY-SA-3.0", | ||
| "copyright": "By github HorvatBG-gif", | ||
| "size": { | ||
| "x": 16, | ||
| "y": 16 | ||
| }, | ||
| "states": [ | ||
| { | ||
| "name": "hudsquad_sherpa" | ||
| } | ||
| ] | ||
| } |
14 changes: 14 additions & 0 deletions
14
Resources/Textures/_Sich/Interface/map_blips.rsi/meta.json
This file contains hidden or 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,14 @@ | ||
| { | ||
| "version": 1, | ||
| "license": "CC-BY-SA-3.0", | ||
| "copyright": "by github HorvatBG-gif", | ||
| "size": { | ||
| "x": 7, | ||
| "y": 7 | ||
| }, | ||
| "states": [ | ||
| { | ||
| "name": "sherpa" | ||
| } | ||
| ] | ||
| } |
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
+548 Bytes
...res/_Sich/Objects/Clothing/Back/Backpacks/Marines/ammo_rack.rsi/ammo_pack-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions
14
Resources/Textures/_Sich/Objects/Clothing/Back/Backpacks/Marines/ammo_rack.rsi/meta.json
This file contains hidden or 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,14 @@ | ||
| { | ||
| "version": 1, | ||
| "license": "CC-BY-SA-3.0", | ||
| "copyright": "Modified by github HorvatBG-gif, original sprite taken from cmss13 at https://github.com/cmss13-devs/cmss13/blob/8d2ee2746ce1b8aa5a876266951a8d9f92499aff/icons/obj/items/clothing/backpacks.dmi and https://github.com/cmss13-devs/cmss13/blob/38ced94fc7dee11e73f66f6c008983493aac13a5/icons/mob/humans/onmob/back.dmi", | ||
| "size": { | ||
| "x": 32, | ||
| "y": 32 | ||
| }, | ||
| "states": [ | ||
| { | ||
| "name": "ammo_pack-0" | ||
| } | ||
| ] | ||
| } |
14 changes: 14 additions & 0 deletions
14
Resources/Textures/_Sich/Objects/Misc/pamphlets.rsi/meta.json
This file contains hidden or 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,14 @@ | ||
| { | ||
| "version": 1, | ||
| "license": "CC-BY-SA-3.0", | ||
| "copyright": "Modified by github HorvatBG-gif, original sprite taken from cmss13 at https://github.com/cmss13-devs/cmss13/blob/3a94024f59bfd350ecf02c511a7d99d597da3d6c/icons/obj/items/pamphlets.dmi", | ||
| "size": { | ||
| "x": 32, | ||
| "y": 32 | ||
| }, | ||
| "states": [ | ||
| { | ||
| "name": "pamphlet_sherpa" | ||
| } | ||
| ] | ||
| } |
Binary file added
BIN
+503 Bytes
Resources/Textures/_Sich/Objects/Misc/pamphlets.rsi/pamphlet_sherpa.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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.