diff --git a/src/game/g_holmes.pas b/src/game/g_holmes.pas
index e23d6c74722e265135164ee32d165f186f963d37..88edf86ca907be0d32fa0193a27b02e77fa02d65 100644 (file)
--- a/src/game/g_holmes.pas
+++ b/src/game/g_holmes.pas
var
he: THMouseEvent;
begin
+ if g_Game_IsNet then begin result := false; exit; end;
holmesInitCommands();
holmesInitBinds();
result := true;
end;
begin
+ if g_Game_IsNet then begin result := false; exit; end;
holmesInitCommands();
holmesInitBinds();
result := false;
// ////////////////////////////////////////////////////////////////////////// //
procedure g_Holmes_Draw ();
begin
+ if g_Game_IsNet then exit;
{$IF not DEFINED(HEADLESS)}
holmesInitCommands();
holmesInitBinds();
glDisable(GL_SCISSOR_TEST);
glDisable(GL_TEXTURE_2D);
- if gGameOn then
- begin
- plrDebugDraw();
- end;
+ if gGameOn then plrDebugDraw();
{$ENDIF}
laserSet := false;
procedure g_Holmes_DrawUI ();
begin
+ if g_Game_IsNet then exit;
{$IF not DEFINED(HEADLESS)}
glPushMatrix();
glScalef(g_holmes_ui_scale, g_holmes_ui_scale, 1.0);
procedure dbgToggleTraceBox (arg: Integer=-1); begin if (arg < 0) then showTraceBox := not showTraceBox else showTraceBox := (arg > 0); end;
+procedure dbgToggleHolmesPause (arg: Integer=-1); begin if (arg < 0) then g_Game_HolmesPause(not gPauseHolmes) else g_Game_HolmesPause(arg > 0); end;
+
procedure cbAtcurSelectMonster ();
function monsAtDump (mon: TMonster; tag: Integer): Boolean;
begin
cmdAdd('atcur_disable_walls', cbAtcurToggleWalls, 'disable walls', 'wall control');
cmdAdd('dbg_tracebox', dbgToggleTraceBox, 'test traceBox()', 'player control');
+
+ cmdAdd('hlm_pause', dbgToggleHolmesPause, '"Holmes" pause mode', 'game control');
end;
keybindAdd('C-1', 'mon_spawn zombie');
+ keybindAdd('C-S-P', 'hlm_pause');
+
// mouse
msbindAdd('LMB', 'atcur_select_monster');
msbindAdd('M-LMB', 'atcur_dump_monsters');