RimWorld

RimWorld

Otillräckligt med betyg
Configurable Dynamic Weapon Cooldown
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Mod, 1.6
Filstorlek
Lades upp
Uppdaterades
178.006 KB
24 nov @ 19:02
24 nov @ 23:31
2 ändringsnotiser ( visa )

Abonnera för att ladda ner
Configurable Dynamic Weapon Cooldown

I 1 samling av DanZinagri
Multiplayer
562 artiklar
Beskrivning
An updated version of the dynamic weapon cooldown mod. This not only fixes it to work with the most recent vanilla expanded framework changes, but also adds in a slider allowing you to make this as strong or weak as needed.

Right now it defaults to 150% manipulation = 50% cooldown reduction; setting the scale to 0.5 would be a 25% cooldown reduction, while 2 would be a 75% cooldown reduction.

There's also a toggle so you can make this apply to only melee or ranged (or neither if you so want), if you feel this is too strong for either one.
The scale for both set separately as well, meaning ranged can be 10x while melee only gets 0.1x.

The basic ranged/melee toggles require a game restart to turn on/off but the sliders are dynamic meaning you can adjust them up and down mid-combat to help really fine-tune this. (i don't know why but melee cooldown doesn't seem to be reflected on the pawn stats page; but you can easily test this by just adjusting the slider and seeing your pawn actively attack faster/slower to see that it is in fact working).

Update:
Added a diminishing return toggle. This allows you to set a curve to the rate at which manipulation applies, scaling from 0-100%, 100% being closer to the toggle being off.
If you have over 200% manipulation you may get by reducing the base scaling configuration; but failing that you'll want to turn this on. This is because manipulation is being applied 1:1 meaning at 200% this is a 100% reduction, meaning you have the game's hard floor of 1% cooldown.

Thus the easier it is for you to reach this value the more you're going to want diminishing returns to be a factor.

Vanilla games probably won't need this too badly because reaching 200% in there is alot harder. Heavily modded 300% isn't even your cap. Thus more sliders, more fun.

(With my current setup i have all the sliders down to 25% because how easy it is to get to 300% manipulation, and i might cut them down a little more.).

GitHub Link[github.com]
7 kommentarer
DanZinagri  [skapare] 27 nov @ 21:43 
Mostly did it that way because i wanted to keep the settings screen somewhat simpler, because otherwise full control would have about 16+ sliders for the diminishing return curve lol.
DanZinagri  [skapare] 27 nov @ 21:41 
The long and short of it is the original mod had a "postprocesscurve" this is basically a "if you have X value make it Y', so if i gave it a 3 i could make the curve turn that into a 2 for example. So i basically tried my best to map a single number to an entire curve because the curve generally is to help so low manipulation increases still feel like they do something, while higher manipulation doesn't instantly break the game (i'm not any sort of math genius so there's probably a better formula.)

tldr; the current defaults should be fine for a more-vanilla-aligned playtrough; otherwise on my own personal run i set the base 2 sliders to .25, while i set the diminishing return sliders to 25%
DanZinagri  [skapare] 27 nov @ 21:41 
I kinda put 75% as a default as it was in that "felt good" territory when i was playing around with the settings. As stated in the mod, 100% basically is as if the diminishing return setting was off, 0% is gonna be the most aggressive. tldr; if you set it to 0% and crank the base value of 10x your manipulation value you probably still won't hit the absolute floor of cooldown.

What does it represent? Eh, the long and sort its effectively just a harshness of a curve. If you want the exact math, go to the github link, check out the "rebuildCurve" method for a direct look.
xuanxuan 27 nov @ 21:19 
Is the 75% diminishing returns setting the default? What does it represent?
DanZinagri  [skapare] 25 nov @ 0:16 
If your mod isn't properly updating to the new version just ubsub/resub. If you see the mod verison is 1.1 then its the correct one.
For some reason steam is just not wanting to update for some reason.
DanZinagri  [skapare] 24 nov @ 23:35 
ok update done, diminishing return slider added.
DanZinagri  [skapare] 24 nov @ 22:53 
I'm working on a diminishing return setting right now. Ii'm hoping i can have it out soon, but trying to get the curve to feel reasonable on a 0-100% scale.