Tutorials

Env_Hudhint



Env_Hudhint tutorial

This tutorial will require you to modify some files, so be sure to make a backup before you proceed! This tutorial will also require that you have a GCF-unpacker utility. GCFScape is recommended.

1.) The text file

In order for the hudhint to work, you must edit a text file named valve_english.txt, which you must obtain by opening the half-life 2 content.gcf and look it up in the resource folder. Now, if you didn’t use the Create a Mod option in the SDK (i.e. you are not making a mod) you must create a new folder in the hl2 folder named resource (if it isn’t there already)

Something like this : D:\Valve\Steam\SteamApps\username\half-life 2\hl2\resource

Then, extract the valve_english.txt file from the GCF into this folder. Open up the text file, you’ll see that there is nothing confusing about it (no programming skills needed) It should be something like this :

"lang" 
{ 
"Language" "English" 
"Tokens" 
{ 
"Valve_Listen_MapName"			"Map"
"Valve_Movement_Title"			"MOVEMENT"
"Valve_Move_Forward"			"Move forward"
"Valve_Move_Back"			"Move back"
"Valve_Turn_Left"			"Turn left"
"Valve_Turn_Right"			"Turn right"
"Valve_Move_Left"			"Move left (strafe)"
"Valve_Move_Right"			"Move right (strafe)"
"Valve_Jump"				"Jump"
"Valve_Duck"				"Duck"



Bla bla bla and so on…

Scroll down to the end of the file and create your hint referring to the existed strings. For example :

"Valve_Hud_SQUAD_FOLLOWING" "SQUAD FOLLOWING"
"Valve_Hud_SQUAD_STATIONED" "SQUAD STATIONED"

"NightFall_Hint_USEHeal" "%+use% TO ADMINISTER FIRST AID"
"NightFall_Hint_USEknock" "%+use% TO KNOCK ON LOCKED DOOR"


}
}
Then go to your map, create an env_hudhint in it, give it a name, then in the “Hint Text (localized)” tab, type in your hint name, in my case, I would type in “NightFall_Hint_USEHeal” without the quotes.

news post image

Set a trigger to show the message, and voila! It should work fine. Remember, if you didn’t use the Create a Mod function, include the valve_english.txt with your map or else others won’t be able to see it.

CREMATOR666

View comments ( 4 )

Back to top