MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ApplyFreezeDamageEffect

Function ApplyFreezeDamageEffect

Descent3/damage.cpp:648–659  ·  view source on GitHub ↗

Causes an object to have napalm attached to it

Source from the content-addressed store, hash-verified

646
647// Causes an object to have napalm attached to it
648void ApplyFreezeDamageEffect(object *obj) {
649 if (obj->effect_info) {
650 if (!(obj->effect_info->type_flags & EF_FREEZE))
651 obj->effect_info->freeze_scalar = 1.0;
652
653 obj->effect_info->type_flags |= EF_FREEZE;
654 obj->effect_info->freeze_scalar -= .2f;
655
656 if (obj->effect_info->freeze_scalar < .3)
657 obj->effect_info->freeze_scalar = .3f;
658 }
659}
660
661// Event to handle damage effect
662void DoDamageEffect(int eventnum, void *data) {

Callers 2

ApplyDamageToPlayerFunction · 0.85
ApplyDamageToGenericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected