AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to make an entity traceable. (https://forums.alliedmods.net/showthread.php?t=106616)

ot_207 10-17-2009 07:17

How to make an entity traceable.
 
I have made some interesting tests and came up with these results.

An entity has this solid flag SOLID_SLIDEBOX (shootable and touchable)
After I changed it to SOLID_BBOX the result is this: The entity is still touchable but can not be shot.

My question is how to make it shootable/unshootable.
From this test it is clear that it does not depend totally on the SOLID flag.

One 10-17-2009 07:19

Re: How to make an entity traceable.
 
awesome question. i need it too. i want make my discoball breakable/shootable :(

ot_207 10-17-2009 07:30

Re: How to make an entity traceable.
 
Quote:

Originally Posted by One (Post 964676)
awesome question. i need it too. i want make my discoball breakable/shootable :(

To make an entity shootable you must spawn it as func_breakable.
After that set the solid flag to BBOX, give it health, size, everything, and it will work ok.

One 10-17-2009 07:45

Re: How to make an entity traceable.
 
ty. i got it too with a little search in any of your posts. thanks :P
i wanted to ask how to give health but found this here :P Make grenades shootable

ot_207 10-17-2009 07:55

Re: How to make an entity traceable.
 
TraceModel is good but I want to make the engine work with them alone.
I want TraceLine to see them.

ConnorMcLeod 10-17-2009 11:43

Re: How to make an entity traceable.
 
Try to set model, modelindex, size, solid, and spawn it.


All times are GMT -4. The time now is 22:33.

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