branchrust_reboot/main/horse_medsyringe_healingcancel
7 Commits over 31 Days - 0.01cph!
Fix mission event for healing using wrong prefab ID
Fix horse buff icons not disappearing on the client when the modifier gets removed
Rebalance speed boost following feedback
- Fix horse health not updating correctly in main vitals HUD
- Horse health now gets a special horse icon in the vitals HUD. Cog icon is still used for other vehicles
- Fix medical syringe showing horse speed boost as an incorrect percentage, now shows extra km/h
Revert transform and collider changes that somehow snuck back in
Fix compile errors and reduce speed gained
- Horses can now be healed with medical syringes, in the same way we can heal other players
- Medical syringes act as performance enhancing drugs for horses, giving a temporary boost to max gallop speed and a small replenishment of stamina (horse drugs are in Rust now)
- Bandages do not work on horses - only syringes
- All of above subject to change
- Modified MedicalTool so that it can work for other entity types other than players. Added IMedicalToolTarget which we can attach to entities which we want to targetable, and handling per entity is now done on the entity rather than on the MedicalTool
- Add TryGetOwnerPlayer to HeldEntity and TryGetEntity to BaseNetworkable as slightly neater ways of calling their respective methods