func_ entities?
Post Reply
Quote
Re: func_ entities?
Posted by radnad72 on Sat Nov 20th at 9:32pm 2004


Well after reading that tutorial on source physics, i can get all sorts of random things in my little cube like crates etc., but i can't seem to find the entities such as func_physbox to create brushes affected by physics and func_breakable for brushes that can be damaged etc.

These sound the most interesting parts as they add the most flexibility as opposed to just pre-made items to break/move. Anybody know why i can't see them in the entity list? Help would be most appreciated.

Thanks





Quote
Re: func_ entities?
Posted by Neural Scan on Sat Nov 20th at 11:34pm 2004


The problem is you're looking for a func_physbox point entity. Func_ entities are applied to brushes.

So first of all, create your brush, like a crate or metal bar or something. Then right click it and select 'Tie to Entity'. This will bring up an entity dialog thing, and you can choose which entity you want from a drop-down menu. So select func_physbox or whatever and set up the values

Hope this helps. Remember, create the brush and then tie to entity.





Quote
Re: func_ entities?
Posted by CuC on Sun Nov 21st at 2:09am 2004


If you're looking for the oildrums (for example) create an entity with the icon that looks like an i and change the entity to prop_physics.

After the entity cube appears on the map, go into it's properties and select World Model. Browse, and find the folder called props_c17, in there should be a file called oildrum001.jpg. Select that and the cube on the map will change to an oildrum.

That should be all you need to do.

Compile the map and play it. Shoot the barrel and it will fall over and roll or whatever you have done to it





Quote
Re: func_ entities?
Posted by radnad72 on Sun Nov 21st at 10:20pm 2004


Wow thanks alot Neural Scan. I could see that i would have to design the shape first but i couldn't find anyway to convert a brush to an entity. It all suddenly makes sense, thanks alot!

CuC, i knew how to make the oildrum already just by following the guide, but i am having a bit of trouble getting other items into my map. I have got glass bottles and cement blocks but most things i try just don't show up when i load the map. I think it's cause those items don't work as a prop_physics but i'm not sure. Thanks anyway!





Quote
Re: func_ entities?
Posted by CuC on Sun Nov 21st at 11:09pm 2004


If they don't load using prop_physics, try prop_static although that will not enable the model to move



Quote
Re: func_ entities?
Posted by RabidMonkey777 on Sun Nov 21st at 11:12pm 2004


The only cause of them not loading with prop_physics is when the model contains no physics data for the game to use - You can't place a gigantic tree with a prop_physics, for example.

Most of the 'Junk' models like glass bottles and cement blocks have physics data - So they should work with the prop_physics entity. Make sure they aren't stuck in a world brush or something.




Quote
Re: func_ entities?
Posted by ReNo on Sun Nov 21st at 11:28pm 2004


Make sure you haven't touched the resizable circles that can be dragged out from the centre of the prop_ entities, as these have been known to stop the objects being rendered for some reason. I don't know what they are for at the moment, hopefully the documentation will shed some light when I get round to reading more.
[addsig]




Quote
Re: func_ entities?
Posted by CPS on Mon Nov 22nd at 12:35am 2004


I assumed that those circles were something like center of gravity, but I have not fooled around with them.



Quote
Re: func_ entities?
Posted by ReNo on Mon Nov 22nd at 12:59am 2004


I marked Neural Scan's answer as correct, due to the fact the thread starter himself acknowledged it solved his problem.
[addsig]




Quote
Re: func_ entities?
Posted by Campaignjunkie on Mon Nov 22nd at 1:11am 2004


The "circle / spheres" affect the "Fademindist" property of the prop_ entity (it tells you in the bottom status bar). That radius determines how close you have to be to see the prop. You can just go to the Properties dialog and change it back to zero if you accidentally enlarge it. I've done that a few times too, heh, and wondered why my barrels weren't rendering.
[addsig]




Quote
Re: func_ entities?
Posted by Nanodeath on Mon Nov 22nd at 2:55am 2004


Thanks Campaignjunkie...despite that being relatively obvious (right on the screen when you edit it), I'd never noticed that! Very handy, I appreciate it.




Post Reply