666ef53f0ca3c

666ef53f0d0f6
1 Guest is here.
 

Topic: SS2 Enemy Health Randomizer Read 2050 times  

666ef53f0d832ZylonBane

666ef53f0d8a8
Here's a test version of a new minimod. I always thought it was kind of non-immersive that every enemy of a given type has exactly the same HP. This mod tries to fix that by randomly varying enemy HP values.

Note that this version displays some debug information regarding what it's doing. This won't be in the final version.
System Shock 2 Enemy Health Randomizer
09 February 2019
by ZylonBane

Requires SS2 NewDark patch v2.46 or higher.

This mod varies the health of all non-boss enemies by randomly adding or subtracting a percentage of their default HP. The percent of HP change is linearly scaled based on the max HP of the enemy. By default, weak enemies have their health randomized by around 50% of their max HP, while the strongest enemies are randomized near 25% of their max HP.

The reason for the scaling is so the HP change is noticeable for weaker enemies, without making the stronger enemies overpowered. For example, a hybrid with only 25% more HP would still take the same number of wrench hits to kill.

CUSTOMIZATION
There are three config variables in this script, CHANGE_PCT_MIN, CHANGE_PCT_MAX, and BIAS_PCT.
  • CHANGE_PCT_MIN and CHANGE_PCT_MAX define how much to randomly change an enemy's HP, as a linear range from the weakest to the strongest max HP values.
  • BIAS_PCT influences the probability of hit points being added vs subtracted. 0.5 provides an even chance of gaining or losing HP. Setting this to values outside the 0.0 - 1.0 range will  have unintuitive results.

To make it so this script only makes enemies stronger, set BIAS_PCT to 1. Contrariwise, setting BIAS_PCT to 0 would only weaken enemies.
[ss2_enemy_health_randomizer.7z expired]
« Last Edit: 10. February 2019, 21:11:29 by ZylonBane »
666ef53f0dc66
Nice that you exposed alle the relevant variables for tinkering.

666ef53f0e08bRocketMan

666ef53f0e0e6
I think this is important to have to prevent people from calculating their way through the game and also so that someone playing the game on a really high difficulty level might still stand a chance after losing a lot of health if he happens across an enemy that got randomly nerfed.  This sort of chance factor makes the game better IMO

Actually I think most stat parameters should have a level of variability to them from weapon damage to hp to speed... anything that you might expect to vary in real life.  The averages would remain the same but it would allow for some fringe cases that would either be really hard or really easy.  I guess the only risk is getting some lightning fast immortal enemy 1% of the time.
666ef53f0e2cd
This sounds really interesting, and I'll probably use it on my next play-through, thanks. How easy is it to place dead humans/enemies/blood splatters/etc? I mean, you could set up a scene where a dead human (with a weapon) is surrounded by dead spiders, and it's obvious that there's been a big fight there, which the human ultimately lost, and there can be a groups of spiders left that have mostly low health left since they were injured in the fight.
666ef53f0e43d
Pretty sure you could do all that with the editor. And it doesn't relate to this mod which is a randomizer, not a health setter.

666ef53f0e5eavoodoo47

666ef53f0e648
it could even be dml added, but yeah, no idea how does that relate to a health randomizer mod.
666ef53f0e9c6
Pretty sure you could do all that with the editor. And it doesn't relate to this mod which is a randomizer, not a health setter.

Sorry, I should have been clearer. I Just meant that (to me) it might be a good idea to use the set-enemies-to-different-healths feature to set up some special case situations to add atmosphere to the game. I know that that would be 'hard coding' some health statistics, instead of randomising them, but it's sort of relevant (if you squint  :sly:).

666ef53f0eb41ZylonBane

666ef53f0ebb8
Randomly twiddling the HP of enemies is not even remotely in the same galaxy as coding in any sort of special encounters.
666ef53f0ecd1
That being said, go ahead and create that encounter!

666ef53f0eda5voodoo47

666ef53f0ee24
NVCreateAndLink few spiders somewhere, an explosion (place it so that it would damage the spiders unequally), all the corpses you like, a gun, and a couple of spent casings, there's your event/scene.
666ef53f0efcc
That's a fantastic concept! Would you be so kind and re-upload the original archive? The link has since expired and I am most interested in giving this a shot. :)
1 Guest is here.
Who was it that said 'love conquers all'? Well he was a fool, 'cause it doesn't at all.
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
666ef53f1029b