How wot-public-mods/battle-hits works
BattleHits is a World of Tanks lobby mod for reviewing shots dealt by or received by the player, including past battles loaded from replay files. The main workflow captures in-battle shot events, maintains battle history and selected-hit data, transforms these into lobby data providers, and displays them in the battle and hit panels; selecting a hit also drives a 3D vehicle-and-impact presentation in the hangar. Settings control hit direction and hangar behavior. The graph reflects the README and sampled sources; several controller implementations and replay-storage details are represented only by their exact tree paths.
Main entry points: BattleHitsMainView.py Battle View · HangarScene.py Hangar Scene · hooks.py Game Hooks · Hits.py Hit Data
Components 20
Battle Capture
- Mod Entry
python/gui/mods/mod_battlehits.py - Game Hooks
python/gui/battlehits/hooks.py - Battle Processor
python/gui/battlehits/controllers/BattleProcessor.py
Battle Data
- Battle History
python/gui/battlehits/controllers/BattlesHistory.py - Current Battle
python/gui/battlehits/data/CurrentBattle.py - Battle Data
python/gui/battlehits/data/Battles.py - Hit Data
python/gui/battlehits/data/Hits.py
Lobby Experience
- View State
python/gui/battlehits/controllers/State.py - Preferences
python/gui/battlehits/controllers/Settings.py - Battle View
python/gui/battlehits/views/BattleHitsMainView.py - Hits Header
python/gui/battlehits/views/BattleHitsHeaderView.py - Preferences View
python/gui/battlehits/views/BattleHitsPreferencesPopover.py - Battle UI
as3/battleHitsMainView/DOMDocument.xml - Header Tabs
resources/in/gui/gameface/mods/poliroid/BattleHitsHeaderView/BattleHitsHeaderView.js
Hangar Review
- Hangar Scene
python/gui/battlehits/controllers/HangarScene.py - Preview Vehicle
python/gui/battlehits/controllers/Vehicle.py
Game Assets
- Shell Models
resources/in/content/battlehits/common/shells - Impact Effects
resources/in/content/battlehits/style1
Other components
- Player
- World of Tanks
Connections 22
- Player → World of Tanks: plays battles
- World of Tanks → Game Hooks: emits shot events
- Mod Entry → Game Hooks: loads mod
- Game Hooks → Battle Processor: processes shots
- Battle Processor → Current Battle: updates battle
- Battle History → Battle Data: provides history
- Current Battle → Hit Data: provides hit data
- Battle Data → Battle View: supplies battle list
- Hit Data → Battle View: supplies hit list
- Battle View → Battle UI: updates panels
- Battle View → View State: selects battle and hit
- Player → Battle View: reviews results
- Hits Header → Preferences: updates hit direction
- Hits Header → Header Tabs: renders tabs
- Header Tabs → Preferences View: opens popover
- Preferences View → Preferences: updates preferences
- Preferences → Hit Data: controls hit direction
- View State → Hangar Scene: selects impact
- Hangar Scene → Preview Vehicle: positions hit
- Hangar Scene → Shell Models: loads shell models
- Hangar Scene → Impact Effects: loads impact effects
- World of Tanks → Battle History: provides replay battles