Raised This Month: $ Target: $400
 0% 

Proper explosion damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-24-2011 , 21:55   Re: Proper explosion damage
Reply With Quote #1

This forum is a public forum so you can't always control everybody.

I'm guessing Emp probably assumed you "didn't know what you were doing" because you completely ignored wrecked's post about not needing that variable (or even most of the code given). The example given was just that, an example, and can not be taken completely as a working function for your specific case. You have to use only parts of the examples given.

The part that actually does the damage is this:

PHP Code:
        for (new i=0numfoundi++)
        {        
            new 
pid entlist[i];
            
            if (!
is_user_alive(pid) || get_user_team(attacker) == get_user_team(pid))
                continue;
            
            
ExecuteHam(Ham_TakeDamagepidentattacker350.01);
        } 
It does not affect teammates and any damage delt will be as if it was coming from the player "attacker" using the weapon "ent".
__________________

Last edited by fysiks; 07-24-2011 at 21:57.
fysiks is offline
Reply



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 01:09.


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