Talk:Adding Firing Modes to your weapons: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added some instruction on how to use localized strings in kb_act.lst in Talk)
 
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 20: Line 20:


Cheers. --[[User:AdityaGaddam|AdityaGaddam]] 14:53, 24 February 2009 (UTC)
Cheers. --[[User:AdityaGaddam|AdityaGaddam]] 14:53, 24 February 2009 (UTC)
==Suggested Merge==
It’s been suggested to merge this tutorial, but I think more examples are better to maintain understanding. The inheritance approach to adding functions is a good teaching tool for how source code and game was designed. [[User:Ninjaofsauce|Ninjaofsauce]] ([[User talk:Ninjaofsauce|talk]]) 17:45, 12 November 2024 (PST)
== Cleanup is priority ==
The suggested merge is necessary, yes, but it's secondary. The primary is that this article is written bad. Vague and opinionated, written in the first person too. Lets fix this article and then merge it. - [[User:CHILLMODEA|CHILLMODEA]] ([[User talk:CHILLMODEA|talk]]) 17:38, 8 June 2025 (PDT)

Latest revision as of 17:38, 8 June 2025

Localized string in kb_act.lst

To specify these strings in kb_act.lst, do something like "#MyMod_Firemode" (doesn't matter what this is, just have to be consistent and unique).

Now go to mymod_language.txt (so for english, this would be mymod_english.txt) and add a line like:

   "MyMod_Firemode"	"Change Fire Mode"

If you don't have a language file already, create one with the following format:

   "lang" 
   { 
       "Language" "English" 
       "Tokens" 
       {
           "MyMod_Firemode"	"Change Fire Mode"
       }
   }

You can also get a sample language file and work off of that. A good way to do this is get GCFScape and open up the gcf for hl2dm and copy/rename a file in there to your mod's resource directory and just add your extra language definitions.

Cheers. --AdityaGaddam 14:53, 24 February 2009 (UTC)

Suggested Merge

It’s been suggested to merge this tutorial, but I think more examples are better to maintain understanding. The inheritance approach to adding functions is a good teaching tool for how source code and game was designed. Ninjaofsauce (talk) 17:45, 12 November 2024 (PST)

Cleanup is priority

The suggested merge is necessary, yes, but it's secondary. The primary is that this article is written bad. Vague and opinionated, written in the first person too. Lets fix this article and then merge it. - CHILLMODEA (talk) 17:38, 8 June 2025 (PDT)