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

[TF2]No Sticky damage to enemies


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
squar3x
New Member
Join Date: Feb 2011
Old 02-14-2011 , 09:25   [TF2]No Sticky damage to enemies
Reply With Quote #1

I would really appreciate a plugin that removes the damage output versus enemies but let's the demoes to sticky jump.
I've tried to search before asking, but i can't find a working solution.
Thanks in advance.

Last edited by squar3x; 02-14-2011 at 09:36.
squar3x is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 02-14-2011 , 17:28   Re: [TF2]No Sticky damage to enemies
Reply With Quote #2

sticky jumper
__________________
Leonardo is offline
squar3x
New Member
Join Date: Feb 2011
Old 02-14-2011 , 18:16   Re: [TF2]No Sticky damage to enemies
Reply With Quote #3

Quote:
Originally Posted by Leonardo View Post
mmmh yeah, there is any way to swap it to the actual sticky launcher and remove the damage reduction plus the damage vulnerabilities?
you know, it's not cool if you force a sticky jumper on a deathmatch server.
squar3x is offline
toazron1
Senior Member
Join Date: Oct 2006
Old 02-14-2011 , 21:42   Re: [TF2]No Sticky damage to enemies
Reply With Quote #4

Try this:

Code:
#include <sourcemod> #include <sdkhooks> #define STICKY_DET_UNINTENTIONAL    393282    //Detonation from placing too many stickies. #define STICKY_DET_INTENTIONAL        2490423    //Normal detonation. public Plugin:myinfo = {     name = "Sticky Damage Blocker",     author = "toazron1",     description = "Blocks sticky damage to enemies.",     version = "0.1",     url = "" } public OnClientPutInServer(client)     SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamage); public Action:OnTakeDamage(victim, &attacker, &inflictor, &Float:damage, &damagetype) {     if (victim != attacker)         if (damagetype & STICKY_DET_INTENTIONAL || damagetype & STICKY_DET_UNINTENTIONAL)         {             damage = 0.0;             return Plugin_Changed;         }     return Plugin_Continue;    }

Should only block damage vs enemies (quickly tested on localserver)
__________________
toazron1 is offline
Send a message via AIM to toazron1
squar3x
New Member
Join Date: Feb 2011
Old 02-15-2011 , 09:59   Re: [TF2]No Sticky damage to enemies
Reply With Quote #5

Quote:
Originally Posted by toazron1 View Post
cut

Should only block damage vs enemies (quickly tested on localserver)
i know that i should compile it with the web compiler or something like that, but it keeps to give me errors. I would ask you if you can compile it for me.
squar3x is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 02-15-2011 , 12:15   Re: [TF2]No Sticky damage to enemies
Reply With Quote #6

You need SDK Hooks.
__________________
FaTony is offline
squar3x
New Member
Join Date: Feb 2011
Old 02-15-2011 , 12:47   Re: [TF2]No Sticky damage to enemies
Reply With Quote #7

I thought I had put it in the sourcemod folder, but I didn't.
Worked fine, thank you all for the help
squar3x 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 03:55.


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