Skip to content

Modzer0/COIL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Nuclear Option COIL Laser Mod

A BepInEx mod that adds the YAL-1 COIL (Chemical Oxygen Iodine Laser) weapon system to the Darkreach bomber in Nuclear Option.

๐Ÿš€ Quick Start

Installation

  1. Install BepInEx (if not already installed)

    • Download BepInEx 5.4.x
    • Extract to Nuclear Option game folder
    • Run game once to initialize
  2. Build the Mod

    # Windows
    setx NUCLEAR_OPTION_DIR "D:\SteamLibrary\steamapps\common\Nuclear Option"
    build.cmd
    
    # Linux/Mac
    export NUCLEAR_OPTION_DIR="$HOME/.steam/steam/steamapps/common/Nuclear Option"
    ./build.sh
  3. Launch Nuclear Option and select the Darkreach bomber

See QUICKSTART.md for detailed instructions.

๐Ÿ“– Documentation

โšก Features

  • Megawatt-class laser weapon based on real YAL-1 specifications
  • 50km effective range (game-balanced)
  • 30 shots of 5-second continuous fire
  • 2000 damage per shot - destroys any target
  • Configurable parameters via BepInEx config
  • Visual effects - orange-red beam, particles, lighting
  • Internal weapon bay mounting on Darkreach bomber

๐ŸŽฎ Usage

  1. Select Darkreach bomber in aircraft selection
  2. Spawn in mission or free flight
  3. Cycle weapons (Tab) to select COIL laser
  4. Aim at target and hold fire button
  5. Hold for 5 seconds to destroy target
  6. Rearm at airbase when depleted

โš™๏ธ Configuration

Config file auto-created at: BepInEx/config/com.nuclearoption.coil.cfg

Quick Config

  1. Run game once โ†’ Close game
  2. Edit BepInEx/config/com.nuclearoption.coil.cfg
  3. Restart game

Settings

[COIL Laser]
MaxRange = 50000        # Maximum range (meters)
MaxShots = 30           # Number of shots
DamagePerSecond = 400   # Damage output
PowerConsumption = 1000 # Power draw (MW)
EnableCOIL = true       # Enable/disable mod

Presets

  • Balanced: Default settings
  • High Power: MaxRange=75000, MaxShots=20, DPS=600
  • Training: MaxRange=30000, MaxShots=100, DPS=200

See NuclearOptionCOILMod/CONFIGURATION.md for complete guide.

๐Ÿ”ฌ Technical Details

Real-World Basis

Based on the Boeing YAL-1 Airborne Laser program:

  • Megawatt-class Chemical Oxygen Iodine Laser (COIL)
  • Designed to destroy ballistic missiles at 300-600km range
  • Mounted on modified Boeing 747-400F
  • 1315nm infrared wavelength
  • Program cancelled in 2011

Implementation

  • Language: C#
  • Framework: BepInEx 5.x
  • Patching: Harmony 2.x
  • Target: Nuclear Option (Unity 2021.3.x)
  • Architecture: Component-based, extends base game Laser class

๐Ÿ“ Project Structure

COIL/
โ”œโ”€โ”€ build.cmd / build.sh        # Build scripts
โ”œโ”€โ”€ QUICKSTART.md               # Quick start guide
โ”œโ”€โ”€ PROJECT_SUMMARY.md          # Project overview
โ”œโ”€โ”€ NuclearOptionCOILMod/       # Mod source code
โ”‚   โ”œโ”€โ”€ *.cs                    # C# source files
โ”‚   โ”œโ”€โ”€ *.csproj                # Project file
โ”‚   โ”œโ”€โ”€ README.md               # User documentation
โ”‚   โ””โ”€โ”€ CHANGELOG.md            # Version history
โ””โ”€โ”€ .kiro/steering/             # Developer documentation
    โ”œโ”€โ”€ coil-mod-development.md
    โ”œโ”€โ”€ coil-technical-reference.md
    โ””โ”€โ”€ coil-build-test.md

๐Ÿ› ๏ธ Building from Source

Prerequisites

  • .NET Framework 4.6+
  • BepInEx 5.4.x
  • Nuclear Option game files
  • Visual Studio or dotnet CLI

Build Commands

Windows:

setx NUCLEAR_OPTION_DIR "path\to\game"
build.cmd

Linux/Mac:

export NUCLEAR_OPTION_DIR="path/to/game"
./build.sh

Manual:

cd NuclearOptionCOILMod
dotnet build -c Release

Output: bin/Release/net46/NuclearOptionCOILMod.dll

๐Ÿงช Testing

See .kiro/steering/coil-build-test.md for comprehensive test plan including:

  • Installation testing
  • Functional testing
  • Combat testing
  • Edge case testing
  • Performance testing

๐Ÿ“Š Performance

  • FPS Impact: <5 FPS drop while firing
  • Memory: <10MB additional allocation
  • Load Time: <1 second increase
  • System Mass: 15 tons (realistic)

๐Ÿ› Known Issues

  • Audio not implemented (silent firing)
  • Basic visual effects (no advanced shaders)
  • Only works on Darkreach bomber
  • No power system integration

๐Ÿ—บ๏ธ Roadmap

Version 1.1.0 - Audio Update

  • Custom laser firing sounds
  • Charging and shutdown audio
  • Environmental effects

Version 1.2.0 - Visual Enhancement

  • Beam distortion shader
  • Heat shimmer effects
  • Enhanced particles

Version 1.3.0 - Gameplay Mechanics

  • Power management
  • Thermal system
  • Cooling mechanics

Version 2.0.0 - Major Update

  • Multi-aircraft support
  • Targeting computer UI
  • Weather effects
  • AI usage

๐Ÿค Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Update documentation
  6. Submit a pull request

๐Ÿ“œ License

This mod is provided as-is for Nuclear Option. Not affiliated with Killerfish Games.

๐Ÿ™ Credits

  • Mod Development: Created for Nuclear Option modding community
  • Based on: Real YAL-1 Airborne Laser program
  • Game: Nuclear Option by Killerfish Games
  • Framework: BepInEx modding framework
  • Patching: Harmony library

๐Ÿ“ž Support

  • Issues: Report bugs via GitHub Issues
  • Documentation: See docs in .kiro/steering/
  • Quick Help: Check QUICKSTART.md

๐Ÿ“š References


Ready to vaporize targets with megawatt-class laser power! โšก๐Ÿ”ฅ

About

Anti Ballistic Missile COIL laser for Nuclear Options

Resources

License

Stars

Watchers

Forks

Packages