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

sticky damage plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SatlaN
Member
Join Date: Sep 2009
Old 10-18-2010 , 10:59   sticky damage plugin
Reply With Quote #1

Hello,
I need please a plugin that will block the sticky from doing damage.

I will be greatfull for that.
SatlaN is offline
snowyiet
Member
Join Date: Jan 2010
Old 10-20-2010 , 05:40   Re: sticky damage plugin
Reply With Quote #2

Quote:
Originally Posted by SatlaN View Post
Hello,
I need please a plugin that will block the sticky from doing damage.

I will be greatfull for that.
You can use this extension to remove damage from the stickybomb launcher. It's not a metamod plugin though, sourcemod extension. http://forums.alliedmods.net/showthread.php?t=115100
snowyiet is offline
iSimon
Junior Member
Join Date: Aug 2010
Old 10-26-2010 , 20:36   Re: sticky damage plugin
Reply With Quote #3

I have never written a plugin before. This is my first one. Tested, and stickies no longer do any damage. Please note that this requires SDK hooks to be compiled, found above


PHP Code:
#include <sourcemod>
#include <sdkhooks>
 
public Plugin:myinfo =
{
    
name "Stickybomb Damage Blocker",
    
author "iSimon",
    
description "Stop's Demoman Stickybomb Damage",
    
version "1.0.0.0",
    
url "http://www.sourcemod.net/"
};

new 
Handle:vEnable INVALID_HANDLE

public OnPluginStart()
{
    
vEnable CreateConVar("sm_stopsticky_damage""1""No sticky damage")
    
AutoExecConfig(true"plugin_stopsticky")
}

public 
OnClientPutInServer(client)
{
    
SDKHook(clientSDKHook_OnTakeDamageOnTakeDamage);
}

public 
Action:OnTakeDamage(victim, &attacker, &inflictor, &Float:damage, &damagetype)
{
    if (!
GetConVarBool(vEnable))
    {
        return 
Plugin_Continue;
    }
    
decl String:sWeapon[32];
    
GetEdictClassname(inflictorsWeaponsizeof(sWeapon));
    
    if(
StrEqual(sWeapon"tf_projectile_pipe_remote"))
    {
        
damage 0.0;
        return 
Plugin_Handled;
    }
    
    return 
Plugin_Continue;


Last edited by iSimon; 10-30-2010 at 12:30.
iSimon is offline
Send a message via MSN to iSimon Send a message via Skype™ to iSimon
SatlaN
Member
Join Date: Sep 2009
Old 11-01-2010 , 07:51   Re: sticky damage plugin
Reply With Quote #4

perfect!!! thanks a lot.
I have one problem with that plugin... i need the Sticky will damage urself but not others... cause like that i am blocking the players from doing sticky jump and i want them to do that...

Can you fix it?

Thank you!
SatlaN 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 07:02.


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