ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Quick clarification

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  02:50:16  4 November 2012
profilee-mailreply Message URLTo the Top
Senior Resident

On forum: 06/19/2012
Messages: 158
Quick clarification

I'm using the CoP style loading screen mod that gives you the "Press any key to enter the zone" etc prompt. I understand that this checks for the presence of a level and gives you that prompt if it finds one (so it doesn't work on the initial loadscreen that starts the game).

Given this idea, I'm assuming that it checks for a level that you leave, and not the one you enter.

This is a section of the code it adds to the ui_main_menu.script

if level.present() and not press_any_key_on_start then
        self.start_btn:SetText("Press any key to enter the Zone")
        self.alpha = 0
        local con=get_console()
        con:execute("snd_volume_eff 0")
        con:execute("snd_volume_music 0")
		self.tmr = profile_timer() -- создаем таймер
		self.tmr:start() -- запускаем его

My question is, is there a function that determines the level name (I've looked in lua_help.script and found
 function level_name(const alife_simulator*, number);

but this is completely alien to me as to how it works and how I would even use it if it is indeed what I need), and if I were to use it, would it determine the level name from the level I've left or the level I'm about to enter?
  18:18:49  24 November 2012
profilee-mailreply Message URLTo the Top
On forum: 07/31/2011
Messages: 37
The function will return this name. I'm currently on the Brain Scorcher task and returns the string "l10u_bunker"
Each word should be at least 3 characters long.
Search conditions:    - spaces as AND    - spaces as OR   
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion

All short dates are in Month-Day-Year format.


Copyright © 1995-2021 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.