ONPLAYERGIVEDAMAGE TICK 1177505375 HEALTH BEFORE 100.000000 DAMAGE 46.200000
ONPLAYERGIVEDAMAGE TICK 1177506173 HEALTH BEFORE 53.799999 DAMAGE 46.200000
ONPLAYERGIVEDAMAGE TICK 1177506957 HEALTH BEFORE 7.599998 DAMAGE 46.200000
FCNPC_ONTAKEDAMAGE TICK 1177614926 HEALTH BEFORE 100.000000 DAMAGE 46.200000
FCNPC_ONTAKEDAMAGE TICK 1177615970 HEALTH BEFORE 53.799999 DAMAGE 46.200000
FCNPC_ONTAKEDAMAGE TICK 1177616843 HEALTH BEFORE 7.599998 DAMAGE 46.200000
The NPC was shot 3 times with the deagle before dying, which is what it should be.
Logs when both the gamemode and filterscript are loaded:
ONPLAYERGIVEDAMAGE TICK 1177525879 HEALTH BEFORE 53.799999 DAMAGE 46.200000
ONPLAYERGIVEDAMAGE TICK 1177526779 HEALTH BEFORE 0.000000 DAMAGE 46.200000
FCNPC_ONTAKEDAMAGE TICK 1177627262 HEALTH BEFORE 100.000000 DAMAGE 46.200000
FCNPC_ONTAKEDAMAGE TICK 1177627262 HEALTH BEFORE 53.799999 DAMAGE 46.200000
FCNPC_ONTAKEDAMAGE TICK 1177628041 HEALTH BEFORE 7.599998 DAMAGE 46.200000
FCNPC_ONTAKEDAMAGE TICK 1177628041 HEALTH BEFORE 0.000000 DAMAGE 46.200000
Only 2 shots killed the NPC, which is not what it should be.
EDIT:
Don't compare the tickcount values across the 2 callbacks, only within 1 callback.
Used gamemode: https://gist.github.com/WoutProvost/198897527065c748cb9e47d7236d9427 Used filterscript: https://gist.github.com/WoutProvost/ab367ab8ab399b8f47a7468836a66d10 Server.cfg:
Logs when only the gamemode is loaded:
The NPC was shot 3 times with the deagle before dying, which is what it should be.
Logs when both the gamemode and filterscript are loaded:
Only 2 shots killed the NPC, which is not what it should be.
EDIT: Don't compare the tickcount values across the 2 callbacks, only within 1 callback.