<aside> ⚡ script "core_hitshield" (int hits, int customProtect)

</aside>

Usage


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.

Parameters

<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
}

See Also


core_shieldwarper