Raised This Month: $32 Target: $400
 8% 

[TF2]Prevent Sticky Bomb damage on BBall map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 07-21-2010 , 07:39   [TF2]Prevent Sticky Bomb damage on BBall map
Reply With Quote #1

Hi everybody,

im searching for a way to prevent players being damaged by enemy stickybombs.

As far as I understand it it is not possible with the Events because the damage than has already be done. And with SDKHooks you have to hook the OnDamageTake for every client (or not?)

what's the most elegant (/easy) way to prevent damage?
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-21-2010 , 07:59   Re: [TF2]Prevent Sticky Bomb damage on BBall map
Reply With Quote #2

Quote:
Originally Posted by Sillium View Post
what's the most elegant (/easy) way to prevent damage?
Quote:
Originally Posted by Sillium View Post
hook the OnDamageTake for every client
psychonic is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 07-21-2010 , 08:09   Re: [TF2]Prevent Sticky Bomb damage on BBall map
Reply With Quote #3

Thank you for the info :-)
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 07-23-2010 , 02:36   Re: [TF2]Prevent Sticky Bomb damage on BBall map
Reply With Quote #4

Thanks again for the Info psychonic :-)

If anyone is interested see attachment (probably not too fail safe, needs sdkhooks)
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de

Last edited by Sillium; 07-26-2010 at 01:47.
Sillium is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-23-2010 , 08:43   Re: [TF2]Prevent Sticky Bomb damage on BBall map
Reply With Quote #5

Quote:
Originally Posted by Sillium View Post
Thanks again for the Info psychonic :-)

If anyone is interested see attachment (probably not too fail safe, needs sdkhooks)
PHP Code:
attacker <= MAXPLAYERS 
That should be <= MaxClients (not that it will likely matter).
psychonic is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 07-26-2010 , 01:46   Re: [TF2]Prevent Sticky Bomb damage on BBall map
Reply With Quote #6

Thanks again psychonic :-)
Attached Files
File Type: sp Get Plugin or Get Source (tf2_no_sticky_dmg.sp - 362 views - 1.1 KB)
File Type: smx tf2_no_sticky_dmg.smx (2.3 KB, 207 views)
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium is offline
triseaux
Junior Member
Join Date: Oct 2011
Old 11-07-2012 , 05:17   Re: [TF2]Prevent Sticky Bomb damage on BBall map
Reply With Quote #7

Yop, its possible to update for the new version sdhook ?
triseaux is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 11-07-2012 , 05:45   Re: [TF2]Prevent Sticky Bomb damage on BBall map
Reply With Quote #8

hmm.. didn't use this for a long time... I just dropped it on one of our servers and I don't see any errors (can't connect and test it since I'm not at home).

What error do you get? Did you update SDKhooks after the Halloween-Update?
https://forums.alliedmods.net/showpo...postcount=2184
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium 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 01:30.


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