Raised This Month: $32 Target: $400
 8% 

so i added something from zm mod to my codmod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alahmoh
Member
Join Date: Jun 2018
Old 02-27-2022 , 07:49   so i added something from zm mod to my codmod
Reply With Quote #1

Solved.

Last edited by Alahmoh; 02-27-2022 at 12:34. Reason: solved
Alahmoh is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-27-2022 , 07:52   Re: so i added something from zm mod to my codmod
Reply With Quote #2

Code:
show_icon(id) { static rgb[3]; new status; message_begin(MSG_ONE_UNRELIABLE, g_MsgDamage, _, id) write_byte(status); // status (0=hide, 1=show, 2=flash) write_string("dmg_cold"); // sprite name write_byte(rgb[0]); // red write_byte(rgb[1]); // green write_byte(rgb[2]); // blue message_end(); }

This is completely wrong and is not what the "Damage" message arguments are.

https://wiki.alliedmods.net/Half-Lif..._Events#Damage
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Alahmoh
Member
Join Date: Jun 2018
Old 02-27-2022 , 07:55   Re: so i added something from zm mod to my codmod
Reply With Quote #3

Code:
message_begin(MSG_ONE_UNRELIABLE, g_MsgDamage, _, Target) 
		write_byte(0) 
		write_byte(0) 
		write_long(DMG_DROWN) 
		write_coord(0) 
		write_coord(0) 
		write_coord(0) 
		message_end()
i studied it a little bit and i got this solution worked

Last edited by Alahmoh; 02-27-2022 at 12:07.
Alahmoh is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-27-2022 , 13:38   Re: so i added something from zm mod to my codmod
Reply With Quote #4

But what's the point in using it with all arguments set to 0?
According to the arguments used, I'm pretty sure you're looking for "StatusIcon", not "Damage".

https://wiki.alliedmods.net/Half-Lif...nts#StatusIcon
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Alahmoh
Member
Join Date: Jun 2018
Old 02-27-2022 , 14:18   Re: so i added something from zm mod to my codmod
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
But what's the point in using it with all arguments set to 0?
According to the arguments used, I'm pretty sure you're looking for "StatusIcon", not "Damage".

https://wiki.alliedmods.net/Half-Lif...nts#StatusIcon
yep.
Alahmoh 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 19:26.


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