-
Notifications
You must be signed in to change notification settings - Fork 39
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
Correcting +bxt_ch_hook request #456
Comments
The health thing is so player won't die when going down. These parameters are hard coded so there is no need to do a lot of things just to get it to work. I agree that having another cvar to control it is nice but I just don't feel like adding some more cvars. As for the line drawing, I did not know how to use the thing so I just skip it. |
Do you want to know what main issue with the current code? Now guess what would happen when you launching game and start map with bind for Instead of applying some value at init, I rather suggest to remove that health thing, since is really not supposed to be here, I'm still on a side that player should to decide himself if he want to set HP or not And if someone think that adding a new variable for controlling speed isn't sound as something that would clutter or be unpopular, just remember that Don't think that I'm kind of angry or smth, i'm really pleasant for everyone who putting effort in it, but I really don't like when there is hardcoding that doesn't have a real purpose for it and half ppls would easily to prefer to edit to their own preferences, so you need to think about everyone |
FWIW I was also on the edge about hardcoded HP but figured it's a specific enough functionality that it doesn't really matter. The -command issue should be fixed though. As for speed, I see even less of a reason for it to be customizable tbh. |
Thanks for pointing out the issues. I will try and fix it and see. |
Well, if you want to know my opinion, I prefer to have hook speed to get more lower than the current one (like 850 units) But at the same time I don't want to force for change value due of my preferences, instead I rather prefer to have a separate cvar for that For a long time the BXT custom triggers was hardcoded to orange color and more than half opacity One of valid reason for hardcoding speed can be accepted in case if the code has some limitations that makes it only stable works with specific value / range of values, but that's a not case as you can see Other valid reason is when you implementing some of game feature from one game to another, so you might to use some hardcoded values for similar behaviour Example: BunnymodXT/BunnymodXT/modules/ServerDLL.cpp Lines 3152 to 3168 in 71f1c9a
That 0.3 value is not a some of random, it's straight brought from Each time you think that some of cvar that changing only cosmetic stuff will be used only by few peoples, that completely not true |
That a good addition, but I haven't looked to the request itself before, so let's see:
BunnymodXT/BunnymodXT/modules/HwDLL.cpp
Line 3166 in 71f1c9a
What is that random stuff does here? Please, don't add some wacky kind of that hardcoded stuff that ain't supposed to be in it, let player to set HP on their own with
bxt_ch_set_health
or using thegod
commandBunnymodXT/BunnymodXT/modules/HwDLL.cpp
Line 3168 in 71f1c9a
Don't make the speed is hardcoded, better to create the specified cvar for that initially, or otherwise soon or later you still would to hear from others for making that addition
Other than that, additionally, might to consider of adding draw of trace line with power of pTriAPI
Or rather re-using beam sprites from HL1 (e.g. from Gauss gun) and pEfxAPI/pEventAPI/pTriAPI/SPR_ functions to draw it
The text was updated successfully, but these errors were encountered: