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

More gun variants, part one #61598

Merged
merged 24 commits into from
Oct 19, 2022
Merged

Conversation

DoctorBoomstick
Copy link
Contributor

@DoctorBoomstick DoctorBoomstick commented Oct 10, 2022

Summary

None

Purpose of change

Ever since the gun variants system has been implemented, there has remained a large discrepancy in the number of guns present within CDDA’s portfolio that make use of this feature, and those that do not. As more and more fun murder sticks are included, this issue becomes a little bit more pronounced with every new and obscure weapon that gets added. Whilst this is the fault of no person, save for possibly those silly little people out and about in the world making new fun murder sticks which must sooner or later be simulated in the game, the fact that many weapons, save for all the shotguns and a modest collection of rifles, pistols, and machineguns, still don’t use the variants system, I personally feel, is lessening the overall point and impact that this feature provides. I honestly don’t know how many people make use of this feature, or how useful it is considering that we have the generic weapons mod, but I am of the mindset that the feature is here, may as well make use of it.

Describe the solution

For this PR, I’ve started off on a light footing. I’ve added variants to the .270 Winchester Remington 700, the S&W 500, the Big Horn Model 89, the Mosin M44, and the Mosin 91/30. On this latter note, I’ve melded the EBR iterations of both the latter guns into variants, with contained grip, rail, and stock mount gun mods providing their different modular capabilities. On a completely unrelated note, I also went ahead and included an integral folding bayonet to the M44 Mosin, for the two important reasons that the real guns come equipped with one and having big stabbing sticks on the end of Russian guns sounds like fun. When all things are considered, this completes adding variants for all the .270, .500, and 7.62x54mm guns currently in the game.

Describe alternatives you've considered

I considered first completing all the variant work for all calibres before putting forwards this pr suggestion. The reasons that I decided against this is simply because it will take a preposterous amount of time to add variants for potentially all the guns and having a steady trickle of completed calibres sounded more in line with preserving my sanity. In addition, I believe working with small, manageable bite sized pieces just makes everything simpler for all parties involved.
Apart for this, I was flirting with the idea of making the Mosin M44 and 91/30 EBR rifles have their own respective variants, rather than being lumped in with the plane non-modern iterations of the guns. I decided not to do this as the method I used cuts down on the number of similar guns present for the player, thus making stuff simpler. Sure, I could have made the “refurbished Mosin carbine,” and the “refurbished Mosin battle rifle,” to go with the plane Mosin carbine and battle rifle, but do we really need four similarly named guns which pretty much do the same things? Plus, the differences between them, the former’s capability for mounting accessories, can and is reinstated by adding contained mods. The only sign, from a gameplay perspective, that something is different is that, by the nature of how the variant system works, the stats for both the Mosin M44 and M44 EBR, and the 91/30 and 91/30 EBR are the same. Outside of their accessary capabilities, the normal and EBR iterations are essentially identical. That being said, it would be nice if down the line, variant guns of this nature could also define their own stats.

Testing

All elements of the variant change have been tested, I.E., spawning in the effected firearms and checking them out.

Additional context

@github-actions github-actions bot added [JSON] Changes (can be) made in JSON Items: Ammo / Guns Ammunition for all kinds of weapons and these weapons themselves Items: Gunmod / Toolmod Weapon and tool attachments, and add-ons Spawn Creatures, items, vehicles, locations appearing on map json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Oct 10, 2022
@anothersimulacrum anothersimulacrum self-requested a review October 10, 2022 16:45
@anothersimulacrum
Copy link
Member

762R guns before this change:

id weight volume length ammotype modes magazines dispersion recoil damage
obrez 3000 2220 400 762R 1 5 90 0 0
mosin44 4100 2720 1015 762R 1 5 90 0 0
mosin44_ebr 4330 2870 1015 762R 1 5 90 0 0
mosin91_30 4000 3120 1241 762R 1 5 90 0 0
mosin91_30_ebr 4230 3300 1241 762R 1 5 90 0 0

@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Oct 11, 2022
@github-actions
Copy link
Contributor

Spell checker encountered unrecognized words in the in-game text added in this pull request. See below for details.

Click to expand
  • A finely put together rifle, constructed in the image of old west lever-guns, this weapon features an impressive chambering of .500 Magnum. Less unmanageable and impractical than within a handgun platform, the power potential of the huge round is nevertheless preserved within this rifle sized package. Capable of taking down most forms of game, including deer, boars, and small dinosaurs, this is a respectable weapon for only the most enthusiastic of large-calibre shooters.
  • A later produced and substantially shortened version of Imperial Russia’s original service rifle, this variant of the Mosin features a notably more compact barrel and an integral side-folding bayonet. Produced during the latter days of the Second World War for the Soviet Union, the weapon exhibits less overall stopping power than its full-length older brother thanks to the former’s stubbier barrel. Despite the arm being somewhat weaker than its forefather, the 7.62x54mm round that it chambers still packs a hefty punch, whilst its smaller size helps to make the weapon wieldier.
  • Developed by the Russian Empire prior to the onset of the First World War, the Mosin is a bolt-action military battle rifle chambered for 7.62x54mm rounds. Powerful, unwieldly, and prolific across the world as military surplus, this sizable rifle is a Soviet updated version of the venerable Mosin.
  • Featuring a handsome set of wooden furnishings, a classic design, and a no nonsense .270 caliber chambering, this is a powerful hunting rifle. With a tried and proven pedigree dating back over 60 years, millions of such rugged arms have been made, exported, and used throughout the United States and the world at large. Where hunting is concerned, this is a highly capable and well proven weapon in all respects. Fortunate, given that your prey in these dark days may turn out to be a little bit more feisty than typical White-Tailed deer, moose, and black bears.
  • The definition of ‘overkill,’ this behemoth handgun puts large .44 calibre revolvers to shame with its sheer size, power, and immense chambering. Firing the appropriately named .500 Magnum cartridge, the most powerful handgun round in the world, the weapon has seen work in both sport shooting and hunting roles. A pistol for those of the ‘bigger is better’ mentality, a high recoil junky’s personal dream, and an all-around useless military sidearm, should the urge to assault the Cataclysm in fine style grip you, this giant provides you with 5 rounds with which to reduce a zombie into an afterthought.

This alert is automatically generated. You can simply disregard if this is inaccurate, or (optionally) you can also add the new words to tools/spell_checker/dictionary.txt so they will not trigger an alert next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions Items: Ammo / Guns Ammunition for all kinds of weapons and these weapons themselves Items: Gunmod / Toolmod Weapon and tool attachments, and add-ons [JSON] Changes (can be) made in JSON json-styled JSON lint passed, label assigned by github actions Spawn Creatures, items, vehicles, locations appearing on map
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants