smilz0 / Left4Bots

Improvements for the L4D2 survivor bots
https://steamcommunity.com/sharedfiles/filedetails/?id=3022416274
34 stars 4 forks source link

improve search "tank_rock" #56

Closed 4512369781 closed 10 months ago

4512369781 commented 10 months ago

Use "ability_use" events to find "rock", so we can remove it from "Left4Bots.OnThinker".

left4bots_afterload_rock.zip

smilz0 commented 10 months ago

I use that event in L4B1. This is better than mine because you get the rock from the move childs, i just search for a rock nearby however i think the OnThinker approach is better because it runs every frame so the think function is attached the very first frame the rock is spawned. I don't think the OnThinker function is so heavy after all, it can probably stay.

4512369781 commented 10 months ago

I know, I'll close this issue.