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

Сollision


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nail
BANNED
Join Date: May 2008
Location: PetrovЪ GradЪ
Old 08-05-2011 , 14:30   Сollision
Reply With Quote #1

How can I allow specific player to pass through prop_dynamic?
Nail is offline
Nail
BANNED
Join Date: May 2008
Location: PetrovЪ GradЪ
Old 08-05-2011 , 16:11   Re: Сollision
Reply With Quote #2

PHP Code:
    ...
    new 
ent CreateEntityByName("prop_dynamic_override");
    ...
    
SDKHookEx(entSDKHook_ShouldCollideOnCollide);    
}
public 
bool:OnCollide(entitycollisiongroupcontentsMaskbool:result)
{
    
//ent = entity, but client = ????? perhaps client == contentsMask?

On the server, two players
client = 1 and client = 2. I need to turn off ent collision for client = 1. How can I do?

Dump resultsz: entity=280 collisiongroup=8 contentsmask=33636363 result=1. So contentsmask - wtf is it?

Last edited by Nail; 08-05-2011 at 16:13.
Nail is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 08-05-2011 , 18:40   Re: Сollision
Reply With Quote #3

Have a look at the CONTENTS_* and MASK_* defines and this plugin.
You'd need a combination of the ShouldCollide and StartTouch/Touch hooks.
__________________
Peace-Maker 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 19:55.


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