AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   CS:GO slow when hit (https://forums.alliedmods.net/showthread.php?t=305920)

Berva 03-09-2018 17:23

CS:GO slow when hit
 
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? (:

Indarello 03-10-2018 00:23

Re: CS:GO slow when hit
 
https://forums.alliedmods.net/showpo...28&postcount=5

Berva 03-10-2018 04:34

Re: CS:GO slow when hit
 
Thanks! But... I've tried to use that on my test server and nothing really changed :/

Rohanlogs 03-10-2018 06:04

Re: CS:GO slow when hit
 
Quote:

Originally Posted by Berva (Post 2582215)
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.

Berva 03-10-2018 07:05

Re: CS:GO slow when hit
 
I added sm_cvar mp_tagging_scale "7" in csgo/cfg/sourcemod/sourcemod.cfg
Nothing changed.

Rohanlogs 03-10-2018 13:32

Re: CS:GO slow when hit
 
Quote:

Originally Posted by Berva (Post 2582235)
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?

Berva 03-10-2018 18:16

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

srvmil 03-11-2018 08:51

Re: CS:GO slow when hit
 
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.

Indarello 03-15-2018 04:08

Re: CS:GO slow when hit
 
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);

srvmil 03-18-2018 03:00

Re: CS:GO slow when hit
 
Quote:

Originally Posted by Indarello (Post 2583097)
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




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

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