Raised This Month: $51 Target: $400
 12% 

[SOLVED][SDKHooks] Remove damage without removing push force?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MrTimcakes
Senior Member
Join Date: Jan 2012
Location: Uk
Old 07-12-2015 , 15:50   [SOLVED][SDKHooks] Remove damage without removing push force?
Reply With Quote #1

I'd like to remove Rocket/Sticky self-damage in tf2, however I wish to keep the self-push force but my code removes that.
PHP Code:
public Action:OnTakeDamage(victim, &attacker, &inflictor, &Float:damage, &damagetype){

    if(
victim == attacker){
        
damage 0.0;
        return 
Plugin_Changed;
    }    
    return 
Plugin_Continue;

__________________

Last edited by MrTimcakes; 07-15-2015 at 08:27.
MrTimcakes 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 15:17.


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