Raised This Month: $ Target: $400
 0% 

[TF2] How to check if a victim is eligible for airshot minicrit?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
-.-Owned Myself-.-
Member
Join Date: Jul 2008
Old 06-15-2014 , 19:08   Re: [TF2] How to check if a victim is eligible for airshot minicrit?
Reply With Quote #7

Maybe something like the following could work?

PHP Code:
// SDKHooks required here
public Action:OnTakeDamage(    victim, &attacker, &inflictor, &Float:damage, &damagetype, &weapon,
                            
Float:damageForce[3], Float:damagePosition[3], damagecustom    )
{
    
// TF_CUSTOM_ROCKET_DIRECTHIT found in tf2_stocks include file.
    
if(damagecustom == TF_CUSTOM_ROCKET_DIRECTHIT)
    {
        
// Someone got airshot! (I think... Haven't tested this...)
        
damage 9001.0;
        return 
Plugin_Changed;
    }
    return 
Plugin_Continue;

-.-Owned Myself-.- 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 14:15.


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