Raised This Month: $ Target: $400
 0% 

Remove slow down when player hurt


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Little Endian
Junior Member
Join Date: Jan 2018
Old 01-26-2018 , 12:27   Remove slow down when player hurt
Reply With Quote #1

Hi,

I would like to get your input on this. I am writing a mod for CSGO in the vein of the ZM.
By default in CSGO, every time a player gets hurt, it automatically slows him and this puts zombies at a huge disadvantage (they can't approach the survivors easily).
I would like to remove that effect.
I tried pre-hooking player_hurt and returning Plugin_Handled but it doesn't seem to work.

Do you guys have any idea how I could manage to do this?

Thanks in advance.

Last edited by Little Endian; 01-26-2018 at 20:21.
Little Endian is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 01-26-2018 , 13:31   Re: Remove slowing down when player hurt
Reply With Quote #2

Theres a hidden convar called mp_tagging_scale. Set it to 0 and it should stop them from being "tagged".
hmmmmm is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-26-2018 , 13:47   Re: Remove slowing down when player hurt
Reply With Quote #3

sm_cvar mp_tagging_scale "20"

Info here: https://forums.alliedmods.net/showthread.php?t=261392
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
_GamerX
AlliedModders Donor
Join Date: Jun 2011
Location: Fun Server
Old 01-26-2018 , 18:00   Re: Remove slowing down when player hurt
Reply With Quote #4

Quote:
Originally Posted by Franc1sco View Post
sm_cvar mp_tagging_scale "20"

Info here: https://forums.alliedmods.net/showthread.php?t=261392
Is possible this to custom player not for all?
__________________
_GamerX is offline
Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
CamerDisco
AlliedModders Donor
Join Date: Aug 2015
Location: Poland
Old 01-26-2018 , 19:55   Re: Remove slowing down when player hurt
Reply With Quote #5

Quote:
Originally Posted by _GamerX View Post
Is possible this to custom player not for all?
Did you try https://sm.alliedmods.net/new-api/co...endConVarValue ?
__________________


Max-Play.pl - the best polish servers
CamerDisco is offline
Little Endian
Junior Member
Join Date: Jan 2018
Old 01-26-2018 , 20:21   Re: Remove slow down when player hurt
Reply With Quote #6

Thank you all very much for your answers.

At the time of writing this, it didn't work on my server. What I've tried so far:
  • putting sm_cvar mp_tagging_scale "0" in server.cfg
  • putting sm_cvar mp_tagging_scale "0" in gamemode_competitive_server.cfg
  • putting sm_cvar mp_tagging_scale "0" in sourcemod/sourcemod.cfg
  • putting mp_tagging_scale "0" in sourcemod/sourcemod.cfg
  • directly typing sm_cvar mp_tagging_scale "0". Replies with [SM] Changed cvar "mp_tagging_scale" to "0" but does not actually remove tagging

Last edited by Little Endian; 01-26-2018 at 20:24.
Little Endian is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-26-2018 , 20:41   Re: Remove slow down when player hurt
Reply With Quote #7

Quote:
Originally Posted by Little Endian View Post
Thank you all very much for your answers.

At the time of writing this, it didn't work on my server. What I've tried so far:
  • putting sm_cvar mp_tagging_scale "0" in server.cfg
  • putting sm_cvar mp_tagging_scale "0" in gamemode_competitive_server.cfg
  • putting sm_cvar mp_tagging_scale "0" in sourcemod/sourcemod.cfg
  • putting mp_tagging_scale "0" in sourcemod/sourcemod.cfg
  • directly typing sm_cvar mp_tagging_scale "0". Replies with [SM] Changed cvar "mp_tagging_scale" to "0" but does not actually remove tagging
Try with value 20 or 7
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
Reiko1231
Member
Join Date: Apr 2013
Location: Russia
Old 01-27-2018 , 04:53   Re: Remove slow down when player hurt
Reply With Quote #8

You can also try Infinity-Jumping approach: prehook player_hurt and then
Code:
SetEntPropFloat(client, Prop_Send, "m_flVelocityModifier", 1.0);
Idk if it works right now in CS:GO.
Reiko1231 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode