Commit 9fd35d9e authored by dylan grafmyre's avatar dylan grafmyre
Browse files

automated setphys gmod interaction, hammer is left manual

parent 855a018d
......@@ -149,18 +149,16 @@ maps/%.bsp: %.bsp
mkdir -p "$(MOD_DIR)/mapsrc"
ln -f "$^" "$(MOD_DIR)/maps/setphys.bsp"
ln -f "$(^:.bsp=.vmf)" "$(MOD_DIR)/mapsrc/setphys.vmf"
ln -f "lua/map_edit.lua" "$(MOD_DIR)/lua/autorun/runme.lua"
# open vmf in hammer
"$(VBIN_DIR)/hammer.exe" "$(MOD_DIR)/mapsrc/setphys.vmf" &
sleep 2
./workarounds/setphys.exe &
# open bsp in game via map_edit
$(SHLEX_BIN) $(SHLEX_FLAGS) $(SHLEX_HL2LOG_FLAGS) \
"'$(GAME_DIR)$(GAME)'" -allowdebug $(VBIN_FLAGS) $(GAME_FLAGS) $(GAME_TTT_FLAGS) \
+sv_cheats 1 +map_edit setphys
rm -v \
"$(MOD_DIR)/lua/autorun/runme.lua" \
"$(MOD_DIR)/mapsrc/setphys.vmf" \
"$(MOD_DIR)/maps/setphys.bsp"
rm -v "$(MOD_DIR)/maps/setphys.bsp"
rm -i "$(MOD_DIR)/mapsrc/setphys.vmf"
%.nav: %.bsp
./workarounds/nav_generate.exe &
......
SetKeyDelay, 50 ; 20/sec
Sleep, 30000 ; 30 sec
Send, {``}
Sleep, 2000 ; 2 sec
Send, hammer_update_entity prop_physics{;}hammer_update_entity prop_physics_multiplayer{;}quit{Enter}
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