Jump to content

[Help] Race Gamemode Question


.:HyPeX:.

Recommended Posts

Posted

Hello everyone, i've been searching throught every script in the race gamemode, and i cant find anywhere where this is being done (The "Waiting for other Players..")

Does anybody know?

Greetz

HyPeX

Image:

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

Posted

You'll find the text itself under race_server.lua;

function updateNotReadyText() 
    if howManyPlayersNotReady() == 0 then 
        deactiveNotReadyText() 
    end 
    if g_NotReadyDisplay then 
        -- Make sure all ready players are observers 
        for i,player in ipairs(g_Players) do 
            if isPlayerNotReady(player) then 
                textDisplayRemoveObserver(g_NotReadyDisplay, player) 
            else 
                if not textDisplayIsObserver(g_NotReadyDisplay, player) then 
                    textDisplayAddObserver(g_NotReadyDisplay, player) 
                    g_NotReadyDisplayOnTime = getTickCount() 
                end 
            end 
        end 
        -- Only show 'Waiting for other players...' if there actually are any other players 
        if getTotalPlayerCount() > 1 then 
            textItemSetText(g_NotReadyTextItems[1], 'Waiting for other players...' ) 
        end 
    end 
end 

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

Thanks! thought i did the search with the text editor every file and didnt found it.. :?

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...