General > Discussion

setting up a target, green or red

<< < (2/2)

DarkRain:
But we do have:

--- Code: ---g_combat.cpp:38:#define MAX_WALL_THICKNESS_FOR_SHOOTING_THROUGH 8
--- End code ---
Which is used at g_combat.cpp:1061 when a shot goes through an obstacle, so the game does care about thickness, just in a buggy way apparently.

Sandro:

--- Quote from: DarkRain on June 03, 2017, 04:08:49 am ---But we do have:

--- Code: ---g_combat.cpp:38:#define MAX_WALL_THICKNESS_FOR_SHOOTING_THROUGH 8
--- End code ---
Which is used at g_combat.cpp:1061 when a shot goes through an obstacle, so the game does care about thickness, just in a buggy way apparently.

--- End quote ---

It doesn't, since G_Trace() does not work as expected by the author of this code.
At the end, it indirectly calls SV_Trace(), which got a hack to avoid player and other moving objects being caught in solids -- and also disables solidity check for firing from INSIDE the solids.
That effectively disables the wall thickness checking code.

Navigation

[0] Message Index

[*] Previous page

Go to full version