27.06.2020, 23:58
OnPlayerTakeDamage:
Return Values:
1 - Callback will not be called in other filterscripts.
0 - Allows this callback to be called in other filterscripts.
It is always called first in filterscripts so returning 1 there blocks other filterscripts from seeing it.
But..
If you use weapon-config include:
returning false in OnPlayerDamage will prevent damage from being inflicted.
Return Values:
1 - Callback will not be called in other filterscripts.
0 - Allows this callback to be called in other filterscripts.
It is always called first in filterscripts so returning 1 there blocks other filterscripts from seeing it.
But..
If you use weapon-config include:
returning false in OnPlayerDamage will prevent damage from being inflicted.