Modular firearms - MFCS#186
Open
BlueNexus wants to merge 108 commits intosshado:A-Devfrom
BlueNexus:ModularFirearms
Open
Modular firearms - MFCS#186BlueNexus wants to merge 108 commits intosshado:A-Devfrom BlueNexus:ModularFirearms
BlueNexus wants to merge 108 commits intosshado:A-Devfrom
BlueNexus:ModularFirearms
Conversation
So much cleaner. Also gave some things a placeholder sprite
Heavily WIP and untested.
There was a problem hiding this comment.
Checking mutually exclusive types repeatedly again.
|
Cirra asked me for critique, ftr, this isn't me randomly deciding to talk shit on another codebase's PRs. A lot of the code here seems bloated or redundant, I feel like you could make good use of associative lists for all the various kinetic/ballistic/etc checks rather than having so much boilerplate for each individual var. |
Should stop it being checked again and again in the code. Thanks Zuhayr.
Credit to Zuhayr. Let's see if I did this correctly.
Credit for lines 119 to 124 to @zuhayr
Once again, credit to @zuhayr. I learned a little bit from this one, so this should help in the future.
Beginning the process of replacing all standard firearms with MFCS firearms.
Will handle larger weapons.
Sprite overrides are now handled, max_shells is no longer overriden for existing weapons, and "mastertypes" have been implemented.
Added compilesprite defining to new() and recompile()
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
//THIS IS HEAVILY WORK IN PROGRESS//
The MFCS allows players to construct and disassemble firearms using a wide variety of components, allowing the player to customise recoil, accuracy, projectile type, fire rate and mode, projectile speed, loading method and more. All firearms in the game will be replaced with these modular variants. MFCS Firearms may be constructed by R&D or anybody who gets a hold of the parts, however the final part will come in a lock box, to prevent them being made and used for grief. This will hopefully give research something interesting to do, and will add a lot of depth to the firearms in the game. Keep in mind, this project is massively work in progress. Feedback would be appreciated, however.
Current build - 215