Raised This Month: $ Target: $400
 0% 

[HELP][L4D] The Special Hint Box


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 06-28-2009 , 13:14   [HELP][L4D] The Special Hint Box
Reply With Quote #1

Hi, I'm a bit new to this area so please forgive me if my question is obvious. I've searched on the issue but gotten no answers.

Left 4 Dead has a special hint text. The old HL2 hint text is still there but a new one appears in L4D that appears to be independent. My issue arises when I have no idea how to access it. I've used this page so far in order to get the name of a text in association with GetUserMessageId, but I haven't seen a list that tells the L4D special hint text's name.

Anyone that can help me out here is credit to team

edit: also a way to print to this hint box would be great, thanks!

Last edited by Mecha the Slag; 06-28-2009 at 13:37.
Mecha the Slag is offline
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 06-28-2009 , 15:24   Re: [HELP][L4D] The Special Hint Box
Reply With Quote #2

alternatively a way to add lines to the left4dead_english.txt language file without actually being required to manually do so would be sweet!
Mecha the Slag is offline
Downtown1
Veteran Member
Join Date: Mar 2004
Old 06-28-2009 , 18:08   Re: [HELP][L4D] The Special Hint Box
Reply With Quote #3

If you can figure out how to access the L4D hint text box, please let the rest of us know .
Downtown1 is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 06-29-2009 , 08:18   Re: [HELP][L4D] The Special Hint Box
Reply With Quote #4

Code:
14:16:22 meta game
14:16:23 GameDLL Information
           Description: L4D - Survival
           Mod Path: E:\l4d_2\l4d\left4dead
           DLL Path: e:\l4d_2\l4d\left4dead\bin\server.dll
           Interface: ServerGameDLL005
           Engine: Left 4 Dead (2008)
           User Messages:  Name                              Index  Size 
                           Geiger                            0      1    
                           Train                             1      1    
                           HudText                           2      -1   
                           SayText                           3      -1   
                           SayText2                          4      -1   
                           TextMsg                           5      -1   
                           HudMsg                            6      -1   
                           ResetHUD                          7      1    
                           GameTitle                         8      0    
                           ItemPickup                        9      -1   
                           ShowMenu                          10     -1   
                           Shake                             11     13   
                           Fade                              12     10   
                           VGUIMenu                          13     -1   
                           Rumble                            14     3    
                           CloseCaption                      15     -1   
                           SendAudio                         16     -1   
                           RawAudio                          17     -1   
                           VoiceMask                         18     9    
                           RequestState                      19     0    
                           BarTime                           20     -1   
                           Damage                            21     -1   
                           RadioText                         22     -1   
                           HintText                          23     -1   
                           KeyHintText                       24     -1   
                           ReloadEffect                      25     4    
                           PlayerAnimEvent                   26     -1   
                           AmmoDenied                        27     2    
                           UpdateRadar                       28     -1   
                           KillCam                           29     -1   
                           MarkAchievement                   30     -1   
                           Splatter                          31     1    
                           SplatterClear                     32     0    
                           MessageText                       33     -1   
                           TransitionRestore                 34     0    
                           Spawn                             35     1    
                           CreditsLine                       36     -1   
                           CreditsMsg                        37     0    
                           StatsCrawlMsg                     38     0    
                           StatsSkipState                    39     2    
                           ShowStats                         40     -1   
                           MusicCmd                          41     -1   
                           WitchBloodSplatter                42     -1   
                           AchievementEvent                  43     -1   
                           PZDmgMsg                          44     -1   
                           HideLoadingPlaque                 45     0    
                           VoteRegistered                    46     1    
                           DisconnectToLobby                 47     0    
                           CallVoteFailed                    48     1    
                           SteamWeaponStatData               49     -1   
                           SPHapWeapEvent                    50     4    
                           HapDmg                            51     -1   
                           HapPunch                          52     -1   
                           HapSetDrag                        53     -1   
                           HapSetConst                       54     -1   
                           HapMeleeContact                   55     0    
           56 user messages in total
KeyHintText maybe?
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Downtown1
Veteran Member
Join Date: Mar 2004
Old 06-30-2009 , 17:35   Re: [HELP][L4D] The Special Hint Box
Reply With Quote #5

What does all that stuff mean? I would love to be able to send custom text messages in L4D like scores or spawn notifications etc.
Downtown1 is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 06-30-2009 , 20:14   Re: [HELP][L4D] The Special Hint Box
Reply With Quote #6

As you can see they're called user messages. Look at usermessages.inc to see how to create them.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 07-01-2009 , 16:10   Re: [HELP][L4D] The Special Hint Box
Reply With Quote #7

I looked at usermessages.inc, and the wiki. There isn't much on how to use the stuff. But I agree Downtown, it would be awesome to be able to send custom messages.
Thraka is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 07-03-2009 , 09:48   Re: [HELP][L4D] The Special Hint Box
Reply With Quote #8

Yea I looked aswell and there isn't much of anything on it.
Dragonshadow is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-03-2009 , 11:44   Re: [HELP][L4D] The Special Hint Box
Reply With Quote #9

Quote:
Originally Posted by BAILOPAN View Post
The message contents are encoded by the mod. Unfortunately you pretty much have to reverse engineer them yourself if you're not visible from the SDK.
Luckily the L4D SDK shows how KeyHintText is used, something along these lines:

Code:
KeyHintText(client, const String:message[]) {     new Handle:hBf = StartMessageOne("KeyHintText", client);     if(hBf)     {         BfWriteByte(hBf,   1);         BfWriteString(hBf, message);         EndMessage();     } }
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
The JCS
AlliedModders Donor
Join Date: Jan 2007
Location: Brazil
Old 07-03-2009 , 18:57   Re: [HELP][L4D] The Special Hint Box
Reply With Quote #10

Quote:
Originally Posted by DJ Tsunami View Post
Luckily the L4D SDK shows how KeyHintText is used, something along these lines
Is there a real SDK? With the L4D engine?

Last edited by The JCS; 07-03-2009 at 18:57. Reason: Remove the code box
The JCS is offline
Send a message via MSN to The JCS
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 21:27.


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