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

Ports TGMC autofire #3909

Merged
merged 34 commits into from
Jul 24, 2023
Merged

Ports TGMC autofire #3909

merged 34 commits into from
Jul 24, 2023

Conversation

Zonespace27
Copy link
Contributor

@Zonespace27 Zonespace27 commented Jul 16, 2023

About the pull request

Tears out CM's autofire system and replaces it with TGMC's.
Shouldn't affect anything on the front-end beyond an unreported bug, and maybe making lag a bit better.

tgstation/TerraGov-Marine-Corps#6064
tgstation/TerraGov-Marine-Corps#6164

Regexes used:

Fire delay

F: ([^/])fire_delay = ([A-Z_1-90. *+-]+)
R: $1set_fire_delay($2)

Burst delay

F: ([^/])burst_delay = ([A-Z_1-90. *+-]+)
R: $1set_burst_delay($2)

Burst amount

F: ([^/])burst_amount = ([A-Z_1-90. *+-]+)
R: $1set_burst_amount($2)

Explain why it's good for the game

Autofire becoming less terrible is one of the things necessary to be able to add autofire to more guns.

Changelog

🆑 BraveMole, Zonespace
fix: Smartgunners can no longer shoot their smartgun while aghosted
balance: The Uzi and Mac-15 now have full-auto
/:cl:

@cm13-github cm13-github added the Merge Conflict PR can't be merged because it touched too much code label Jul 16, 2023
@github-actions github-actions bot added the Fix Fix one bug, make ten more label Jul 16, 2023
@cm13-github cm13-github removed the Merge Conflict PR can't be merged because it touched too much code label Jul 16, 2023
@mullenpaul
Copy link
Contributor

Whilst it would be neat to refactor firemodes into datums - I think it could complicate the code at this point. I would generally think that we should port the code over -as is- and then make improvements on it

@Zonespace27 Zonespace27 added the Testmerge Candidate we'll test this while you're asleep and the server has 10 players label Jul 17, 2023
@Nanu308 Nanu308 added the Balance You need to be a professional veteran game maintainer to comprehend what is being done here. label Jul 23, 2023
code/modules/projectiles/gun.dm Outdated Show resolved Hide resolved
code/modules/projectiles/gun_helpers.dm Outdated Show resolved Hide resolved
code/modules/projectiles/gun_helpers.dm Outdated Show resolved Hide resolved
@harryob harryob marked this pull request as draft July 24, 2023 15:10
@Zonespace27 Zonespace27 requested a review from harryob July 24, 2023 16:44
@Zonespace27 Zonespace27 marked this pull request as ready for review July 24, 2023 16:44
Copy link
Member

@harryob harryob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one last nit

code/datums/components/autofire/autofire.dm Outdated Show resolved Hide resolved
code/datums/components/autofire/autofire.dm Outdated Show resolved Hide resolved
@Zonespace27 Zonespace27 requested a review from harryob July 24, 2023 17:48
@harryob harryob added this pull request to the merge queue Jul 24, 2023
Merged via the queue into cmss13-devs:master with commit ceac219 Jul 24, 2023
cm13-github added a commit that referenced this pull request Jul 24, 2023
github-actions bot added a commit that referenced this pull request Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Balance You need to be a professional veteran game maintainer to comprehend what is being done here. Fix Fix one bug, make ten more Testmerge Candidate we'll test this while you're asleep and the server has 10 players
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants