The Dark Mod: Player system update
Added 2021-01-13 15:24:01 +0000 UTC
The next update is here! I consider the damage component as finished as it gets, it should be mainly bug fixes and minor tweaks from here. I polished everything and restructured much of the code, and can now recommend players to install and enable this during everyday gameplay. Fixes and improvements include:
- Better patterns and algorithms for correctly distributing damage to the proper limbs.
- New protection: Holding an object in your hands exposes the arms more but the torso less.
- New penalty: Mild turn hindrance while the head is damaged.
- Values from the previous call are used when determining player velocity, position, shape. This offers safer and more realistic results... for example fall damage will distribute accurately as the player's velocity before hitting the ground is calculated, rather than reading it afterward when the player is standing still.
- As suggested by one of the developers, cvars can now be used to adjust the system. Two cvars were added: "g_player_damage" scales the damage limbs take from ordinary damage, can be changed in-game with immediate effects. "g_addon_player" disables the addon entirely and won't load it, however it only has an effect before map load meaning the mod won't be loaded / unloaded in realtime. Not setting a cvar is the equivalent of setting it to 1, you must set it to 0 to disable.
- External mods can work with limbs via getFloatKey() and setKey(). For example: $player1.getFloatKey("health_torso") or $player1.setKey("health_arm_left", 0.5).
- Each limb will now flash on the HUD when taking damage, making it obvious which body parts were hit that frame.
- The HUD itself has been updated with better graphics based on this OpenClipArt design. Here are some screenshots of the new assets:
Notice: As TheDarkMod is under a non-commercial license, this should NOT be considered a Patreon project! All TDM related posts will available to the public (no tiers) and projects for TDM are not subject to any rewards. Those posts are shared as on a blog and are primarily intended to keep my watchers up to date with what I'm working on.