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

Add SVT Mid-tier Weapon #1417

Merged
merged 33 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
8ec9671
add a new weapon to the game
VividPups May 25, 2024
79b467c
update
VividPups May 25, 2024
ae41312
small updates
VividPups May 25, 2024
0e32673
so i can fix it
VividPups May 26, 2024
a6f3e26
fix
VividPups May 26, 2024
5d7efe7
some updates
VividPups May 26, 2024
851ba81
Update weapon_cases_shuttle_guns.yml
VividPups May 26, 2024
ee700ed
Merge branch 'new-frontiers-14:master' into SVT40
VividPups May 26, 2024
11a558e
rifle
VividPups May 26, 2024
230de00
In the wrong place
VividPups May 26, 2024
3246c04
Merge branch 'new-frontiers-14:master' into SVT40
VividPups May 28, 2024
75bb1b1
Update Resources/Prototypes/_NF/Catalog/Fills/Items/weapon_cases_shut…
VividPups May 30, 2024
fa6d893
Update Resources/Prototypes/_NF/Catalog/Fills/Items/weapon_cases_expe…
VividPups May 30, 2024
7a6415d
updates
VividPups May 30, 2024
0e12d86
updates again
VividPups May 30, 2024
64f08c4
Merge branch 'new-frontiers-14:master' into SVT40
VividPups May 30, 2024
74012b7
Shuttle update
VividPups May 30, 2024
9738713
ammo
VividPups May 30, 2024
99583ac
aaa
VividPups May 30, 2024
46ec8a2
Delete snipers.yml
VividPups Jun 4, 2024
339b3b7
Update snipers.yml
VividPups Jun 4, 2024
cd507dc
Merge branch 'master' of https://github.com/new-frontiers-14/frontier…
Jun 9, 2024
0ea12bb
Resolve merge conflicts (for real this time)
Jun 9, 2024
700ca3f
Merge branch 'new-frontiers-14:master' into SVT40
VividPups Jun 10, 2024
64ced0a
Merge branch 'master' into SVT40
VividPups Jun 16, 2024
bba8d44
aaa
VividPups Jun 16, 2024
471e256
Update dungeon_items_weapons.yml
VividPups Jun 16, 2024
5127867
Update weapon_cases_expedition.yml
VividPups Jun 16, 2024
01c0758
GADDAMNIT WHATSONE
VividPups Jun 23, 2024
5813bba
ADSFGAFGA
VividPups Jun 23, 2024
07c49b5
Merge branch 'master' into SVT40
VividPups Jun 24, 2024
c063ac0
Merge branch 'new-frontiers-14:master' into SVT40
VividPups Jun 27, 2024
bbb0797
Merge branch 'new-frontiers-14:master' into SVT40
VividPups Jul 2, 2024
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
2 changes: 2 additions & 0 deletions Resources/Prototypes/Entities/Structures/Machines/lathe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,8 @@
- SpeedLoaderMagnumEmpty
- SpeedLoaderRifleHeavy # Frontier
- SpeedLoaderRifleHeavyEmpty # Frontier
- 10roundmagazine #frontier by VividPups
- 10roundmagazineempty #frontier by VividPups
- type: MaterialStorage
whitelist:
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,21 @@
- id: MagazineRifle
amount: 2

- type: entity #made By VividPups added in with PR 1417
parent: WeaponCaseLong
id: WeaponCaseLongSVTExpedition
suffix: Dungeon, SVT
noSpawn: true
components:
- type: StorageFill
contents:
- id: WeaponSVT
amount: 1
- id: 10roundmagazine
amount: 2



# Energy
- type: entity
parent: WeaponCaseShort
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,29 @@
- id: WeaponShotgunSawnNonlethal
- id: BoxBeanbag

# WeaponSVT
- type: entity #made By VividPups added in with PR 1770
parent: WeaponCaseLongShuttle
id: ShuttleWeaponSVT
noSpawn: true
components:
- type: StorageFill
contents:
- id: WeaponSVT
- id: 10roundmagazine

