x
ETF2L is looking for new Staff to recruit! Are you interested in supporting the league? Then click here for more details on what we can offer and how to apply! 

Forum

Sticky self damage only HOW TO?

Created 6th April 2010 @ 13:15

Add A Reply Pages: 1

Stimpy

NOTE: The dukehacks method does’t work because its sourcemod v1.3 on the server and dukehacks was not updated since V1.1.

So any other way this can be done, would like to make this a feature on our BBServer. due to requests!

We tried sugestion on our server post… http://etf2l.org/forum/general/topic-9402/ but non that work so far.


Last edited by Stimpy,

Stimpy

OK got this so far.


#pragma semicolon 1
#include
#include
#include

public OnClientPutInServer(client)
{
SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamage);
}

public Action:OnTakeDamage(victim, &attacker, &inflictor, &Float:damage, &damagetype)
{
decl String:sWeapon[32];
GetEdictClassname(inflictor, sWeapon, sizeof(sWeapon));

if(StrEqual(sWeapon, "tf_projectile_pipe_remote""))
{
damage *= 0.0;
return Plugin_Changed;
}

return Plugin_Continue;
}

this disables stickies total e.g u can fire them but they do 0 DMG to you or the opposing player. i want to be able to jump but not spam stikes and kill my enemy. so we are 1/2 way there. anyone with a clue understand this and how it can be edited?

Maybe i could set dmg to a low level?
e.g 0.1 (Edit Nope does’t work.)


Last edited by Stimpy,

Rotab

≧◡≦

Compare the attacker and victim. if it’s the same then deal damage


Last edited by Rotab,

Stimpy

thanks, but is fixed now anyway a mate fixed for me.

Add A Reply Pages: 1