Raised This Month: $ Target: $400
 0% 

event for sentry attacked ...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LouLouBizou
Member
Join Date: Aug 2006
Location: Toulouse (France)
Old 01-31-2008 , 02:54   event for sentry attacked ...
Reply With Quote #1

I want to detect that a sentry gun is hurted but havent found any event in .res about sentry. i have tried player_hurt but no sucess !

i want to get who attacked the sentry, and how many hp remaining

Any idea ?

thanks
__________________
LouLouBizou alias Don French !


LouLouBizou is offline
Send a message via MSN to LouLouBizou
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 01-31-2008 , 12:52   Re: event for sentry attacked ...
Reply With Quote #2

You can hook attacks (or bullet impacts if there is an event related with that) and check if that attack hit a sentry.
__________________
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 01-31-2008 , 14:20   Re: event for sentry attacked ...
Reply With Quote #3

AFAIK you can not hook attacks. You can hook player_shoot, but that doesn't tell you if they hit anything. As for bullet_impact, that is a CS:S event, so it wouldn't work in his case.
bl4nk is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 01-31-2008 , 15:07   Re: event for sentry attacked ...
Reply With Quote #4

Well, you could hook player_shoot and make a trace if it hit anything, but that would not be 100% accurate...
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
loid
Member
Join Date: Jul 2007
Location: Lithuania
Old 02-01-2008 , 04:48   Re: event for sentry attacked ...
Reply With Quote #5

i`we found an player_builtobject in TFC2 events, then maybe try to search some alternative event like player_damageobject maybe any luck
loid is offline
Send a message via Skype™ to loid
LouLouBizou
Member
Join Date: Aug 2006
Location: Toulouse (France)
Old 02-01-2008 , 04:51   Re: event for sentry attacked ...
Reply With Quote #6

Well, thanks all, i will try this week end to found a way for catching this event !
__________________
LouLouBizou alias Don French !


LouLouBizou is offline
Send a message via MSN to LouLouBizou
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 02-01-2008 , 14:21   Re: event for sentry attacked ...
Reply With Quote #7

Quote:
Originally Posted by loid View Post
i`we found an player_builtobject in TFC2 events, then maybe try to search some alternative event like player_damageobject maybe any luck
http://wiki.alliedmods.net/Team_Fortress_2_Events

I've listed all TF2 events there (and noted some of them). There is no player_damageobject.
bl4nk 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 12:40.


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