-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Suggestion] Medkit improvement #329
Comments
Learned Lua in the night 🤓 |
You want to use a hull trace but that commit would also work just as well I guess the downside being that it wouldn't be lag compensated. I will update this eventually. |
I've improved it a bit, the healing is now done with hull trace and uses the entire bounding box of the player, the situation where trying to revive players are in small confined spaces is not that easy to deal with as I would have to force them into a ducked state which is not that simple, I changed it from line trace to hull trace with a generous bounding box so that should ease the pain a bit at least. As for stuck players I will have to do some testing, do you know any areas where this can easily happen? |
So far that i have seen, before d2_coast map just after exiting Ravenholm, in the train section that you have to pass ducking to avoid snipers, a friend of mine was revived where the headcrab npc is spawned and he was stuck, there were other cases but i am not entirely sure if you could replicate them as the map-structure wasn't really suspicious. if i get to do another run i'll take notes. |
Already discussed in discord
Problem
Using the medkit for reviving players is hard as you can not look away for a moment (TraceLine#L136), dead corpses floats in water and it's hard to aim at them, and you can not revive players in small places #L256 I am not entirely sure if this latter one but it's worth to look at it too
Another problem would be the stucking players when they are revived, depends a lot on the map structure and where their corpses where but if a "unstuck" command or something is implemented it would be helpful.
Solution
Suggested by
zehmatt
a TraceHullAlternative a bit expensive but in my personal experience and preference more reliable and fun
Note: I don't know Lua neither the API, i did what i though was correct and didn't even tested it but you get the "prototype" to call it somehow.
The text was updated successfully, but these errors were encountered: