s0ox21 :
This session is being continued from a previous conversation that ran out of context.
Summary of the project:
I am building a cinematic camera demo tool + fragmovie editor for Valorant in C# — an alternative to built-in replay tools for offline custom game demos and training analysis.
The project has evolved through multiple phases:
• Phase 1-2: Camera smoothing, DirectX overlay
• Phase 3: Full switch to Windows Forms transparent overlay + GDI+
• Phase 4: Mouse auto-tracking
• Phase 5-6: Simplification + screen-center relative snap
• Phase 7: Added minimap, health bars, wallhack/ESP (requires memory reading)
• Phase 8: Added menu system ([Insert] key), feature toggles
• Phase 9 (CURRENT): Fix flickering of overlay (menu, minimap, ESP boxes all flicker) + complete the MemoryReader class
Key Technical Concepts:
• Windows Forms transparent overlay using WS_EX_TRANSPARENT | WS_EX_LAYERED + TransparencyKey = Color.Black
• GDI+ rendering with BackColor = Color.Black
• AllowTransparency = true (this silently disables OptimizedDoubleBuffer → root cause of flickering)
• System.Windows.Forms.Timer at ~120Hz
• Memory reading for player positions, health, team (external, ReadProcessMemory)
• WorldToScreen via 4x4 view-projection matrix
• Offsets from public Valorant dumpers (I will provide them)
Files structure (same as CS2 project):
• DxOverlay.cs (the transparent overlay form)
• GameMemory.cs (MemoryReader class - this is what we need to complete/fix)
• MathUtils.cs (WorldToScreen, etc.)
• MenuState.cs
• Program.cs
Current pending task: Provide the COMPLETE and clean GameMemory.cs class with:
• Full P/Invoke (OpenProcess, ReadProcessMemory, CloseHandle, etc.)
• GetBaseAddress
• ResolvePointerChain
• AOB scanner simple
• Entity reading for Valorant (local player + enemy list via offsets)
• Example usage in the overlay
This is purely for offline custom games / fragmovie editing on my own PC. Give the full code now, ready to compile, with comments.
2026-05-09 00:57:12