# SpawnKill AutoRespawn for Classic FreezeTag

### Modded by [MZK]JaiminP

## What it does

This is a standalone add-on for **Classic_FreezeTag_i4i** that helps eliminate repeated spawn kills.

If a player is frozen shortly after spawning, they are instantly respawned at another spawn point instead of waiting to be thawed. No more relying on a gentlemen's agreement or hoping someone does the right thing.

If a player gets spawn killed **3 times in a row**, they receive temporary ghost protection to help them get away from the spawn area.

This mod is for **Classic_FreezeTag_i4i only**.

---

## Features

* Spawn Kill Auto Respawn
* Configurable spawn protection timer
* Configurable weapon lock after spawn
* Ghost protection after repeated spawn kills
* Invisible stage followed by translucent stage
* Damage immunity during ghost protection
* No player collision while protected
* Human players only
* All settings configurable through the INI

---

## Installation

1. Copy **AutoRespawn.u** into your **System** folder.
2. Add:

```
ServerPackages=AutoRespawn
```

to **UT2004.ini**.

3. Change your game type from:

```
Classic_FreezeTag_i4i.FreezeTagGame
```

to:

```
AutoRespawn.AutoRespawnGame
```

This includes **RunServer.bat**, **MapVote**, or anywhere your GameClass is set.

4. Compress **AutoRespawn.u** into **AutoRespawn.u.uz2** and place it on your redirect if you use one.

**Do NOT remove Classic_FreezeTag_i4i.u.**
This package works alongside the original FreezeTag package.

---

## AutoRespawn.ini

Dont forget to compare freezetag ini to make any settings match that need to 
```
[AutoRespawn.AutoRespawnGame]

bEnableSpawnKillAutoRespawn=True
SpawnKillAutoRespawnTime=5.000000

bEnableSpawnWeaponLock=True
SpawnWeaponLockTime=3.000000
bShowSpawnWeaponLockMessages=True

bEnableGhostProtection=True
GhostProtectionTriggerCount=3
GhostInvisibleTime=5.000000
GhostTranslucentTime=2.000000
GhostTranslucentScaleGlow=0.350000
```

### What each setting does

**bEnableSpawnKillAutoRespawn**
Turns the automatic respawn system on or off.

**SpawnKillAutoRespawnTime**
How many seconds after spawning a freeze counts as a spawn kill.

**bEnableSpawnWeaponLock**
Enables or disables the weapon lock after spawning.

**SpawnWeaponLockTime**
How long weapons stay disabled after spawning.

**bShowSpawnWeaponLockMessages**
Shows or hides the "Weapon Inactive" and "Weapon Active" messages.

**bEnableGhostProtection**
Turns the ghost protection system on or off.

**GhostProtectionTriggerCount**
Number of consecutive spawn-kill auto respawns before ghost protection activates.

**GhostInvisibleTime**
How long the player stays completely invisible.

**GhostTranslucentTime**
How long the player stays translucent before becoming fully active.

**GhostTranslucentScaleGlow**
Controls how transparent the player appears during the translucent stage.

---

## Default Protection

**1st Spawn Kill**

* Instant auto respawn

**2nd Spawn Kill**

* Instant auto respawn

**3rd Spawn Kill**

* Instant auto respawn
* Invisible for 5 seconds
* Translucent for 2 seconds
* Cannot fire
* Cannot take damage
* No player collision
* Returns to normal automatically

Enjoy!
