Raised This Month: $60 Target: $400
 15% 

[CSGO] Request help/plugin with damage through teammates


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 08-21-2019 , 11:57   [CSGO] Request help/plugin with damage through teammates
Reply With Quote #1

Im trying to figure out how I can get full damage by shooting through teammates.

What I tried:
sm_cvar ff_damage_reduction_bullets 1/0
sm_cvar sv_penetration_type 1/0
mp_solid_teammates 0

I cant get any combo of these cvars to give me the full damage. When doing headshot, full damage gives me 110 but if Im shooting through teammate, the damage is only 71 or lower.

Also tried:
Code:
public Action TraceAttack(int victim, int &attacker, int &inflictor, float &damage, int &damagetype, int &ammotype, int hitbox, int hitgroup)
{
	if (IsValidClient(attacker) && IsValidClient(victim)) {
		if (GetClientTeam(attacker) == GetClientTeam(victim))
		{
			return Plugin_Handled;
		}
	}
	return Plugin_Continue;
}
So, does anyone have any idea on how to make this work? With cvars or code? I tried a few noblock/bullet filter/hide plugins but none of them are giving me full damage.
Ejziponken is offline
ShD3luxe
Member
Join Date: Aug 2019
Location: Localhost
Old 08-23-2019 , 06:02   Re: [CSGO] Request help/plugin with damage through teammates
Reply With Quote #2

You can try to draw a ray from the attacker and check if there is any teammate and enemy in front of him when the OnTakeDamage event is triggered and if there is increase the damage manually for the enemy. Is just an idea it may help you.

Last edited by ShD3luxe; 08-23-2019 at 06:05.
ShD3luxe is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 08-26-2019 , 09:37   Re: [CSGO] Request help/plugin with damage through teammates
Reply With Quote #3

try this

https://forums.alliedmods.net/showpo...4&postcount=37
__________________
8guawong is offline
Brum Brum
Junior Member
Join Date: Mar 2017
Old 08-26-2019 , 17:45   Re: [CSGO] Request help/plugin with damage through teammates
Reply With Quote #4

PHP Code:
ff_damage_bullet_penetration 1
ff_damage_reduction_bullets 1
ff_damage_reduction_grenade 1
ff_damage_reduction_grenade_self 1
ff_damage_reduction_other 1
mp_friendlyfire 1 
Brum Brum 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 16:06.


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