Fixed BF2 Bugs

From Forgotten Hope Wiki

Contents

Parallax shader bug

This bug results in objects using the parallax shader technique (typically sandbags) becoming seriously corrupted-looking after a mixed-settings shader permutation. This error is fixed in the FH2 shaders.

Examples of this bug: 1 2

Shader permutation

Regression in BF2 1.21.

In BF2 v1.00, a mod could define their own shaders and everything worked. As part of the support for the Special Forces expansion (v1.21), this mechanism was broken such that the vanilla shaders were the only ones used (except if you set a flag isNightMap to use the special forces shaders instead).

The workaround for this bug was to write a shim which shuffles files around and calls BF2 as normal. This is fh2.exe and the source is provided.

Capture point minNrToTakeControl unimplemented

Implemented in FH2.

Capture point onlyTakableByTeam enforced on neutral flags

And so defending such flags was hopeless. Fixed in FH2.

Unhelpful weighting of ticket bleed with area value

In FH2 bleeds works in the same way as BF1942. This enables maps with large number of control points where all are needed to stop a bleed to have reasonable bleed speeds.

Staticmesh texture filtering

Staticmeshes used linear filtering for miniaturisation. Now uses anisotropic filtering (looks better at acute view angles without any measurable fillrate loss).