[REQ] Player speed 0 after teleport
I'm looking for a simple plugin; after a player goes through a trigger_teleport I would like that player's speed to immediately be set to 0 (mainly to prevent telehopping, in case of surf & bhop). If at all possible I'd like a cvar to disable the plugin's function entirely, because I don't want it on all maps.
Not sure if it matters in this case, but game is CS:GO. Thank you! |
Re: [REQ] Player speed 0 after teleport
1 Attachment(s)
try this: (sm_trigtele_enabled is default to zero so you will need to set it to 1 for it to work.)
|
Re: [REQ] Player speed 0 after teleport
Hey Mitch, thanks for the help, unfortunately did not work. I ensured sm_trigtele_enable was set to 1, was still able to telehop, no error logs or anything. Tested on a couple different maps.
|
Re: [REQ] Player speed 0 after teleport
1 Attachment(s)
Try this, requires DHOOKS.
sm_reset_speed_on_tp 0/1 = off/on |
Re: [REQ] Player speed 0 after teleport
Quote:
Edit: I realized "Teleport" is already defined in sdktools, can I just change: Code:
Handle temp = LoadGameConfigFile("sdktools.games"); |
Re: [REQ] Player speed 0 after teleport
Quote:
|
Re: [REQ] Player speed 0 after teleport
1 Attachment(s)
I actually just looked at the wrong entity output, this works without DHooks.
Also Deathknife, you don't need to store the value for ConVar handles, they already do, that's what ConVar.BoolValue is. |
Re: [REQ] Player speed 0 after teleport
you can just
set entity move type none teleport with velocity of 0 0 0 set move type walk |
Re: [REQ] Player speed 0 after teleport
Quote:
|
Re: [REQ] Player speed 0 after teleport
Quote:
|
All times are GMT -4. The time now is 14:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.