Raised This Month: $ Target: $400
 0% 

Hooking bots hurt


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 09-30-2009 , 11:20   Hooking bots hurt
Reply With Quote #1

Since Ham_TakeDamage only works for humans any one know a work around for bots?

i have working code for humans only... but i want to be able to make bots friendly fire variable..

so if i was to shoot a bot with an awp in the head it would only do 25% of its damage.

Example:
PHP Code:
public BotHurt
{
       if(
is_user_bot(victim)
       {
              if(
cs_get_user_team(victim) == cs_get_user_team(attacker))
              {
                   
damage dmgreduce
              
}
        }

Doc-Holiday is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode