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

[TF2] Removing Sandman stun effect


Post New Thread Reply   
 
Thread Tools Display Modes
o0whiplash0o
Member
Join Date: Jun 2010
Old 12-12-2010 , 12:03   Re: [TF2] Removing Sandman stun effect
Reply With Quote #41

Quote:
Originally Posted by psychonic View Post
No need for dukehacks or sdkhooks

Code:
#include <sourcemod> #include <tf2_stocks> public OnPluginStart() {     HookEvent("player_hurt",  Event_PlayerHurt); } public Event_PlayerHurt(Handle:event,  const String:name[], bool:dontBroadcast) {     new victim = GetClientOfUserId(GetEventInt(event, "userid"));     if (victim == 0 || !IsClientInGame(victim))         return;         if (GetEventInt(event, "custom") == TF_CUSTOM_BASEBALL)     {         TF2_RemoveCondition(victim, TFCond_Bonked);     } }
Could you compile this for me?
o0whiplash0o is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-12-2010 , 12:10   Re: [TF2] Removing Sandman stun effect
Reply With Quote #42

Quote:
Originally Posted by o0whiplash0o View Post
Could you compile this for me?
Click the Get Plugin link
Attached Files
File Type: sp Get Plugin or Get Source (nostun.sp - 236 views - 374 Bytes)
psychonic is offline
o0whiplash0o
Member
Join Date: Jun 2010
Old 12-12-2010 , 12:14   Re: [TF2] Removing Sandman stun effect
Reply With Quote #43

Quote:
Originally Posted by psychonic View Post
Click the Get Plugin link
Thanks, but it didn't work. The stun still occurs.
o0whiplash0o is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-12-2010 , 12:27   Re: [TF2] Removing Sandman stun effect
Reply With Quote #44

Quote:
Originally Posted by o0whiplash0o View Post
Thanks, but it didn't work. The stun still occurs.
You can't block it from occurring, you can just get rid of it very quickly
psychonic is offline
o0whiplash0o
Member
Join Date: Jun 2010
Old 12-12-2010 , 12:28   Re: [TF2] Removing Sandman stun effect
Reply With Quote #45

Quote:
Originally Posted by psychonic View Post
You can't block it from occurring, you can just get rid of it very quickly
Hmm... okay I should rephrase what I said then. It doesn't work at all
The stun occurs the full period like the plugin wasn't even there...
o0whiplash0o is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-12-2010 , 12:49   Re: [TF2] Removing Sandman stun effect
Reply With Quote #46

Quote:
Originally Posted by o0whiplash0o View Post
Hmm... okay I should rephrase what I said then. It doesn't work at all
The stun occurs the full period like the plugin wasn't even there...
You're right. It looks like the stun isn't applied until after the damage.

Try this one. It waits a frame to remove the stun.
Attached Files
File Type: sp Get Plugin or Get Source (nostun.sp - 259 views - 627 Bytes)
psychonic is offline
o0whiplash0o
Member
Join Date: Jun 2010
Old 12-12-2010 , 12:55   Re: [TF2] Removing Sandman stun effect
Reply With Quote #47

Still no effect
By the way, extra bonus points if you can remove the damage from the impact too!
o0whiplash0o is offline
Master53
Veteran Member
Join Date: Dec 2009
Old 12-12-2010 , 13:17   Re: [TF2] Removing Sandman stun effect
Reply With Quote #48

for a suggestion. what type of damage does the stunstick do?
__________________
Master(d)



Master53 is offline
russy
Senior Member
Join Date: Sep 2010
Old 12-12-2010 , 19:34   Re: [TF2] Removing Sandman stun effect
Reply With Quote #49

try getting it ro run the unstun function straight after the stun function is called
russy 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:20.


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