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

[CSS] No collision for entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Paaf
Member
Join Date: Dec 2010
Old 09-11-2013 , 17:20   [CSS] No collision for entity
Reply With Quote #1

Hello everyone,

I'm trying to spawn entities in my plugin for CSS. For those entity, i would like to remove the collisions with the players. (like a weapon for example)

Until now, I was using this :
Code:
new entity = CreateEntityByName("prop_ragdoll");
....
....
DispatchSpawn(entity);
SetEntData(Ragdoll, g_CollisionOffset, 2, 1, true);
It works perfectly but the props physics is going wrong sometimes. Each time, I need to restart the server to "fix" it. I have learned on the forum that it mays come from the way I modify the "g_CollisionOffset" properties of entities.

So my question is simple :
Does it come from this ?
If yes, do you have another way to do what I want to do ?

Thank you for your help !
Paaf is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 09-12-2013 , 06:00   Re: [CSS] No collision for entity
Reply With Quote #2

CollisionHook
__________________
...
Oshizu is offline
Paaf
Member
Join Date: Dec 2010
Old 09-15-2013 , 12:30   Re: [CSS] No collision for entity
Reply With Quote #3

Thanks, it works perfectly.

Hooking every collision won't make the server laggy ?
Paaf 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 10:05.


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