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

[CS:GO] Blocking Friendly Fire, Enable Molotov/Ince damage for Retakes/5v5


Post New Thread Reply   
 
Thread Tools Display Modes
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 01-05-2020 , 11:57   Re: [CS:GO] Blocking Friendly Fire, Enable Molotov/Ince damage for Retakes/5v5
Reply With Quote #11

Cant the plugin just set the correct cvar values?
Ejziponken is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 01-05-2020 , 13:54   Re: [CS:GO] Blocking Friendly Fire, Enable Molotov/Ince damage for Retakes/5v5
Reply With Quote #12

Quote:
Originally Posted by Ejziponken View Post
Cant the plugin just set the correct cvar values?
Just don't let ff_ cvars on 0. There's no need to set them in a plugin because server owners maybe prefers different values of them.
__________________
Ilusion9 is offline
warmup.zone
New Member
Join Date: Jan 2020
Old 01-17-2020 , 12:28   Re: [CS:GO] Blocking Friendly Fire, Enable Molotov/Ince damage for Retakes/5v5
Reply With Quote #13

Quote:
Originally Posted by Ilusion9 View Post
Even with friendlyfire on 1, you must set ff_ cvars right:

PHP Code:

mp_friendlyfire 1
ff_damage_reduction_bullets 0.33
ff_damage_reduction_grenade 0.85
ff_damage_reduction_grenade_self 1
ff_damage_reduction_other 0.4 
Plugin tested and works correctly:
PHP Code:
#include <sourcemod>
#include <sdkhooks>

public OnClientPutInServer(client)
{
    
SDKHook(clientSDKHook_OnTakeDamageOnTakeDamage);
}

public 
Action OnTakeDamage(int victimint &attackerint &inflictorfloat &damageint &damagetypeint &weaponfloat damageForce[3], float damagePosition[3])
{
    
// Invalid attacker or self damage
    
if (attacker || attacker MaxClients || attacker == victim || inflictor 1)
    {
        return 
Plugin_Continue;
    }
    
    
// Frienly fire
    
if (GetClientTeam(attacker) == GetClientTeam(victim))
    {
        
char inflictorClass[64];
        if (
GetEdictClassname(inflictorinflictorClasssizeof(inflictorClass)))
        {
            
// C4 damage
            
if (StrEqual(inflictorClass"planted_c4"))
            {
                return 
Plugin_Continue;
            }
            
            
// Incendiary damage
            
if (StrEqual(inflictorClass"inferno"))
            {
                return 
Plugin_Continue;
            }
        }
        
        return 
Plugin_Handled;
    }
    
    return 
Plugin_Continue;

Also, you should check mp_tkpunish and mp_autokick cvars.
With these settings, mine doesn't work either.

I compiled the script you posted too
warmup.zone is offline
s777
New Member
Join Date: Jul 2020
Old 07-24-2020 , 05:24   Re: [CS:GO] Blocking Friendly Fire, Enable Molotov/Ince damage for Retakes/5v5
Reply With Quote #14

after today's update does`nt block damage to teammates
s777 is offline
mlov420
Senior Member
Join Date: May 2013
Old 07-24-2020 , 05:41   Re: [CS:GO] Blocking Friendly Fire, Enable Molotov/Ince damage for Retakes/5v5
Reply With Quote #15

Quote:
Originally Posted by s777 View Post
after today's update does`nt block damage to teammates
Same issue. No errors or anything but it's not filtering damage to teammates from weapons after tonight's update.
mlov420 is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 07-24-2020 , 06:40   Re: [CS:GO] Blocking Friendly Fire, Enable Molotov/Ince damage for Retakes/5v5
Reply With Quote #16

Quote:
Originally Posted by s777 View Post
after today's update does`nt block damage to teammates
Quote:
Originally Posted by mlov420 View Post
Same issue. No errors or anything but it's not filtering damage to teammates from weapons after tonight's update.
update sourcemod
__________________
8guawong is offline
satrax25
BANNED
Join Date: Jun 2021
Location: Usa
Old 10-07-2021 , 03:32   Re: [CS:GO] Blocking Friendly Fire, Enable Molotov/Ince damage for Retakes/5v5
Reply With Quote #17

Quote:
Originally Posted by abhishek_deshkar View Post
This plugin blocks Friendlyfire but enables incendiary/molotove damage to teammates. You might want to use this plugin for retakes.

NOTE: You don't need to change/set cvars to enable this plugin.

Installation
  1. Download and compile the latest source.
  2. Place .smx in addons/sourcemod/plugins

After installation, teammates will take only molotov/incendiary damage.
When I download it, this appears to me

Plugin failed to compile! Please try contacting the author.
SourcePawn Compiler 1.1.0
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

179084.attach(2) : fatal error 120: cannot read from file: "sdkhooks"

Compilation aborted.
1 Error.
satrax25 is offline
Send a message via ICQ to satrax25 Send a message via AIM to satrax25 Send a message via Yahoo to satrax25 Send a message via Skype™ to satrax25
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 10-07-2021 , 09:19   Re: [CS:GO] Blocking Friendly Fire, Enable Molotov/Ince damage for Retakes/5v5
Reply With Quote #18

Quote:
Originally Posted by satrax25 View Post
When I download it, this appears to me

Plugin failed to compile! Please try contacting the author.
SourcePawn Compiler 1.1.0
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

179084.attach(2) : fatal error 120: cannot read from file: "sdkhooks"

Compilation aborted.
1 Error.
you can also compile something like this yourself, i did it for you once
Attached Files
File Type: smx ff_enable_molotov.smx (3.3 KB, 150 views)
File Type: sp Get Plugin or Get Source (ff_enable_molotov.sp - 295 views - 1.1 KB)
freak.exe_uLow is offline
limitlesspluto
Member
Join Date: Aug 2020
Old 05-19-2022 , 11:12   Re: [CS:GO] Blocking Friendly Fire, Enable Molotov/Ince damage for Retakes/5v5
Reply With Quote #19

can you add hegrenade damage too? it would be 100% like faceit
__________________
Contact me on Steam: http://steamcommunity.com/id/wavypzuto
My community servers (PUG & Retake): https://wavycsgo.com
limitlesspluto 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 08:35.


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