Commit 0ac4cf8e authored by dylan grafmyre's avatar dylan grafmyre
Browse files

try to wait/sleep in gmod, it doesn't exist, going to do it badly with

lua soon
parent b76ff402
......@@ -56,18 +56,18 @@ MOUNT_FLAGS?=--mod-dir "'$(MOD_DIR)'"
ifeq ($(GAME),0)
echo "user disabled run game via GAME=0"
else
$(SHLEX_BIN) $(SHLEX_FLAGS) "'$(GAME_DIR)$(GAME)'" -allowdebug $(VBIN_FLAGS) +ttt_preptime_seconds 3 +ttt_firstpreptime_seconds 3 +gamemode terrortown +ttt_debug_preventwin 1 +ttt_minimum_players 1 +map $(notdir $(basename $^))
$(SHLEX_BIN) $(SHLEX_FLAGS) "'$(GAME_DIR)$(GAME)'" -allowdebug $(VBIN_FLAGS) +mat_specular 1 +ttt_preptime_seconds 3 +ttt_firstpreptime_seconds 3 +gamemode terrortown +ttt_debug_preventwin 1 +ttt_minimum_players 1 +map $(notdir $(basename $^))
endif
%.game-mount: addons/%/.mount
ifeq ($(GAME),0)
echo "user disabled run game via GAME=0"
else
$(SHLEX_BIN) $(SHLEX_FLAGS) "'$(GAME_DIR)$(GAME)'" -allowdebug $(VBIN_FLAGS) +ttt_preptime_seconds 3 +ttt_firstpreptime_seconds 3 +gamemode terrortown +ttt_debug_preventwin 1 +ttt_minimum_players 1 +map $(notdir $(^:/.mount=))
$(SHLEX_BIN) $(SHLEX_FLAGS) "'$(GAME_DIR)$(GAME)'" -allowdebug $(VBIN_FLAGS) +mat_specular 1 +ttt_preptime_seconds 3 +ttt_firstpreptime_seconds 3 +gamemode terrortown +ttt_debug_preventwin 1 +ttt_minimum_players 1 +map $(notdir $(^:/.mount=))
endif
%.game-only:
$(SHLEX_BIN) $(SHLEX_FLAGS) "'$(GAME_DIR)$(GAME)'" -allowdebug $(VBIN_FLAGS) +ttt_preptime_seconds 3 +ttt_firstpreptime_seconds 3 +gamemode terrortown +ttt_debug_preventwin 1 +ttt_minimum_players 1 +map $(notdir $(basename $@))
$(SHLEX_BIN) $(SHLEX_FLAGS) "'$(GAME_DIR)$(GAME)'" -allowdebug $(VBIN_FLAGS) +mat_specular 1 +ttt_preptime_seconds 3 +ttt_firstpreptime_seconds 3 +gamemode terrortown +ttt_debug_preventwin 1 +ttt_minimum_players 1 +map $(notdir $(basename $@))
maps/%.bsp: %.bsp
......@@ -111,10 +111,10 @@ maps/%.bsp: %.bsp
+sv_cheats 1 +buildcubemaps +disconnect +mat_specular 1 +quit
%.cubehdr: %.bsp
$(SHLEX_BIN) $(SHLEX_FLAGS) "'$(GAME_DIR)$(GAME)'" -allowdebug $(VBIN_FLAGS) \
+mat_specular 0 +map $(notdir $(basename $^)) \
+sv_cheats 1 +buildcubemaps +disconnect +sv_cheats 0 \
+mat_hdr_level 0 +map $(notdir $(basename $^)) \
+sv_cheats 1 +buildcubemaps +disconnect +mat_specular 1 +quit
+mat_specular 0 +map $(notdir $(basename $^)) +lua_openscript helloworld.lua \
+sv_cheats 1 +buildcubemaps +lua_openscript helloworld.lua +disconnect +sv_cheats 0 \
+mat_hdr_level 0 +map $(notdir $(basename $^)) +lua_openscript helloworld.lua \
+sv_cheats 1 +buildcubemaps +lua_openscript helloworld.lua +disconnect +mat_specular 1 +quit
# only ents works on an existing bsp,
# which are not typically left "in place" for this operation
......
function wait(time)
local duration = os.time() + time
while os.time() < duration do end
end
print( "Hello world before" )
print( os.time() )
wait(1000)
print( "Hello world after" )
print( os.time() )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment