<aside> ⚡ script "core_hitshield" (int hits, int customProtect)
</aside>
This script can be used to activate an easy shield on the calling player which blocks a set number of hits. To cancel this effect early, give the player StopHitShield
then take it away one tic later.
hits
: int - The number of hits that can be blocked by this shield.customProtect
: bool - If true, will disable the giving of HitShieldProtection
on hit. Below is the actor definition for HitShieldProtection
.<aside> 🚨 Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
actor HitShieldProtection : PowerProtection
{
powerup.duration 10
damagefactor "normal", 0.0
damagefactor "crush", 1.0
damagefactor "telefrag", 1.0
}