Mendasp / NS2Plus

NS2+ mod for Natural Selection 2
10 stars 22 forks source link

Add per-lifeform sensitivity for aliens #56

Closed keatsandyeats closed 7 years ago

keatsandyeats commented 7 years ago

Aliens can now have a different sensitivity for each lifeform by setting "Lifeform specific sensitivities" to "On" in the menu. Sensitivity sliders for skulk, gorge, lerk, fade, and onos will appear. This option is hidden if "Team specific sensitivities" is "Off".

Some notes:

Mendasp commented 7 years ago

To solve the issue with displaying an option that's irrelevant you could make it a child of perlifeform sens and make it so it displays if the value is off.

I'm speaking from memory but I think that's an option and it'd solve the problem.

keatsandyeats commented 7 years ago

Thanks for the suggestion @Mendasp. The per-lifeform sens already has children that it hides when it's set to "Off" (namely, each individual lifeform's sens). I'm not sure if there exists a way to have different children for different hidevalues. So therefore I don't know how to also hide the alien team sensitivity when per-lifeform sens is "On".

Mendasp commented 7 years ago

Yeah, I was speaking from memory so I thought I already had some handling for it displaying when it's on/off (ie. show a set when it's on and another when it's off). You'd have to add something like that so you could maybe define a table of children depending on the hide value.