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

Collision


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Entity
Member
Join Date: May 2016
Old 02-19-2019 , 10:21   Collision
Reply With Quote #1

Hello friends. I am creating a prop_dynamic_override object. How can I block a collision for a specific player, and the rest of the resolve?

Last edited by Entity; 02-19-2019 at 10:27.
Entity is offline
adma
Senior Member
Join Date: Oct 2015
Old 02-21-2019 , 02:23   Re: Collision
Reply With Quote #2

You could use SDKHook_ShouldCollide

e.g.
PHP Code:
void CreateEntity() {
  
int iEnt /* create the entity */

  
SDKHook(iEntSDKHook_ShouldCollideCollisionFilter);
}

public 
bool CollisionFilter(int iEntint iCollisionGroupint iContentsMaskbool bOriginalResult) {
  if (
/* something */) return false;

EDIT: Just thought about this after posting, but you can't get the entity youre colliding with using SDKHook_ShouldCollide, so the above answer isn't applicable

Last edited by adma; 02-21-2019 at 02:29.
adma is offline
adma
Senior Member
Join Date: Oct 2015
Old 02-21-2019 , 02:30   Re: Collision
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=197815
adma is offline
Entity
Member
Join Date: May 2016
Old 03-02-2019 , 10:39   Re: Collision
Reply With Quote #4

Thank I solved a problem through trigger_multiple

Last edited by Entity; 03-02-2019 at 10:40.
Entity 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 23:33.


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