Commit Graph

2875 Commits

Author SHA1 Message Date
Jonathan 7b38f24ae8 Q2 doesn't use the old animation method 2022-06-13 07:26:23 -04:00
Jonathan b2a0f8039e remove dm/start/coop checking
remove entity target(name) checking; as mods and maps get more complex, this is best left up to the editors to use the FGD to report these things.
2022-06-13 07:10:53 -04:00
Jonathan 81686200c3 simplify illusionary line (hullnum is never > 0 for Q2 or the wrbrushes hull) 2022-06-13 07:02:02 -04:00
Jonathan 4e2e1c9bb3 default filltype to auto, which uses outside for hullnum > 0 and inside otherwise (lower leaf & node counts) 2022-06-13 06:19:58 -04:00
Jonathan 12caf1bcd4 move transsky/transwater code into portal_can_see_through 2022-06-13 02:34:39 -04:00
Jonathan d917c253c5 restore inside fill to working status 2022-06-13 02:20:34 -04:00
Jonathan 4755f23efa re-implement inside filling (not working fully yet) 2022-06-13 01:44:06 -04:00
Jonathan c5141e7a30 remove unused counters
only print nodefaces for the main BSP
2022-06-12 11:33:18 -04:00
Jonathan 4a20305077 clean up light conditional 2022-06-12 06:38:29 -04:00
Jonathan 215ae86566 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2022-06-12 03:35:49 -04:00
Jonathan 98682f41fa move brush/leaf counts into gamedef
(Q2 stores every combo currently, old code kept in case we want to use that instead)
2022-06-12 03:35:44 -04:00
Eric Wasylishen 4fde404e6b testqbsp: mark q2_liquids as [!mayfail] for now 2022-06-12 00:27:36 -06:00
Jonathan 93291b21fc Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2022-06-12 02:24:32 -04:00
Jonathan 1a88b46e8c RemapContentsForExport moved into gamedef
simplified gamedef stuff by checking which functions were still necessary, and no need to pass extended flags through at all now
detail type moved into Q1
2022-06-12 02:24:27 -04:00
Jonathan 54900cf7b6 move visblocker to a boolean 2022-06-12 01:02:31 -04:00
Eric Wasylishen c5b84d9eb7 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2022-06-11 14:07:21 -06:00
Eric Wasylishen 2c8de8b877 q2_liquids.map: add lava/water covering each other tests 2022-06-11 14:07:19 -06:00
Jonathan 13bf99a7f3 fix test cases (implement equals(game) properly, and `is_empty` is false depending on get_content_type for Q2 now)
remove unnecessary condition from Q2 contents_are_empty since areaportals are already considered a valid non-empty type via get_content_type
2022-06-11 09:19:51 -04:00
Jonathan 0dfeff934a fix test failures introduced from noclipfaces change 2022-06-11 08:38:30 -04:00
Jonathan 10676603e9 move clip & origin into game-specific code
remove hint from brush; hint is technically a surface flag rather than a content flag, so we can infer it from the sides rather than needing to store it as a unique flag (we could still cache the result somewhere but this makes it consistent between q1 and q2)
2022-06-11 08:29:55 -04:00
Jonathan be17bf7c7d fix mistype 2022-06-11 07:32:43 -04:00
Jonathan b33e792458 move clip-own-typeness over to gamedef & contentflags (fixes Q2 edge case with a solid version of a type bordering a translucent version) 2022-06-11 06:01:36 -04:00
Jonathan e61998dd54 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp
# Conflicts:
#	qbsp/surfaces.cc
2022-06-11 05:43:29 -04:00
Jonathan 8b4f9f5480 move mirrorinside to gamedef 2022-06-11 05:37:50 -04:00
Eric Wasylishen 948d3463ba testqbsp: Add q2_liquids test 2022-06-11 01:21:17 -06:00
Eric Wasylishen 5372c4a568 qbsp: fix q2 liquids not mirrored 2022-06-10 23:29:28 -06:00
Eric Wasylishen 121c6384fe q2_liquids.map: "un-default" content/surface flags in TB so they don't require a baseq2 dir to compile correctly 2022-06-10 22:15:20 -06:00
Eric Wasylishen 28c6489968 q2_liquids.map, q2_water_trans.map from Paril 2022-06-10 22:11:59 -06:00
Eric Wasylishen 3bf797d72e bspfile: build fix 2022-06-10 21:35:01 -06:00
Eric Wasylishen 64159d92f1 Merge remote-tracking branch 'github-desktop-paril/type-cleanup' into brushbsp 2022-06-10 21:32:23 -06:00
Eric Wasylishen 66063168f6 testqbsp: all q2 tests pass against these tools + q2tools-220 2022-06-10 20:30:20 -06:00
Eric Wasylishen b3cedd7fed testqbsp: adjust detail test case to pass in q2-220 tools 2022-06-10 20:21:00 -06:00
Eric Wasylishen ce1c2c2c19 qbsp_q2_detail: translate map so center doesn't get chopped in q2 tools 2022-06-10 20:18:35 -06:00
Eric Wasylishen c878a11f1d testqbsp: fix detail test expectations 2022-06-10 20:14:54 -06:00
Eric Wasylishen fc5f1573ef qbsp: simplify ShouldClipbrushEatBrush
fixes lavaclip test case
2022-06-10 20:00:42 -06:00
Eric Wasylishen d4f1707cdb qbsp: proper merging of Q2 contents 2022-06-10 19:19:00 -06:00
Eric Wasylishen 31ab4546a3 testqbsp: update playerclip test expectation to match q2tools_220 2022-06-10 19:00:19 -06:00
Eric Wasylishen 2a851f87d0 qbsp: use Q2_CONTENTS_DETAIL in Q2 mode, not CFLAGS_DETAIL 2022-06-10 18:16:03 -06:00
Jonathan 79ca3c1543 fix inversion on content types portal visibility in Q2 (opaque water, etc was considered see-through; now it correctly assumes they are solid) 2022-06-10 06:53:38 -04:00
Jonathan 812797f7ed enable lighting for warp/sky in Q2
simplify bitflag definitions
change nudging light warning to make more sense
another #define -> constexpr pass
2022-06-10 06:29:14 -04:00
Jonathan 5b4660fa63 simplify crc code 2022-06-10 04:47:10 -04:00
Jonathan 42c4060a64 canonize plane stuff into an enum type, remove duplicates
more macros into constexpr's
use options.epsilon directly instead of ON_EPSILON in qbsp
2022-06-10 04:43:56 -04:00
Jonathan 0d56c49d7a remove hardcoded lightstyles max, use config option 2022-06-10 04:22:12 -04:00
Eric Wasylishen 3c4f798e97 qbsp: add create_detail_illusionary/fence/solid_contents 2022-06-10 01:07:20 -06:00
Eric Wasylishen 014e0d8aaa qbsp: replace some contents.extended reads with new is_detail_*() getters 2022-06-10 00:07:01 -06:00
Eric Wasylishen 8c1095715c qbsp: refactor out is_detail(int32_t types = CFLAGS_DETAIL_MASK) since it's going to depend on game now 2022-06-09 23:48:26 -06:00
Eric Wasylishen 47aa1f7476 qbsp: replace is_detail() with is_any_detail(options.target_game) 2022-06-09 23:32:33 -06:00
Eric Wasylishen 5025985348 testqbsp: hide current test failures 2022-06-09 23:20:19 -06:00
Eric Wasylishen 33f1681261 bspfile.hh: updates to content type constants docs 2022-06-08 01:03:39 -06:00
Eric Wasylishen f15e3b958a testqbsp: fix some test expectations to match q2tools 2022-06-08 01:02:00 -06:00