| 04-22-2009, 09:05 AM | #1 |
JASS:function Trig_Untitled_Trigger_020_Actions takes nothing returns nothing local timer Timer = CreateTimer() local integer i = 0 local boolean b = true loop call TimerStart(Timer,1.0,false,null) call TriggerSyncStart() call BJDebugMsg(R2S(TimerGetElapsed(Timer))) if not b then call PauseGame(false) endif if TimerGetElapsed(Timer) == 0.0 and b then //call PauseGame(true) call BJDebugMsg("PAUSE DETECTED") call ShowInterface(false,0.1) call EnableUserUI(false) call ShowInterface(true,0.1) call TriggerSyncStart() //call PauseGame(false) call EnableUserUI(true) set b = false endif if TimerGetElapsed(Timer) != 0.0 then set b = true endif endloop endfunction //=========================================================================== function InitTrig_Untitled_Trigger_020 takes nothing returns nothing set gg_trg_Untitled_Trigger_020 = CreateTrigger( ) call TriggerRegisterTimerEventSingle( gg_trg_Untitled_Trigger_020, 1 ) call TriggerAddAction( gg_trg_Untitled_Trigger_020, function Trig_Untitled_Trigger_020_Actions ) endfunction This script allow to detect and prevent any types of game pause. But in bug a lot in multiplayer mode, currently i trying to fix it. (it will leave brown mask and prevent orders issue (fixed in singleplayer)) |
| 04-22-2009, 04:37 PM | #2 | |
What sort of help do you need, some tests with you on battle.net ? However i don't understand the point of that. Quote:
You mean when it lags ? |
| 04-23-2009, 04:48 AM | #3 |
I mean menu and game pause. This code runs anyway, even when game is paused. |
| 04-24-2009, 04:48 PM | #4 |
AFAIK you don't pause the game when you open the menu if it's an online game (local network or battle.net) |
