|
| 1 | +# Respawn Protection |
| 2 | +Gives players protection from other players damaging them after respawning. |
| 3 | + |
| 4 | +## Features |
| 5 | +- Protects players from damage for a configurable amount of time after spawning |
| 6 | +- Conditions to disable protection: |
| 7 | + - Moving too far |
| 8 | + - Equipping a gun |
| 9 | + - Equipping a melee weapon |
| 10 | + - Equipping a throwable |
| 11 | + - Attacking |
| 12 | +- Protection can be disabled for home spawns, so players can't abuse it to protect their base |
| 13 | +- Protection can be disabled for PVE damage |
| 14 | +- Configurable effect to show when protection is active |
| 15 | + |
| 16 | +## Configuration |
| 17 | +```xml |
| 18 | +<?xml version="1.0" encoding="utf-8"?> |
| 19 | +<RespawnProtectionConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 20 | + <MessageColor>yellow</MessageColor> |
| 21 | + <ProtectionDuration>10</ProtectionDuration> |
| 22 | + <EnableHomeSpawnProtection>false</EnableHomeSpawnProtection> |
| 23 | + <MaxMoveDistance>10</MaxMoveDistance> |
| 24 | + <ProtectFromPVE>true</ProtectFromPVE> |
| 25 | + <DisableOnEquipGun>true</DisableOnEquipGun> |
| 26 | + <DisableOnEquipMelee>true</DisableOnEquipMelee> |
| 27 | + <DisableOnEquipThrowable>true</DisableOnEquipThrowable> |
| 28 | + <DisableOnAttack>true</DisableOnAttack> |
| 29 | + <DisableOnMove>true</DisableOnMove> |
| 30 | + <EffectId>132</EffectId> |
| 31 | + <EffectTriggerRate>0.1</EffectTriggerRate> |
| 32 | + <AttackMessageRate>2</AttackMessageRate> |
| 33 | +</RespawnProtectionConfiguration> |
| 34 | +``` |
| 35 | + |
| 36 | +## Translations |
| 37 | +```xml |
| 38 | +<?xml version="1.0" encoding="utf-8"?> |
| 39 | +<Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 40 | + <Translation Id="SpawnProtectionEnabled" Value="Spawn protection enabled for {0} seconds." /> |
| 41 | + <Translation Id="SpawnProtectionDisabledExpired" Value="Your spawn protection has expired." /> |
| 42 | + <Translation Id="SpawnProtectionDisabledOnMove" Value="Spawn protection disabled because you moved too far." /> |
| 43 | + <Translation Id="SpawnProtectionDisabledOnEquipGun" Value="Spawn protection disabled because you equipped a gun." /> |
| 44 | + <Translation Id="SpawnProtectionDisabledOnEquipMelee" Value="Spawn protection disabled because you equipped a melee weapon." /> |
| 45 | + <Translation Id="SpawnProtectionDisabledOnEquipThrowable" Value="Spawn protection disabled because you equipped a throwable." /> |
| 46 | + <Translation Id="SpawnProtectionDisabledOnAttack" Value="Spawn protection disabled because you attacked." /> |
| 47 | + <Translation Id="PlayerHasProtection" Value="You can't hurt {0} because they have spawn protection." /> |
| 48 | +</Translations> |
| 49 | +``` |
0 commit comments