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

Function SetDeformDamageEffect

Descent3/damage.cpp:608–614  ·  view source on GitHub ↗

Causes an object to deform

Source from the content-addressed store, hash-verified

606
607// Causes an object to deform
608void SetDeformDamageEffect(object *obj) {
609 if (obj->effect_info) {
610 obj->effect_info->type_flags |= EF_DEFORM;
611 obj->effect_info->deform_time = 1.0;
612 obj->effect_info->deform_range = .3f;
613 }
614}
615
616#define MAX_NAPALM_DAMAGE_TIME 10.0f
617// Causes an object to have napalm attached to it

Callers 2

ApplyDamageToPlayerFunction · 0.85
ApplyDamageToGenericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected