Re: [hlcoders] Get users steam lang setting
Not sure, but I always laugh when I see code like if ( g_Language.GetInt() == LANGUAGE_GERMAN ) { m_iGibModelIndex = PrecacheModel ("models/germanygibs.mdl"); } else { m_iGibModelIndex = PrecacheModel ("models/gibs/hgibs.mdl"); } that what you're looking for? > I was looking in the engine header files but couldn't see a function which > would return this value. Does any one know how to get it? > > Mark > > Perfect Dark Source > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
RE: [hlcoders] Get users steam lang setting
That call won't be reliable with orange box era games, when the SDK code comes out you should use the SteamApps()->GetAppData( , "language", ...) call to get the language the user wants to run the game in. App id would be the value you put in your mods gameinfo.txt. - Alfred > -Original Message- > From: [EMAIL PROTECTED] [mailto:hlcoders- > [EMAIL PROTECTED] On Behalf Of Mark Chandler > Sent: Wednesday, December 26, 2007 9:47 AM > To: hlcoders@list.valvesoftware.com > Subject: RE: [hlcoders] Get users steam lang setting > > Found this function: > > vgui::system()- > >GetRegistryString("HKEY_LOCAL_MACHINE\\Software\\Valve\\Stea > m\\Language", language, 128) > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Maarten De > Meyer > Sent: Thursday, December 27, 2007 2:37 AM > To: hlcoders@list.valvesoftware.com > Subject: Re: [hlcoders] Get users steam lang setting > > Not sure, but I always laugh when I see code like > > if ( g_Language.GetInt() == LANGUAGE_GERMAN ) > { > m_iGibModelIndex = PrecacheModel > ("models/germanygibs.mdl"); > } > else > { > m_iGibModelIndex = PrecacheModel ("models/gibs/hgibs.mdl"); > } > > that what you're looking for? > > > I was looking in the engine header files but couldn't see a function > which > > would return this value. Does any one know how to get it? > > > > Mark > > > > Perfect Dark Source > > > > ___ > > To unsubscribe, edit your list preferences, or view the list > archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Get users steam lang setting
Strange...do German guts look different from everyone elses? Not sure, but I always laugh when I see code like if ( g_Language.GetInt() == LANGUAGE_GERMAN ) { m_iGibModelIndex = PrecacheModel ("models/germanygibs.mdl"); } else { m_iGibModelIndex = PrecacheModel ("models/gibs/hgibs.mdl"); } that what you're looking for? I was looking in the engine header files but couldn't see a function which would return this value. Does any one know how to get it? Mark Perfect Dark Source ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
RE: [hlcoders] Get users steam lang setting
Found this function: vgui::system()->GetRegistryString("HKEY_LOCAL_MACHINE\\Software\\Valve\\Stea m\\Language", language, 128) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maarten De Meyer Sent: Thursday, December 27, 2007 2:37 AM To: hlcoders@list.valvesoftware.com Subject: Re: [hlcoders] Get users steam lang setting Not sure, but I always laugh when I see code like if ( g_Language.GetInt() == LANGUAGE_GERMAN ) { m_iGibModelIndex = PrecacheModel ("models/germanygibs.mdl"); } else { m_iGibModelIndex = PrecacheModel ("models/gibs/hgibs.mdl"); } that what you're looking for? > I was looking in the engine header files but couldn't see a function which > would return this value. Does any one know how to get it? > > Mark > > Perfect Dark Source > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Get users steam lang setting
Merry Boxing/St. Stephen's Day, Alfred! I didn't know until now that the 26th isn't a holiday in the US. I do hope you have had a relaxing vacation. :) (And, of course, same wishes to the list.) Two questions: 1. Is the ID of the engine product behind the mod (such as the current "Source SDK Base"'s 215) or will Valve start distributing IDs to mod makers? 2. Will this function be back-ported to the Ep1 engine? Thanks, ~~ Ondra On 26.12.07 18:54 Uhr, Alfred Reynolds wrote: That call won't be reliable with orange box era games, when the SDK code comes out you should use the SteamApps()->GetAppData( , "language", ...) call to get the language the user wants to run the game in. App id would be the value you put in your mods gameinfo.txt. - Alfred -Original Message- From: [EMAIL PROTECTED] [mailto:hlcoders- [EMAIL PROTECTED] On Behalf Of Mark Chandler Sent: Wednesday, December 26, 2007 9:47 AM To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] Get users steam lang setting Found this function: vgui::system()- GetRegistryString("HKEY_LOCAL_MACHINE\\Software\\Valve\\Stea m\\Language", language, 128) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maarten De Meyer Sent: Thursday, December 27, 2007 2:37 AM To: hlcoders@list.valvesoftware.com Subject: Re: [hlcoders] Get users steam lang setting Not sure, but I always laugh when I see code like if ( g_Language.GetInt() == LANGUAGE_GERMAN ) { m_iGibModelIndex = PrecacheModel ("models/germanygibs.mdl"); } else { m_iGibModelIndex = PrecacheModel ("models/gibs/hgibs.mdl"); } that what you're looking for? I was looking in the engine header files but couldn't see a function which would return this value. Does any one know how to get it? Mark Perfect Dark Source ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Get users steam lang setting
Ook wrote: Strange...do German guts look different from everyone elses? Yes. Do to some genetic defect, Germans don't actually have blood. When you shoot them, nothing comes out (at least that's what all the German politicians would have you believe). -- Jeffrey "botman" Broome ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
RE: [hlcoders] Get users steam lang setting
215 would be fine, and this function will be in the new SDK not the old one. - Alfred > -Original Message- > From: [EMAIL PROTECTED] [mailto:hlcoders- > [EMAIL PROTECTED] On Behalf Of Ondrej Hošek > Sent: Wednesday, December 26, 2007 10:02 AM > To: hlcoders@list.valvesoftware.com > Subject: Re: [hlcoders] Get users steam lang setting > > Merry Boxing/St. Stephen's Day, Alfred! I didn't know until now that > the > 26th isn't a holiday in the US. I do hope you have had a relaxing > vacation. :) (And, of course, same wishes to the list.) > > Two questions: > 1. Is the ID of the engine product behind the mod (such as the > current "Source SDK Base"'s 215) or will Valve start distributing IDs > to > mod makers? > 2. Will this function be back-ported to the Ep1 engine? > > Thanks, > ~~ Ondra > > On 26.12.07 18:54 Uhr, Alfred Reynolds wrote: > > That call won't be reliable with orange box era games, when the SDK > code > > comes out you should use the SteamApps()->GetAppData( , > > "language", ...) call to get the language the user wants to run the > game > > in. App id would be the value you put in your mods gameinfo.txt. > > > > - Alfred > > > > > >> -Original Message- > >> From: [EMAIL PROTECTED] [mailto:hlcoders- > >> [EMAIL PROTECTED] On Behalf Of Mark Chandler > >> Sent: Wednesday, December 26, 2007 9:47 AM > >> To: hlcoders@list.valvesoftware.com > >> Subject: RE: [hlcoders] Get users steam lang setting > >> > >> Found this function: > >> > >> vgui::system()- > >> > >>> GetRegistryString("HKEY_LOCAL_MACHINE\\Software\\Valve\\Stea > >>> > >> m\\Language", language, 128) > >> > >> -Original Message- > >> From: [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED] On Behalf Of Maarten > De > >> Meyer > >> Sent: Thursday, December 27, 2007 2:37 AM > >> To: hlcoders@list.valvesoftware.com > >> Subject: Re: [hlcoders] Get users steam lang setting > >> > >> Not sure, but I always laugh when I see code like > >> > >> if ( g_Language.GetInt() == LANGUAGE_GERMAN ) > >>{ > >>m_iGibModelIndex = PrecacheModel > >> ("models/germanygibs.mdl"); > >>} > >>else > >>{ > >>m_iGibModelIndex = PrecacheModel > >> > > ("models/gibs/hgibs.mdl"); > > > >>} > >> > >> that what you're looking for? > >> > >> > >>> I was looking in the engine header files but couldn't see a > function > >>> > >> which > >> > >>> would return this value. Does any one know how to get it? > >>> > >>> Mark > >>> > >>> Perfect Dark Source > >>> > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] Get users steam lang setting
What a violation of canon... Sadly, such a censored version is also sold in Austria, where the rules are less strict. Luckily, I bought the Orange Box a week before boxed release on Steam (and Steam can probably differentiate between Germany and Austria), but my friend wasn't as lucky. Maybe I should bug a Steam support person about this... ~~ Ondra On 26.12.07 18:58 Uhr, Mulchman wrote: They're green! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ook Sent: Wednesday, December 26, 2007 09:52 To: hlcoders@list.valvesoftware.com Subject: Re: [hlcoders] Get users steam lang setting Strange...do German guts look different from everyone elses? Not sure, but I always laugh when I see code like if ( g_Language.GetInt() == LANGUAGE_GERMAN ) { m_iGibModelIndex = PrecacheModel ("models/germanygibs.mdl"); } else { m_iGibModelIndex = PrecacheModel ("models/gibs/hgibs.mdl"); } that what you're looking for? I was looking in the engine header files but couldn't see a function which would return this value. Does any one know how to get it? Mark Perfect Dark Source ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
RE: [hlcoders] Get users steam lang setting
Yeah due to their politics and no violence policy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ook Sent: Thursday, December 27, 2007 2:52 AM To: hlcoders@list.valvesoftware.com Subject: Re: [hlcoders] Get users steam lang setting Strange...do German guts look different from everyone elses? > Not sure, but I always laugh when I see code like > > if ( g_Language.GetInt() == LANGUAGE_GERMAN ) > { > m_iGibModelIndex = PrecacheModel ("models/germanygibs.mdl"); > } > else > { > m_iGibModelIndex = PrecacheModel ("models/gibs/hgibs.mdl"); > } > > that what you're looking for? > >> I was looking in the engine header files but couldn't see a function >> which >> would return this value. Does any one know how to get it? >> >> Mark >> >> Perfect Dark Source >> > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders