UTCompOLStatsBridge v2
======================

Purpose
-------
Copies UTComp server-side hit/damage counters into OLStats accuracy counters
immediately before OLStats writes its PA lines.

v2 change
---------
OLStats can create multiple PA rows for the same base weapon, e.g. SniperRifle0,
SniperRifle4, SniperRifle9. UTComp only stores one total per base weapon.

v1 copied the same UTComp total into every matching OLStats row. That caused
hits/damage to be multiplied when a parser normalizes weapon names.

v2 copies each UTComp total only into the first matching OLStats row and leaves
duplicate OLStats rows at 0/0. This preserves correct totals after parser-side
weapon normalization/summing.

Install/compile
---------------
Place folder next to System:

UT2004/
  UTCompOLStatsBridge/classes/*.uc
  System/UTCompOLStatsBridge.int

Add after OLStats and UTComp packages in EditPackages:

EditPackages=OLStats
EditPackages=UTCompv18b
EditPackages=UTCompOLStatsBridge

Run from System:

ucc make

Use mutator:

UTCompOLStatsBridge.MutUTCompOLStatsBridge

Recommended mutator order:

UTComp, OLStats, UTCompOLStatsBridge

Debug
-----
Set in UTCompOLStatsBridge.ini:

[UTCompOLStatsBridge.MutUTCompOLStatsBridge]
bDebug=True



Version v3: UnrealScript compatibility fix: replaced bool array with int array, because bool arrays are not allowed by the UT2004 compiler.


Version v4:
- Adds an unconditional server-log startup message so the admin can verify that the bridge is active.
- Gameplay behavior remains unchanged: the mutator only installs GameRules and copies UTComp hit/damage counters into OLStats accuracy counters during CheckEndGame.

How to install :
Just Copy UTCompOLStatsBridge.int / .u / .ucl into your servers System Folder.
Put the The Mod into your Startup Line with : UTCompOLStatsBridge.MutUTCompOLStatsBridge directly after UTComp.
Thats it. Now damage hits and other stats are correctly written into your logfile.
Thanks for using it and have fun with correct hits/damage on your UTStatsDB Page.

Greetings
SkullCollector