Impulse 101 / Refilling Mags on Bots without func_regenerate

Scary Monsters

L1: Registered
Jul 13, 2022
5
0
Impulse 101 flat out does not work on bots, and I know about some equivalents that I'll list below, but I specifically need something that will refill the ammo in a bot's weapon clip that isn't func_regenerate, as resupplies undo the effects of the bot_mirror command, which is the entire basis of my project.

>bot_refill
Refills health and reserve ammo, but not clip size. Would be perfect if it just refilled the bloody clip.
>Mannpower Regen
Doesn't work without Mannpower being enabled (tf_powerup_mode 1) and also doesn't refill clips.
>Refill Clips & Ammo Canteen effect
Would work perfectly for my needs, but I don't know how to activate it since it's not listed in https://wiki.teamfortress.com/wiki/Cheats#addcond

If there's a way of keeping a bot's ammo clips and reserves full, please let me know.

[Temporary Hack Solution]
Worked it out by using a brush that is in the vanilla game, yet isn't usable by default because Valve.
Using a trigger_add_or_remove_tf_player_attributes, I set the bots' reload speed to a ludicrous value making all of their reloads instant, specifically via "faster reload rate", as I'm sure mult_reload_time would only apply to the weapons it's attached to.
 
Last edited:

Scary Monsters

L1: Registered
Jul 13, 2022
5
0
Have you tried using point_clientcommand? It's like point_servercommand only it types commands in the activator's console

Yeah I tried that. A trigger_multiple outputting impulse 101 through a point_clientcommand, filtered for only BLU team (the team that the bots are restricted to.) It did nothing for the bot, yet worked perfectly when I was on BLU.
I also tried bot_command "impulse 101" before this project was a dedicated map, and that also does nothing.
 
Last edited:

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,259
999
1667346329348.png
 

Scary Monsters

L1: Registered
Jul 13, 2022
5
0
That doesn't show up in the drop down of stuff I can make a trigger. The closest thing is trigger_add_tf_player_condition, which is missing parameters, and only accepts stuff found in the addcond list.
1667353934218.png

Is trigger_add_or_remove_tf_player_attributes part of a download somewhere? I also tried vanilla Hammer instead of H++ and that didn't change anything.


Edit: Found the thread and turns out it still doesn't refill mags, and that the ammo refill canteen only does anything when it's on the canteen itself. I might try increasing clip size to practically infinite.

Edit2: Alright, I found a solution by using the "faster reload rate" MvM attribute and setting it to a ridiculously high value of -255, so that all reloads are instant.
 
Last edited:

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,259
999
Oh I'm sorry, I misunderstood. I see now you wanted to replenish the clip that's already in play, and not the bots' reserves. My apologies.
Your reload rate solution is clever! Well done.