AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved [CS:GO] Attack and armor victim (https://forums.alliedmods.net/showthread.php?t=316675)

Qes 06-04-2019 13:02

[CS:GO] Attack and armor victim
 
Hello
How I can attack player, so that damage not reduced by armor/kevlar?

I don't want use something like that:
HTML Code:

int ArmorVictim = GetEntProp(victim, Prop_Send, "m_ArmorValue");

SetEntProp(victim, Prop_Send, "m_ArmorValue", 0, 1);
SDKHooks_TakeDamage(victim, attacker, attacker, damage, damagetype, weapon);

SetEntProp(victim, Prop_Send, "m_ArmorValue", ArmorVictim, 1);


8guawong 06-04-2019 13:31

Re: [CS:GO] Attack and armor victim
 
try DMG_CRUSH for damageType

Qes 06-04-2019 15:35

Re: [CS:GO] Attack and armor victim
 
Thank you


All times are GMT -4. The time now is 07:56.

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