Raised This Month: $ Target: $400
 0% 

CS:GO - Tagging "Slowing Down When Attacked"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 10-24-2015 , 12:42   CS:GO - Tagging "Slowing Down When Attacked"
Reply With Quote #1

Hey, I currently have this plugin I tweaked with to make damage values to players be 0.
I was wondering if there's a way to DISABLE "Tagging" or "getting slowed down when attacked" since I don't want players to have God-Mode as I want them to die to natural/environmental causes but I don't want them to be slowed down when other players attack them.

Here's the code I currently use:
Code:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>

public OnPluginStart()
{
    for (new client = 1; client <= MaxClients; client++) 
    { 
        if (IsClientInGame(client)) 
        {
            SDKHook(client, SDKHook_OnTakeDamage, TakeDamageHook);
        }
    }
}

public OnClientPutInServer(client)
{
    SDKHook(client, SDKHook_OnTakeDamage, TakeDamageHook);
}

public Action TakeDamageHook(client, &attacker, &inflictor, &Float:damage, &damagetype)
{
    if ( (client>=1) && (client<=MaxClients) && (attacker>=1) && (attacker<=MaxClients) && (attacker==inflictor) )
    {
        damage *= 0;
        return Plugin_Changed;
    }
    return Plugin_Continue;
}
Would love to hear a response ASAP

Last edited by OSWO; 10-24-2015 at 12:43. Reason: Edit
OSWO is offline
 



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 22:36.


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