View Single Post
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 10-27-2009 , 13:02   Re: Variable Friendly Fire
Reply With Quote #6

Quote:
Originally Posted by Nextra View Post
Some suggestions:

- Why do you need gBotsRegistered? Correct me if I'm wrong but it seems like you need to RegisterHamFromEntity on each bot in the server, doing a bool will prevent all bots joining after the first from getting their forward registered.
- Is the task still needed if you use client_putinserver instead of authorized?
- Check for valid attacker in PlayerHurt (1<=attacker<=maxplayers)
- You could hook round start (finish of freezetime) and Disable the Ham forward if its not needed.
reason i dont check for valid attacker is i have yet to run into an error due to finding attcker = 0

ive had it running for almost 32 hours. and played on it for abou 10 of those. lol so no errors yet
Doc-Holiday is offline