- cod.inc
- Functions
- cod_repeat_damage
- File
- Constants
native cod_repeat_damage(attacker, victim, Float:damage = 0.0, Float:time = 0.0, counter = 1, flags = DMG_CODSKILL, instant = true);
attacker | Player that makes damage |
victim | Player that is receiving damage |
damage | Damage amount to make |
time | Interval between damage events |
counter | Damage dealt to players in dmgDistance |
flags | Damage flag in DMG_* format, alternatively FIRE, POISON, or HEAL
(healing player instead of hurting) to use custom effects out of the box. |
instant | If true makes first damage immediately |
Makes repeating damage to player.
Uses cod_inflict_damage with DMG_REPEAT flag.
If damage or time is set 0.0 previous task will be removed and no new task created.
If counter is set 0 effect will last till player death or round end - usefull for constant healing.
This function has no return value.