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

[ H3LP ] Ham_TraceAttack?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 10-18-2017 , 17:16   [ H3LP ] Ham_TraceAttack?
Reply With Quote #1

Hello, how execute Ham_TraceAttack correctly?
__________________









Last edited by CrazY.; 10-18-2017 at 17:17.
CrazY. is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-18-2017 , 17:19   Re: [ H3LP ] Ham_TraceAttack?
Reply With Quote #2

What about testing and searching? .
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 10-18-2017 , 17:44   Re: [ H3LP ] Ham_TraceAttack?
Reply With Quote #3

I will test.

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








CrazY. is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-19-2017 , 03:01   Re: [ H3LP ] Ham_TraceAttack?
Reply With Quote #4

It's complicated. To do it properly you have to call ClearMultiDamage before TraceAttack and ApplyMultiDamage after. You need orpheu/okapi for this.
__________________

Last edited by HamletEagle; 10-19-2017 at 03:01.
HamletEagle is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 10-19-2017 , 08:28   Re: [ H3LP ] Ham_TraceAttack?
Reply With Quote #5

I want to make a knife with an p228 haha.
__________________








CrazY. is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 10-19-2017 , 11:28   Re: [ H3LP ] Ham_TraceAttack?
Reply With Quote #6

Quote:
Originally Posted by HamletEagle View Post
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);
KiLLeR. is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-19-2017 , 11:47   Re: [ H3LP ] Ham_TraceAttack?
Reply With Quote #7

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.
__________________

Last edited by HamletEagle; 10-19-2017 at 11:47.
HamletEagle 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 09:32.


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