View Single Post
alcybery
Member
Join Date: Apr 2016
Old 06-27-2018 , 18:40   Re: [L4D2] Constant survivor speed
Reply With Quote #5

Something like this?
PHP Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart()
{
    
HookEvent("player_hurt"Event_PlayerHurt);
}

public 
Action Event_PlayerHurt(Handle eventchar[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(GetEventInt(event,"userid")); 

    
int iHealth GetClientHealth(client);
    if (
iHealth 40)
    {
        
SetEntPropFloat(clientProp_Send"m_flLaggedMovementValue"1.0); 
    }

Doesn't seem to work.
alcybery is offline