AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to create fake damage with attacker in HAM_TAKEDAMAGE (https://forums.alliedmods.net/showthread.php?t=144540)

Max! 12-05-2010 06:00

How to create fake damage with attacker in HAM_TAKEDAMAGE
 
I need to find a way to inflict damage upon someone while saving the person attacking him. When i use fm_fakedamage, it saves the attacker as the world, instead of the client attacking him, so I need to find a method to create damage whose attacker I can detect with Ham_TakeDamage. Thanks in advance ;)

hleV 12-05-2010 06:24

Re: How to create fake damage with attacker in HAM_TAKEDAMAGE
 
Code:
ExecuteHamB(victim, inflictor, attacker, Float:damage, damagebits);

meTaLiCroSS 12-05-2010 10:57

Re: How to create fake damage with attacker in HAM_TAKEDAMAGE
 
Quote:

Originally Posted by hleV (Post 1363601)
Code:
ExecuteHamB(Ham_TakeDamage, victim, inflictor, attacker, Float:damage, damagebits);



All times are GMT -4. The time now is 11:24.

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