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

HIT_HEAD Effect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 08-22-2017 , 15:15   HIT_HEAD Effect
Reply With Quote #1

When having helmet and bullet hits head TE_STREAK_SPLASH is called in normal Cs.
But in Zombie Mod.
I want when hitting Zombies in Head to call that TE_STREAK_SPLASH effect with default color.
Can anyone show me how to do that ?

Thanks.
Abhinash is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 08-22-2017 , 19:23   Re: HIT_HEAD Effect
Reply With Quote #2

Ham_TraceAttack/Ham_TakeDamage -> zp_get_user_zombie(victim) ? get_tr2 -> message_begin. The end

https://forums.alliedmods.net/showpo...26&postcount=2

Code:
/**
 * Oriented shower of tracers
 *
 * @note
 * write_byte(TE_STREAK_SPLASH)
 * write_coord(startposition.x)
 * write_coord(startposition.y)
 * write_coord(startposition.z)
 * write_coord(vector.x)
 * write_coord(vector.y)
 * write_coord(vector.z)
 * write_byte(color)
 * write_short(count)
 * write_short(base speed)
 * write_short(ramdon velocity)
 */
#define TE_STREAK_SPLASH            25
__________________








CrazY. is offline
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 08-23-2017 , 00:29   Re: HIT_HEAD Effect
Reply With Quote #3

I know that but I cant do with x,y,z coordinates.
Can you do it for me in Ham_TraceAttack ?
Abhinash is offline
Reply



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 11:24.


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