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

Combining effects of show_dhudmessage and CreateHudSyncObj


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 04-30-2015 , 20:15   Combining effects of show_dhudmessage and CreateHudSyncObj
Reply With Quote #1

Hello.

I'm quite new to this and my skills are rather limited and I'd like some help in editing default miscstats to my liking. Maybe someone will like this idea as well, who knows.

Now, by default when plugin is displaying multikill message along with amount of headshots (not the one that just shows your current killstreak, don't confuse those two!), the message is displayed in a way like letters are at first kinda white, but then gradually are getting filled with the desired color (red, in my case).

I assume it's done thanks to ShowSyncHudMsg
Code:
ShowSyncHudMsg(0, g_left_sync, g_MultiKillMsg[a], name, LANG_PLAYER, "WITH", g_multiKills[id][0], LANG_PLAYER, "KILLS", g_multiKills[id][1], LANG_PLAYER, "HS")
Where g_left_sync is previously declared as g_left_sync = CreateHudSyncObj()
From what I understand from here, it just overlaps the same message numerous times.

Now, I also really like director's hud. It's a lot bigger and looks quite badass. But I can't get this "overlapping" effect to happen on show_dhudmessage, even though I've been digging through amxmodx.inc for a whole hour now.

Does anyone knows how can I basically make message to appear using a director's hud, but with an overlapping color effect from showsynchudmsg?
Hammerfallerz is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 05-01-2015 , 03:39   Re: Combining effects of show_dhudmessage and CreateHudSyncObj
Reply With Quote #2

Director HUD messages are stack-based. That means, every new message will use next free channel (8 channels max), than it starts from the beginning.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 05-01-2015 , 04:57   Re: Combining effects of show_dhudmessage and CreateHudSyncObj
Reply With Quote #3

So how do I get the effect I've described before? Print the same message 8 times, but with different RGB in each message?
Hammerfallerz 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 10:00.


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