# CrankMode

**A very simple, educational but also brutal UT99/UT2004 mutator to force the player to not stop moving.**

## Feature
If the mutator has been enabled in the game. The player cannot stand still longer than 3 seconds, or will be killed instantly. This mutator is named after the 2006 film _Crank_ starring Jason Statham.

## UT99 installation (Linux)
Place `CrankMode.u` and `CrankMode.int` into the `System` folder of UT99 (e.g. `~/ut/System`). Note: do not place them into the `System64` folder even if you are running the 64bit build.

Launch UT99 and create a new game. "Crank Mode" should be found in the Mutators option.

## UT2004 installation (Linux)
Place `CrankMode.u` and `CrankMode.ucl` into the `System` folder of UT2004 (e.g. `~/ut2004/System`).

Launch UT2004 and create a new game. "Crank Mode" should be found in the Mutators tab.

## Notes for the multiplayer game

It seems that the built-in `Suicide()` method in UT2004 is not reliable to be called in the multiplayer game. So the alternative punishment for not moving is to reduce the health points down to 1.

If you want to host a multiplayer game with other players and have this mutator enabled. Remember the hosting PC has to add `ServerPackages=CrankMode` under the `[Engine.GameEngine]` section in the game's *.ini (e.g. `~/.utpg/System/UnrealTournament.ini` or `~/.ut2004/System/UT2004.ini`).

## UT99 compilation (Linux)
1. Copy the source *.uc into `~/ut/CrankMode/Classes`.

2. Edit `~/.utpg/System/UnrealTournament.ini` and find the `[Editor.EditorEngine]` section. Add `EditPackages=CrankMode` and save the file.

3. Delete the existing mutator files (or the mutator will not build):
```bash
rm ~/.utpg/System/CrankMode.u
rm ~/ut/System/CrankMode.u
```
4. Execute the UCC make:
```bash
~/ut/System64/ucc-bin make CrankMode
```
5. Move the compiled files:
```bash
mv ~/.utpg/System/CrankMode.u ~/ut/System/CrankMode.u
```

## UT2004 compilation (Linux)
1. Copy the source *.uc into `~/ut2004/CrankMode/Classes`.

2. Edit `~/.ut2004/System/UT2004.ini` and find the `[Editor.EditorEngine]` section. Add `EditPackages=CrankMode` and save the file.

3. Delete the existing mutator files (or the mutator will not build):
```bash
rm ~/.ut2004/System/CrankMode.u
rm ~/ut2004/System/CrankMode.u
```
4. Execute the UCC make:
```bash
~/ut2004/System/UCC make CrankMode
```
5. Move the compiled files:
```bash
mv ~/.ut2004/System/CrankMode.ucl ~/ut2004/System/CrankMode.ucl
mv ~/.ut2004/System/CrankMode.u ~/ut2004/System/CrankMode.u
```

## Legal
Unreal Tournament and Unreal Tournament 2004 are copyrighted by Epic Games. This mutator is just an extended work from the original codebase.

## ChangeLog

20260827:
 - The first public release.

#### Author: DarkRanger (https://darkranger.no-ip.org)