# WeaponSVTNonlethal # Frontier - TODO: Restore this later
# - type: entity
# parent: WeaponCaseLongShuttle
# id: ShuttleWeaponSVTNonlethal
# noSpawn: true
# components:
# - type: StorageFill
# contents:
# - id: WeaponSVTNonlethal
# - id: MagazineSVTRubber


# T3:
# WeaponEnergyGun
- type: entity
Expand Down
12 changes: 12 additions & 0 deletions Resources/Prototypes/_NF/Catalog/Fills/Lockers/guns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@
- id: ShuttleKardashev-MosinNonlethal
orGroup: T1-2
prob: 0.1
- id: ShuttleWeaponSVT
orGroup: T1-2
prob: 0.1
# - id: ShuttleWeaponSVTNonlethal # Frontier - TODO: Restore rubber
# orGroup: T1-2
# prob: 0.1
# T2-1
- id: ShuttleWeaponPistolMk58
orGroup: T2-1
Expand All @@ -143,6 +149,12 @@
- id: ShuttleWeaponShotgunSawnNonlethal
orGroup: T2-1
prob: 0.1
- id: ShuttleWeaponSVT
orGroup: T2-1
prob: 0.1
# - id: ShuttleWeaponSVTNonlethal # Frontier - TODO: Restore rubber
# orGroup: T2-1
# prob: 0.1
# T2 Melee
- id: SpearReinforced
orGroup: Melee
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
- WeaponCaseLongKammererExpedition
- WeaponCaseLongEnergyGunExpedition
- WeaponCaseLongRepeaterExpedition
- WeaponCaseLongSVTExpedition
chance: 1.0
offset: 0.0
rarePrototypes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,78 @@
map: ["enum.GunVisualLayers.Base"]
- state: mag-1
map: ["enum.GunVisualLayers.Mag"]

- type: entity #made By VividPups added in with PR 1470
id: 10roundmagazine
name: "10 round magazine (.30 rifle)"
parent: BaseMagazineLightRifle
components:
- type: Tag
tags:
- MagazineLightRifle
- type: BallisticAmmoProvider
proto: CartridgeLightRifle
capacity: 10
- type: Sprite
sprite: _NF/Objects/Weapons/Ammunition/svt40.rsi

- type: entity
id: 10roundmagazineempty
name: "10 round magazine (.30 rifle any)"
suffix: empty
parent: 10roundmagazine
components:
- type: BallisticAmmoProvider
proto: null

- type: entity
id: 10roundmagazineUranium
name: "10 round magazine (.30 rifle uranium)"
parent: 10roundmagazine
components:
- type: BallisticAmmoProvider
proto: CartridgeLightRifleUranium
- type: Sprite
layers:
- state: uranium
map: ["enum.GunVisualLayers.Base"]
- state: mag-1
map: ["enum.GunVisualLayers.Mag"]

# type: entity to be added back when Rubber rounds are added.
# id: 10roundmagazineRubber
#name: "10 round magazine(.30 rifle rubber)"
#parent: 10roundmagazine
#components:
# type: BallisticAmmoProvider
# proto: CartridgeLightRifleRubber
#type: Sprite
#layers:
# state: rubber
#map: ["enum.GunVisualLayers.Base"]
#state: mag-1
#map: ["enum.GunVisualLayers.Mag"]

- type: entity
id: 10roundmagazinePractice
name: "10 round magazine (.30 rifle practice)"
parent: 10roundmagazine
components:
- type: BallisticAmmoProvider
proto: CartridgeLightRiflePractice
- type: Sprite
layers:
- state: practice
map: ["enum.GunVisualLayers.Base"]
- state: mag-1
map: ["enum.GunVisualLayers.Mag"]

