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

How would you go about catching an entity touch?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 11-01-2009 , 22:58   How would you go about catching an entity touch?
Reply With Quote #1

Ok, funny situation. Some maps in CS, you can "break" doors by like jumping at then, they have a sound attached to them via the map so you know your interacting in some way.

I need to find a way to negate this, "touch" so you can't affect it.

I have tried

PHP Code:
RegisterHam(Ham_Touch"door1""rhTouchCell")
public 
rhTouchCell(iEntiPlayer)
{
    if( 
IsPlayer(iPlayer) && is_user_admin(iPlayer) )
    {
        
client_print(iPlayerprint_chat"[DEBUG] Stay away from the door man.")
    }
}

doesn't work ever. :-/ I'm not sure whyI was also told RegsiterHam touch didn't work, it's been brokenso I tried register_touch and still nothing
Styles is offline
Send a message via AIM to Styles
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-02-2009 , 04:41   Re: How would you go about catching an entity touch?
Reply With Quote #2

What map for example ? Because I don't think func_door can break. There is probably a trick with func_breakable. If so, you can remove the flag SF_BREAK_PRESSURE (4).
__________________
Arkshine is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 11-02-2009 , 05:11   Re: How would you go about catching an entity touch?
Reply With Quote #3

Well multiple maps. But can you elaborate on that SF_BREAK_PREASSURE? I mean, the doors are walk through able.
Styles is offline
Send a message via AIM to Styles
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-02-2009 , 05:21   Re: How would you go about catching an entity touch?
Reply With Quote #4

Map as ? Just to check.

About the func_breakable flag : Pressure (4) - Brush will break when pressured (e.g. player walking on it).
__________________
Arkshine is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 11-02-2009 , 05:29   Re: How would you go about catching an entity touch?
Reply With Quote #5

nvm got it thx Arkshine!

Last edited by Styles; 11-02-2009 at 05:43.
Styles is offline
Send a message via AIM to Styles
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-02-2009 , 05:47   Re: How would you go about catching an entity touch?
Reply With Quote #6

It would be nice to attach it or giving a link where I could download it.
__________________
Arkshine 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:01.


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