Skip to content

Add lifeRnd and extraLife for Weapons and more#11477

Open
rylid-umil wants to merge 13 commits intoAnuken:masterfrom
rylid-umil:patch-1
Open

Add lifeRnd and extraLife for Weapons and more#11477
rylid-umil wants to merge 13 commits intoAnuken:masterfrom
rylid-umil:patch-1

Conversation

@rylid-umil
Copy link
Copy Markdown

@rylid-umil rylid-umil commented Dec 22, 2025

Adds lifeRnd and extraLife fields to weapons. They function like velocityRnd and extraVelocity but with bullet lifetimes. This is applied before scaleLife scaling. I'm unsure if this would have a use in vanilla Mindustry, but it's there, to be consistent with frag bullets, as they can do this too.

If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:

  • I have read the contribution guidelines.

  • I have ensured that my code compiles, if applicable.

  • I have ensured that any new features in this PR function correctly in-game, if applicable.

like velocityRnd and extraVelocity but with bullet lifetimes. random is applied before the scaling with scaleLife.
@rylid-umil rylid-umil changed the title Add lifeRnd and extraLife for Weapons Add lifeRnd and extraLife for Weapons and more Dec 23, 2025
@rylid-umil
Copy link
Copy Markdown
Author

New features:

  • width and height for particles, they are multipliers for radius and can have interp
  • Color Interpolation (self explanitory), by default it is set to interp, like it usually is
  • some more documentation for fields in ParticleEffect

@rylid-umil
Copy link
Copy Markdown
Author

New feature:

  • Triangle effect with customizable parameters

@rylid-umil
Copy link
Copy Markdown
Author

rylid-umil commented Dec 23, 2025

i compiled with teh triangle features and stuff, it doesn't error so idk why its erroring here

bug squashed

@rylid-umil
Copy link
Copy Markdown
Author

New feature:

  • extraLife and lifeRnd for turrets, and added the missing extraVelocity field.

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.

1 participant