Commit 3d196088 authored by dylan grafmyre's avatar dylan grafmyre
Browse files

cubemap generation tools

parent e3fa0c8e
.SECONDARY:
#
PROJECT_DIR?=C:\\hammer\ttt_terrorcon
......@@ -55,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) +map $(notdir $(basename $^)) +gamemode terrortown +ttt_debug_preventwin 1 +ttt_preptime_seconds 10 +ttt_minimum_players 1
$(SHLEX_BIN) $(SHLEX_FLAGS) "'$(GAME_DIR)$(GAME)'" -allowdebug $(VBIN_FLAGS) +gamemode terrortown +ttt_debug_preventwin 1 +ttt_preptime_seconds 10 +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) +map $(notdir $(^:/.mount=)) +gamemode terrortown +ttt_debug_preventwin 1 +ttt_preptime_seconds 10 +ttt_minimum_players 1
$(SHLEX_BIN) $(SHLEX_FLAGS) "'$(GAME_DIR)$(GAME)'" -allowdebug $(VBIN_FLAGS) +gamemode terrortown +ttt_debug_preventwin 1 +ttt_preptime_seconds 10 +ttt_minimum_players 1 +map $(notdir $(^:/.mount=))
endif
%.game-only:
$(SHLEX_BIN) $(SHLEX_FLAGS) "'$(GAME_DIR)$(GAME)'" -allowdebug $(VBIN_FLAGS) +map $(notdir $(basename $@)) +gamemode terrortown +ttt_debug_preventwin 1 +ttt_preptime_seconds 10 +ttt_minimum_players 1
$(SHLEX_BIN) $(SHLEX_FLAGS) "'$(GAME_DIR)$(GAME)'" -allowdebug $(VBIN_FLAGS) +gamemode terrortown +ttt_debug_preventwin 1 +ttt_preptime_seconds 10 +ttt_minimum_players 1 +map $(notdir $(basename $@))
maps/%.bsp: %.bsp
......@@ -104,6 +105,17 @@ maps/%.bsp: %.bsp
mv $(@:_hdr_final.bsp=.bsp) $@
$(GEN_BSPZIP_ADDLIST_BIN) $(GEN_BSPZIP_ADDLIST_FLAGS) $^ > $(@:.bsp=.bspzip-addlist)
%.cubeldr: %.bsp
$(SHLEX_BIN) $(SHLEX_FLAGS) "'$(GAME_DIR)$(GAME)'" -allowdebug $(VBIN_FLAGS) \
+mat_specular 0 +map $(notdir $(basename $^)) \
+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
# only ents works on an existing bsp,
# which are not typically left "in place" for this operation
#%_ents.bsp: %.vmf
......
Supports Markdown
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