Raised This Month: $32 Target: $400
 8% 

CS:GO slow when hit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Berva
Member
Join Date: Feb 2018
Old 03-09-2018 , 17:23   CS:GO slow when hit
Reply With Quote #1

Hey guys, I'm running surf server and I'd love to set up slow on hit (it's because ive got enabled automatic bunny hopping, so they'll slow down if they've got hit)

Any ideas? (:
Berva is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 03-10-2018 , 00:23   Re: CS:GO slow when hit
Reply With Quote #2

https://forums.alliedmods.net/showpo...28&postcount=5
Indarello is offline
Berva
Member
Join Date: Feb 2018
Old 03-10-2018 , 04:34   Re: CS:GO slow when hit
Reply With Quote #3

Thanks! But... I've tried to use that on my test server and nothing really changed :/
Berva is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 03-10-2018 , 06:04   Re: CS:GO slow when hit
Reply With Quote #4

Quote:
Originally Posted by Berva View Post
Thanks! But... I've tried to use that on my test server and nothing really changed :/
Its probably a locked cvar.
Try:
sm_cvar "cvar" "value"

Edit: There are actually exact instructions how to use this in the link above.
__________________

Last edited by Rohanlogs; 03-10-2018 at 06:08.
Rohanlogs is offline
Berva
Member
Join Date: Feb 2018
Old 03-10-2018 , 07:05   Re: CS:GO slow when hit
Reply With Quote #5

I added sm_cvar mp_tagging_scale "7" in csgo/cfg/sourcemod/sourcemod.cfg
Nothing changed.
Berva is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 03-10-2018 , 13:32   Re: CS:GO slow when hit
Reply With Quote #6

Quote:
Originally Posted by Berva View Post
I added sm_cvar mp_tagging_scale "7" in csgo/cfg/sourcemod/sourcemod.cfg
Nothing changed.
Have you made sure that the value has changed in-game?
That there's no other configs that may overwrite it?
__________________
Rohanlogs is offline
Berva
Member
Join Date: Feb 2018
Old 03-10-2018 , 18:16   Re: CS:GO slow when hit
Reply With Quote #7

Yep, I'm pretty sure, because I've done it on fresh server without any plugins :/ (I'Ve got bhop enabled tho)

Last edited by Berva; 03-10-2018 at 18:56.
Berva is offline
srvmil
Senior Member
Join Date: Oct 2010
Old 03-11-2018 , 08:51   Re: CS:GO slow when hit
Reply With Quote #8

I'm looking for this too, that sm_cvar mp_tagging_scale does not solve anything anymore I guess. Valve might have updated it.

This is what I've posted on - https://forums.alliedmods.net/showthread.php?t=273683 it works but it still need the damage being dealt with.

Last edited by srvmil; 03-11-2018 at 08:51.
srvmil is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 03-15-2018 , 04:08   Re: CS:GO slow when hit
Reply With Quote #9

Sorry, now cvar realy don't work
but m_flVelocityModifier better work for me on player_hurt
Code:
if (GetEntPropFloat(victim, Prop_Send, "m_flVelocityModifier") < 0.6) SetEntPropFloat(victim, Prop_Send, "m_flVelocityModifier", 0.6);
Indarello is offline
srvmil
Senior Member
Join Date: Oct 2010
Old 03-18-2018 , 03:00   Re: CS:GO slow when hit
Reply With Quote #10

Quote:
Originally Posted by Indarello View Post
Sorry, now cvar realy don't work
but m_flVelocityModifier better work for me on player_hurt
Code:
if (GetEntPropFloat(victim, Prop_Send, "m_flVelocityModifier") < 0.6) SetEntPropFloat(victim, Prop_Send, "m_flVelocityModifier", 0.6);
Would it be something like this? I'm not an expert at SourcePawn.

PHP Code:
#include <sourcemod>
#include <sdkhooks>
#include <sdktools>
#include <cstrike>

public OnPluginStart()
{
      
HookEvent("player_hurt",  Event_Player_Hurt);
}

public 
Event_Player_Hurt(Handle:event, const String:name[], bool:dontBroadcast)
{
    if (
GetEntPropFloat(victimProp_Send"m_flVelocityModifier") < 0.6SetEntPropFloat(victimProp_Send"m_flVelocityModifier"0.6);
    {
        return 
Plugin_Handled
    } 
    return 
Plugin_Continue


Last edited by srvmil; 03-18-2018 at 03:05.
srvmil 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 03:31.


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