- type: entity
id: 10roundmagazineIncendiary
name: "10 round magazine (.30 rifle incendiary)"
parent: 10roundmagazine
components:
- type: BallisticAmmoProvider
proto: CartridgeLightRifleIncendiary
- type: Sprite
sprite: _NF/Objects/Weapons/Ammunition/svt40.rsi
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,60 @@
- CartridgeMagnum
capacity: 7
proto: CartridgeMagnum

- type: entity #made By VividPups added in with PR 1417
id: WeaponSVT
name: SVT-40
parent: BaseWeaponRifle
description: Once a weapon used in war, now a civilian hunting rifle brought to you by S.E.S.W.C, Retreating is Consider Treason is etch into the side
components:
- type: Sprite
sprite: _NF/Objects/Weapons/Guns/Rifles/svt40.rsi
layers:
- state: base
map: ["enum.GunVisualLayers.Base"]
- state: mag-0
map: ["enum.GunVisualLayers.Mag"]
- type: Clothing
sprite: _NF/Objects/Weapons/Guns/Rifles/svt40.rsi
quickEquip: false
slots:
- Back
- suitStorage
- type: Gun
fireRate: 4
selectedMode: SemiAuto
availableModes:
- SemiAuto
soundGunshot:
path: /Audio/Weapons/Guns/Gunshots/rifle2.ogg
- type: ChamberMagazineAmmoProvider
soundRack:
path: /Audio/Weapons/Guns/Cock/ltrifle_cock.ogg
- type: ItemSlots
slots:
gun_magazine:
name: Magazine
startingItem: 10roundmagazine
insertSound: /Audio/Weapons/Guns/MagIn/ltrifle_magin.ogg
ejectSound: /Audio/Weapons/Guns/MagOut/ltrifle_magout.ogg
priority: 2
whitelist:
tags:
- MagazineLightRifle
gun_chamber:
name: Chamber
startingItem: CartridgeLightRifle
priority: 1
whitelist:
tags:
- CartridgeLightRifle
- type: ContainerContainer
containers:
gun_magazine: !type:ContainerSlot
gun_chamber: !type:ContainerSlot
- type: MagazineVisuals
magState: mag
steps: 1
zeroVisible: true
- type: Appearance
17 changes: 17 additions & 0 deletions Resources/Prototypes/_NF/Recipes/Lathes/ammo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# these were added By VividPups for the AMMOfab for; added in with PR 1770

- type: latheRecipe
id: 10roundmagazine
result: 10roundmagazine
category: Ammo
completetime: 5
materials:
Steel: 25

- type: latheRecipe
id: 10roundmagazineempty
result: 10roundmagazineempty
category: Ammo
completetime: 5
materials:
Steel: 20
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "https://github.com/shiptest-ss13/Shiptest/pull/1602/commits/3e6cfea9d468508a7f64ad5543c3b22479cb465f , https://github.com/shiptest-ss13/Shiptest/blob/master/icons/obj/ammo.dmi",
"states": [
{
"name": "base"
},
{
"name": "practice"
},
{
"name": "red"
},
{
"name": "rubber"
},
{
"name": "uranium"
},
{
"name": "mag-1"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken/modified from cev-eris at https://github.com/discordia-space/CEV-Eris/pull/6042/commits/64916c98f4847acc4adf3a2416bf78c005fd7dd7, https://github.com/discordia-space/CEV-Eris/raw/e1a3cbe9ba2e6e29b7f1cad1bb456b390aac936d/icons/obj/guns/projectile.dmi, backpack sprite by Peptide, backpack sling sprite edited by Boaz1111, wield sprites by RiceMar1244",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "base"
},
{
"name": "bolt-open"
},
{
"name": "mag-0"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "wielded-inhand-left",
"directions": 4
},
{
"name": "wielded-inhand-right",
"directions": 4
},
{
"name": "equipped-BACKPACK",
"directions": 4
},
{
"name": "equipped-SUITSTORAGE",
"directions": 4
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading