AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ H3LP ] Ham_TraceAttack? (https://forums.alliedmods.net/showthread.php?t=302157)

CrazY. 10-18-2017 17:16

[ H3LP ] Ham_TraceAttack?
 
Hello, how execute Ham_TraceAttack correctly?

Natsheh 10-18-2017 17:19

Re: [ H3LP ] Ham_TraceAttack?
 
What about testing and searching? .

CrazY. 10-18-2017 17:44

Re: [ H3LP ] Ham_TraceAttack?
 
I will test.

https://forums.alliedmods.net/showpo...3&postcount=42

HamletEagle 10-19-2017 03:01

Re: [ H3LP ] Ham_TraceAttack?
 
It's complicated. To do it properly you have to call ClearMultiDamage before TraceAttack and ApplyMultiDamage after. You need orpheu/okapi for this.

CrazY. 10-19-2017 08:28

Re: [ H3LP ] Ham_TraceAttack?
 
I want to make a knife with an p228 haha.

KiLLeR. 10-19-2017 11:28

Re: [ H3LP ] Ham_TraceAttack?
 
Quote:

Originally Posted by HamletEagle (Post 2555359)
It's complicated. To do it properly you have to call ClearMultiDamage before TraceAttack and ApplyMultiDamage after. You need orpheu/okapi for this.

Please, could you explain more about MultiDamage, because I have seen such a natives in reapi, but I can't understand what is that. :d
Code:
native rg_multidmg_clear(); native rg_multidmg_apply(const inflictor, const attacker);

HamletEagle 10-19-2017 11:47

Re: [ H3LP ] Ham_TraceAttack?
 
You have to do this:
PHP Code:

rg_multidmg_clear
ExecuteHam
(Ham_TraceAttack, ...)
rg_multidmg_apply 

If you want to know what ClearMultiDamage and ApplyMultyDamage work then look in regamedll.


All times are GMT -4. The time now is 18:45.

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