Raised This Month: $12 Target: $400
 3% 

[CS:GO REQUEST] Molotov/Bombs Damange while FF Disabled?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ItsCEED
Member
Join Date: Jun 2016
Old 11-07-2019 , 06:46   [CS:GO REQUEST] Molotov/Bombs Damange while FF Disabled?
Reply With Quote #1

As the title says, does anyone have a code on hand to share to enable molly/bomb damage while FF is disabled?

I read somewhere that is possible via CSGO settings, but it seems it's not working for me.


Also, I'm aware that there is a public plugin at the moment, but it's pretty much broken negating the C4 Damage, World Damage, and other stuff.

Last edited by ItsCEED; 11-07-2019 at 19:17.
ItsCEED is offline
Send a message via Skype™ to ItsCEED
mlov420
Senior Member
Join Date: May 2013
Old 11-09-2019 , 05:50   Re: [CS:GO REQUEST] Molotov/Bombs Damange while FF Disabled?
Reply With Quote #2

This is not my plugin, but I use it on my pub servers. Disables team damage from everything except nades/mollies. Works good, no configuration required.
Attached Files
File Type: sp Get Plugin or Get Source (ff_grenades.sp - 176 views - 1.3 KB)
File Type: smx ff_grenades.smx (4.4 KB, 57 views)
mlov420 is offline
ItsCEED
Member
Join Date: Jun 2016
Old 11-09-2019 , 18:24   Re: [CS:GO REQUEST] Molotov/Bombs Damange while FF Disabled?
Reply With Quote #3

Quote:
Originally Posted by mlov420 View Post
This is not my plugin, but I use it on my pub servers. Disables team damage from everything except nades/mollies. Works good, no configuration required.
Thank you, ill surely check it!
ItsCEED is offline
Send a message via Skype™ to ItsCEED
raj kaul
Senior Member
Join Date: Mar 2018
Location: www.lotgaming.xyz
Old 11-10-2019 , 01:30   Re: [CS:GO REQUEST] Molotov/Bombs Damange while FF Disabled?
Reply With Quote #4

i am using these settings for my servers and Franc1sco's code to block knife damage
main post

cvars
Quote:
ff_damage_reduction_bullets 0
ff_damage_reduction_grenade 0.85
ff_damage_reduction_grenade_self 1
ff_damage_reduction_other 0.4
PHP Code:
#include <sourcemod>
#include <sdkhooks>

new Handle:amigo;
new 
Handle:enemigo;

public 
OnPluginStart()
{
    
amigo CreateConVar("block_knife_teamattack""1""Enables or disable");
    
enemigo CreateConVar("block_knife_enemy""0""Enable or disable");
}

public 
OnClientPutInServer(client)
{
   
SDKHook(clientSDKHook_OnTakeDamageOnDamage);

}

public 
Action:OnDamage(victim, &attacker, &inflictor, &Float:damage, &damagetype)
{
    if(!
attacker)
        return 
Plugin_Continue;

    if(
inflictor && inflictor <= MaxClients)
    {

        new 
String:Weapon[32];
    
        new 
weapon GetEntPropEnt(inflictorProp_Send"m_hActiveWeapon");
        
GetEdictClassname(weaponWeapon32);
    
        if(
StrContains(Weapon"knife") == -1)
            return 
Plugin_Continue;


        if (
GetClientTeam(victim) == GetClientTeam(attacker) && GetConVarBool(amigo)) return Plugin_Handled;
        else if (
GetClientTeam(victim) != GetClientTeam(attacker) && GetConVarBool(enemigo)) return Plugin_Handled;
    }

    return 
Plugin_Continue;

__________________
raj kaul is offline
Reply


Thread Tools
Display Modes

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 07:01.


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