Skip to content

Allow other mods to change wear of registered guns#45

Open
LoneWolfHT wants to merge 1 commit intostujones11:masterfrom
LoneWolfHT:master
Open

Allow other mods to change wear of registered guns#45
LoneWolfHT wants to merge 1 commit intostujones11:masterfrom
LoneWolfHT:master

Conversation

@LoneWolfHT
Copy link
Contributor

I have a PvP game I'm doing and I'm changing some gun settings from a mod so I don't(?) have to mess with licensing.

This code should allow mods to use shooter.registered_weapons to change def.spec.wear which will in turn allow them to change how many rounds a weapon has.

I have tested this and found no problems

@ClobberXD
Copy link
Contributor

This allows for weapon mag-sizes to be customizable per-player, by getting the wear value from player's weapon spec instead of the gun definition. I like to concept, and the code looks good to me. 👍

@stujones11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants