Details

Last Updated
3 weeks ago
First Uploaded
3 weeks ago
Downloads
40K
Likes
5
Size
129KB
Dependency string
randomuserhi-DamageSync-0.0.7
Dependants

A host only mod that syncs enemy HP with clients.

Requires Bepinex, but is not dependent on GTFO-API plugin, so you can remove GTFO-API.dll from plugins folder to keep vanilla rundown and progression.

Big thanks to mankool for figuring out the bulk of this!

============ API ============

namespace DamSync;

DamageSync.Sync(EnemyAgent agent, int limbID = -1);
DamageSync.Sync(Dam_EnemyDamageBase agent, int limbID = -1);

Calling Sync from host with limbID < 0 will sync the given enemy's hp with clients (but no limbs get synced). Calling Sync from host with limbID >= 0 will sync the given enemy's limb hp with clients (but not its actual enemy HP).

============ Change Log ============

v0.0.7

  • Added API for plugin devs to sync custom damage.

v0.0.6

  • Fixed limbID of 0 being ignored.

v0.0.5

  • If host has the mod, syncs limb health values with clients that also have the mod.

v0.0.4

  • Changed the channel type so health updates are SNet_ChannelType.GameReceiveCritical (Thanks to Dex for suggesting this!)

v0.0.3

  • Added config to enable debug info

v0.0.2

  • Removed Debug clutter

v0.0.1

  • Initial Release
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.