Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Upcoming Gitlab Maintenance - May 25 - 03:30 UTC (2 hours)
Open sidebar
thorsummoner
ttt_terrorcon
Commits
3d196088
Commit
3d196088
authored
Sep 11, 2021
by
dylan grafmyre
Browse files
cubemap generation tools
parent
e3fa0c8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
3d196088
.SECONDARY
:
#
PROJECT_DIR
?=
C:
\\
hammer
\t
tt_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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment