skylimit hud

General Discussion about Medal of Honor: Allied Assault and Pacific Assault.

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

skylimit hud

Post by ViPER »

I have this mod running as a voteable option on our server - One problem is sometines the Hud from skylimit remains when going to standard play. It doesn't always happen - I think going spec before leaving skylimit takes care of it. but if you dont do that once you are in standard play - you have to quit MOH and come back to reset.

I was thinking of a fix or even a rcon command to wipe the hud and reset it - any suggestion?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yah I made a little mistake which allows this to happen :oops:

It's a bit tricky to fix, as the hud needs to be cleared for each player individually, whereas players join the new match at different intervals. Probably the easiest fix would be to add a thread to the map script of the map you're running after skylimit:

Code: Select all

// (...)

level waittill spawn

// add this
thread skylimit_hudfix

// (...)
end

// and this:
skylimit_hudfix:

  while(1)
  {
    for(local.i = 1; local.i <= $player.size; local.i++)
    {
        $player[local.i] waitthread global/skylimit/main.scr::cleanup_skylimit_hud
        wait 1.0
    }
    wait 1.0
  }

end
Good luck! 8-)
Image
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

Awesome,

It is a little because everything is voteable - if I cant fit it in automatically I definetley make it an rcon command and add it to the vote too.

Thanks
Post Reply