Skip to content

Commit 191b177

Browse files
committed
add bridgeApi / fix FX_KillEffect call / add rtx and map conf's
1 parent 2334e61 commit 191b177

File tree

19 files changed

+1063
-266
lines changed

19 files changed

+1063
-266
lines changed

assets/rtx.conf

Lines changed: 96 additions & 56 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rtx.postfx.enableChromaticAberration = True
2+
rtx.postfx.chromaticAberrationAmount = 0.85
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
rtx.skyBrightness = 2.0
2+
rtx.bloom.burnIntensity = 5.0
3+
rtx.froxelMaxDistance = 4000
4+
rtx.froxelDepthSliceDistributionExponent = 2
5+
rtx.fogRemapColorMultiscatteringScale = 0.5
6+
rtx.volumetricTransmittanceColor = 0.93, 0.93, 0.93
7+
rtx.localtonemap.boostLocalContrast = True
8+
rtx.localtonemap.exposure = 1.9
9+
rtx.localtonemap.exposurePreferenceSigma = 4.5
10+
rtx.localtonemap.exposurePreferenceOffset = 0.1
11+
rtx.localtonemap.finalizeWithACES = True
12+
rtx.localtonemap.highlights = 3.5
13+
rtx.localtonemap.mip = 2
14+
rtx.localtonemap.shadows = 2.6

assets/t4rtx/map_settings.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
//
99
// mapname fog dist fog color sun direction sun color sun intensity sky
1010
// ------------------------------------------------------------------------------------------------------------------
11-
nazi_zombie_prototype, 7000, 200,200,220, 0.828,0.253,-0.500, 163.2,216.8,255.0, 0.75, 2
11+
nazi_zombie_prototype, 7000, 250,250,250, 0.828,0.253,-0.500, 163.2,216.8,255.0, 0.75, 2
1212

1313

1414
#CULL // [X: CELL to tweak](indices of cells always rendered when in X) -> display cell indices using dvar 'r_showCellIndex'
15-
nazi_zombie_prototype, [5](0 2 4 6)
15+
nazi_zombie_prototype, [2](0 3), [3](0 5), [4](0 2 3), [5](0 2 3 4 6)
1616

1717
#MARKER // [NUM](X Y Z), [NUM](X Y Z), ... (0-99)
18-
nazi_zombie_prototype, [0](0 0 70)
18+
nazi_zombie_prototype, [0](0 0 100)
1919

2020
#API_CONFIGVARS // conf, conf, conf (Always tries to load the .conf of the currently loaded map, even if not specified. Can be chained with additional configs)
21-
// nazi_zombie_prototype, chromatic.conf
21+
nazi_zombie_prototype, chromatic.conf

deps/bridge_api/bridge_c.h

Lines changed: 404 additions & 0 deletions
Large diffs are not rendered by default.

deps/premake/bridge_api.lua

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
bridge_api = {
2+
source = path.join(dependencies.basePath, "bridge_api"),
3+
}
4+
5+
function bridge_api.import()
6+
links { "bridge_api" }
7+
bridge_api.includes()
8+
end
9+
10+
function bridge_api.includes()
11+
includedirs {
12+
bridge_api.source
13+
}
14+
end
15+
16+
function bridge_api.project()
17+
project "bridge_api"
18+
language "C++"
19+
20+
bridge_api.includes()
21+
22+
files {
23+
path.join(bridge_api.source, "*.cpp"),
24+
path.join(bridge_api.source, "*.hpp"),
25+
path.join(bridge_api.source, "*.c"),
26+
path.join(bridge_api.source, "*.h"),
27+
}
28+
29+
warnings "Off"
30+
kind "None"
31+
end
32+
33+
table.insert(dependencies, bridge_api)

src/components/loader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ namespace components
99
{
1010
mem_allocator_.clear();
1111

12+
_register(new scheduler());
1213
_register(new command());
1314
_register(new map_settings());
1415

1516
if (game::is_sp)
1617
{
1718
_register(new sp::main_module());
1819
_register(new sp::fixed_function());
20+
_register(new sp::api());
1921

2022
}
2123

src/components/loader.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ namespace components
2727

2828
#include "modules/sp/main_module.hpp"
2929
#include "modules/sp/fixed_function.hpp"
30+
#include "modules/sp/api.hpp"
3031

3132
#include "modules/mp/main_module.hpp"
3233
#include "modules/mp/fixed_function.hpp"
3334

35+
#include "modules/scheduler.hpp"
3436
#include "modules/map_settings.hpp"
3537
#include "modules/flags.hpp"
3638
#include "modules/command.hpp"

0 commit comments

Comments
 (0)