View Single Post
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 12-09-2019 , 22:59   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #4076

Quote:
Originally Posted by HamletEagle View Post
With ham, for bots that don't have "player" classname, you need to either use amxx 1.8.3 and set specialbot param to 1 or use directly RegisterHamPlayer. For amxx < 183 use RegisterHamFromEntity and provide a bot index.
Special thanks for solving the problem with register damage for bots
Quote:
I publish this fix for rehlds & zbots. Working for me correctly on cstrike mod (instead cz) with -bots
Replace RegisterHamPlayer instead of RegisterHam
Code:
RegisterHamPlayer(Ham_TakeDamage, "bacon_takedamage_player") RegisterHamPlayer(Ham_TraceAttack, "bacon_traceattack_player") RegisterHamPlayer(Ham_Killed, "bacon_killed_player") RegisterHamPlayer(Ham_Spawn, "bacon_spawn_player_post", 1)
click for expand to the view demo video

Last edited by ZASTRELIS; 12-12-2019 at 10:33.
ZASTRELIS is offline