This repository documents an experiment in AI-assisted game development, where AmpCode - Sourcegraph's AI coding agent - was used to modernize and enhance a classic Quake 2 Freeze Tag mod. This blog post captures the initial efforts: Getting Friendly with AI: More Amp.
- q2_orig/: Original Quake 2 source code (76 files)
- freeze_orig/: Legacy Freeze Tag implementation (78+ files)
- freeze_new/: Modern AI-enhanced version with new features
A 4-team multiplayer game mode where players freeze instead of dying. Teammates must thaw frozen players while avoiding being frozen themselves. The last team standing wins!
(Note: The core freeze tag gameplay exists in freeze_orig/ from the original implementation)
Working with AmpCode, we've begun adding modern enhancements to freeze_new/:
- Configurable starting weapons for newly spawned players
- Bitwise flag system (
start_weaponcvar: 1=shotgun, 2=super shotgun, 4=machinegun, etc.) - Automatic ammo allocation
- Default loadout: shotgun + super shotgun + rocket launcher
- Physics-based hook projectile with collision detection
- Dynamic pull force based on chain length
- Variable chain length control (grow/shrink modes)
- Visual chain rendering
- Configurable parameters via CVars
- Automatic team balancing (Red, Blue, Green, Yellow)
- Players auto-assigned to team with fewest members on join
- Complete team damage prevention
- CTF skins for visual team identification
- Enhanced chat system with team indicators
- Team-only communication support
- Manual team switching via
teamcommand - Public announcements for team joins/switches
- Port core freeze tag mechanics from
freeze_orig/ - Freeze/thaw player mechanics
- Ready system and map voting
This project showcases what's possible when human creativity meets AI capability:
- Planning: AmpCode analyzed the original code and proposed comprehensive implementation plans
- Feature Development: From basic mechanics to complex grappling hook physics
- Code Quality: Maintained original Q2 architecture while adding modern features
- Documentation: Generated extensive inline documentation and configuration guides
- 3 new systems implemented so far (start weapons, grappling hook & 4-team system)
- 6+ core files modified with AI assistance (freeze.h, freeze.c, g_local.h, p_client.c, g_combat.c, g_cmds.c)
- ~800+ lines of new code generated for weapons, hooks and team systems
- Full backward compatibility maintained with original Q2 architecture
- Open
freeze_new/src/game.slnin Visual Studio - Build the solution
- Launch with
freeze.batorfreeze - dedicated server.bat - Configure via CVars and map-specific settings
- Built for Windows with Visual Studio integration
- Complete multiplayer conversion (not just a mod)
- Extensive CVAR configuration system
- Compatible with original Q2 map formats
This project demonstrates the potential of AI-assisted game development, where classic gameplay meets modern development practices. Built with AmpCode - Sourcegraph's AI coding agent.
This README.md was generated by AmpCode.