[GoldSrc] +Use and move velocity.
When pressing +use you will get two different behaviors depending on what OS the server is hosted. On Linux +use will slow the player as if they are pushing/pulling a pushable object which according the SDK is why it is there, and on Windows +use does not slow the player, as the code for this seem to be absent. This should be fixed so +use will only ever slow the player if they are actually pushing/pulling a pushable object and should be consistent on all operating systems.
In the SDK: PM_PlayerMove()
// Slow down, I'm pulling it! (a box maybe) but only when I'm standing on ground if ( ( pmove->onground != -1 ) && ( pmove->cmd.buttons & IN_USE) ) { VectorScale( pmove->velocity, 0.3, pmove->velocity ); }
Need a check here to make sure we are actually interacting with e.g. a func_pushable.
Not sure about TFC, but in HL/CS it should slowdown even if nothing is pulled. See #977.
Don't know what you mean about it 'should', because it shouldn't slow you down when you are not pulling anything. It's just somewhat lazy coded. As you can read from the SDK, it only exists because you should be slowed down when you are pulling an object. However it is a generic thing in the engine for all mods and not just TFC.
It's a bug that became a feature in CS and HL. I dunno about TFC, but mentioned this here so developers could have a reference of this.
Just because some players use it to slow themselves down in KZ maps doesn't mean it shouldn't be fixed. At the very least it should be fixed in TFC as players press +use in a lot of fast paced security type CTF maps.
ah its not just kz maps this feature is used for, in half life and other mods it is a useful feature for slowing down to a complete halt. and when held it gives another movement speed which can be useful. but if you do want to use it as +use whilst moving, you could always press it while in midair, as it doesn't interfere with air accel
my point is, maybe it is a bug, but it has become a feature and part of gameplay
As other commenters have said, it has moved from being a bug to being an accepted feature and changing at this point causes more disruption than benefit.
@alfred-valve I'm not sure about other games, but in TFC the behavior is different depending on which OS the server is run from. As @tehORiON said, "On Linux +use will slow the player as if they are pushing/pulling a pushable object... and on Windows +use does not slow the player". This at the very least should be fixed imo.
I just installed CS 1.6 and +use doesn't seem to be slowing at all no matter what server I join. @LevShisterov are you sure CS slows you? I can't seem to get myself to slow no matter what server I join.
Okay, I think I see the TFC issue
Actually, I cannot reproduce the TFC issue using the beta client, both win32 and linux behave the same when +use is pressed.
@alfred-valve Is the win32 beta client available?
Orion, to get the beta just right click on Half-Life in steam, go the properties menu, go to the beta tab, and select the beta from the pulldown menu. The beta should convert/update your install automatically, but if it doesn't, go the local files tab under properties and select the "Verify" option.
Ah, Thanks!