[HL2MP] Finish bot health charger support #1371
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
HL2MP bots have unfinished support for using
item_healthcharger
andfunc_healthcharger
entities to heal themselves. This pull request allows them to be supported to the same extent as regular health kits.Specific changes made:
hl2mp_bot_debug_health_scavenging
, which was previously unused.item_health*
/func_health*
and then searching for "charger" in the classname directly, rather than through leading wildcards with*charger*
/*_health*
, which Source does not support by default.50
to the actual player use radius, which is80
by default.Use()
functions directly, as the latter had issues.hl2mp_bot_health_charger_weave
.Here's a video of how health scavenging behavior worked prior to this pull request:
2025-06-22.21-18-40.mp4
Here's a video showing how it works with the changes included:
2025-06-22.22-07-54.mp4
Here's a video showing a bot on "Expert" difficulty using the aforementioned "weaving" behavior:
2025-06-22.22-10-30.mp4