-
Notifications
You must be signed in to change notification settings - Fork 272
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
fix: adds descriptive names to most guns #4299
base: main
Are you sure you want to change the base?
Conversation
Adds descriptions to gun names.
I mentioned it in the Discord but to reiterate my thoughts: This is not the ideal way to do this. It's going to make names a lot bigger in the UI which will most negatively affect Android users. Ideally we would redo the inventory UI and sorting to have custom filters to sort guns by weapon category or caliber. Note that this would be an incredibly difficult refactor and this isn't a vote for or against renaming guns this way, but if we did refactor the inventory UI these names would ideally get reverted as players would sort their inventory to their own parameters. |
i also think a better way to handle this would be via weapon categories. |
The other big issue with this particular change is that updating it is a bit of a pain. I'd suggest that we simply have an optional setting that makes specific weapon categories (definable in JSON) create a prefix/suffix, either as an acronym or a full name, but full name might be very... in the way. To be clear, I'm against this PR. |
Tests are failing because the MP5 no longer exists. The weapon name is checked and not the item ID. Confirmed by Scarf on the Discord. |
Yeah, based on the test it's meant to check that fouling properly appends the ⬜⬜ symbols after the name. |
I am also against the change. I would rather do it via the categories instead. It bloats the name. Also lead to the problem, that multiple guns now are "2 M16 assault rifle" instead of rifles. |
it would also be an idea to make it a mod. So people who have the need to get more descriptive weaponnames get them, while the rest stays "Vanilla" |
I've added it as an example. This problem is for the most part a symptom of other issues we have:
As to the PR, it appears that it would indeed be better to implement it programmatically, as @scarf005 and @KheirFerrum suggest. I've checked a few files, and from what I saw most of the changes were "add |
It's pointing out an issue with the implementation. This PR produces a tradeoff that isn't particularly desirable in that it makes all the other information communicated by the name (ammo type, ammo count, etc) impossible to read on systems with lower screen sizes (especially prominent in Android builds which honestly are like playing the game through a knight's visor). That kind of information ends up being far more important, as while you can eventually get used to what names are what gun, you cannot glean from the name what the current ammo/ammo count is. |
we need a decision here. Close and go the "mod" route? I would prefer that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above.
As Kheir suggested.
It needs to be done in the UI to not clutter the firearm information such as ammunition, this is much worse on Android users. Also tests are probably still failing because of the MP5 and that was never addressed. |
I think it is only usable way to go. It is much simpler than overriding a lot of names. |
I'd be willing to work on this after my exams if no one has done it by then |
Purpose of change
I personally, and I'm sure many other non-gun nut players, get kinda confused by all the various guns in the game, many of which seem to be named "p22," "cz," "ar15," "ar10," and other almost random jumbles of letters and numbers. If you're not familiar with guns, it's pretty difficult to look at your pile of guns and tell what's what. This change adds an extra word or two to the end of every gun name describing what kind of gun it is.
Describe the solution
Using the existing item descriptions, googling, or consulting with some gun nerd on discord, I've added an extra word or two to the end of every gun name describing what kind of gun it is. Examples include "pistol, pocket pistol, machine pistol and revolver" to describe pistols, "rifle, lever-action rifle, bolt-action rifle, assault rifle, and carbine" to describe various rifles, and similar naming for other weapons.
Describe alternatives you've considered
Get a better gun nut than I to make sure every weapon is named completely accurately. I'll be honest, I couldn't tell you the difference between a rifle and a carbine, nor do I care; this is intended to ease search through item piles and access to gun novices like myself. So long as it's broadly accurate it's good enough for me.
Do not change anything and also shit my pants.
Testing
Additional context
Checklist