Two links for reference to question:
https://github.com/War3Source/War3Source/blob/master/addons/sourcemod/scripting/War3Source_Engine_DamageSystem.sp#L76
https://github.com/War3Source/War3Source/blob/master/addons/sourcemod/scripting/W3SIncs/War3Source_Events.inc#L32
OnW3TakeDmgAllPre, OnW3TakeDmgBulletPre, OnW3EnemyTakeDmgBulletPre, OnW3TakeDmgAll, and OnW3TakeDmgBullet do not use any Action returns.
Is there a "wait period" between each that needs to be established, and is reason you use ET_Hook or was it old coding that uses this logic?
Since there is no return value for Action, but I do understand there is a return value for War3_DamageModPercent().
Would it be just better to create a Param_FloatByRef and change the value on the function itself instead of using current method?
Please do help me understand your logic behind using ET_Hook.
extra reference:
https://wiki.alliedmods.net/Function_Calling_API_%28SourceMod_Scripting%29
https://github.com/War3Source/War3Source/blob/master/addons/sourcemod/scripting/War3Source_Engine_DamageSystem.sp#L76
https://github.com/War3Source/War3Source/blob/master/addons/sourcemod/scripting/W3SIncs/War3Source_Events.inc#L32
OnW3TakeDmgAllPre, OnW3TakeDmgBulletPre, OnW3EnemyTakeDmgBulletPre, OnW3TakeDmgAll, and OnW3TakeDmgBullet do not use any Action returns.
Is there a "wait period" between each that needs to be established, and is reason you use ET_Hook or was it old coding that uses this logic?
Since there is no return value for Action, but I do understand there is a return value for War3_DamageModPercent().
Would it be just better to create a Param_FloatByRef and change the value on the function itself instead of using current method?
Please do help me understand your logic behind using ET_Hook.
extra reference:
https://wiki.alliedmods.net/Function_Calling_API_%28SourceMod_Scripting%29


Logged
