Causes an object to have napalm attached to it
| 646 | |
| 647 | // Causes an object to have napalm attached to it |
| 648 | void 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 |
| 662 | void DoDamageEffect(int eventnum, void *data) { |
no outgoing calls
no test coverage detected