prefabs in hl2, cssource, hl2dm
Post Reply
Quote
Re: prefabs in hl2, cssource, hl2dm
Posted by ishbog on Tue Dec 7th at 4:22pm 2004


I cant find any prefabs to use, or the prefab factory, etc. if i select a few objects(like parts to make a torch) and says "create prefab" and so i click it, then it gets the save as dialog, and i save it, but its not in my prefab library! also, since i dont really want to make all my own prefabs, how do i get the prefabs from hl2 or hl2dm? even cs source? i need some of that stuff! plz help me out here.





Quote
Re: prefabs in hl2, cssource, hl2dm
Posted by SnarkSephiroth on Tue Dec 7th at 4:45pm 2004


Thats because there are no prefabs in Half-Life 2. They are all models. Make a prop_physics or a prop_static and in the properties menu browse for a model. It will open up a window with folders in it and you can select any model in there. Enjoy.

[EDIT] posted by ReNo:

The problem here is probably because you need to ensure you use the correct prop_ entity for the correct models. For example, a light fitting won't appear if you place it as a prop_physics, while a barrel won't appear as a prop_static. In this case you have tried the obvious prop entity types, but you are using a complex prop. The computer is made up of various components that move together and split apart, and these more complex models need to be inserted using either prop_ragdoll or prop_dynamic, depending on the model in question. I think the computer would be inserted using a prop_dynamic, but I guess the only way to be sure would be to test it out

Hope this cleared things up a bit. [EDIT]

[addsig]




Quote
Re: prefabs in hl2, cssource, hl2dm
Posted by TSSThorn on Tue Dec 7th at 5:42pm 2004


Actualy prefabs do work in HL2 worldcraft. Trust me I already saved some prefabs and they worked fine.



Quote
Re: prefabs in hl2, cssource, hl2dm
Posted by ReNo on Tue Dec 7th at 6:00pm 2004


They work yes, but that doesn't mean there are any in Half-Life 2. The feature is there for you to make your own prefabs, but there are none provided by valve as there was with earlier editions of hammer. [addsig]



Quote
Re: prefabs in hl2, cssource, hl2dm
Posted by Sparky911 on Tue Dec 7th at 6:46pm 2004


? quoting TSSThorn
Actualy prefabs do work in HL2 worldcraft. Trust me I already saved some prefabs and they worked fine.

There is a HL2 worldcraft? All I have is Valve Hammer 4.0





Quote
Re: prefabs in hl2, cssource, hl2dm
Posted by MeatStick on Tue Dec 7th at 7:09pm 2004


From what I've seen the only prefab that came with Hammer from the SDK is a single BOX prefab. Think that was the name of it. at work so can't see it. From experimenting the prefab is actually INCREDIBLY handy. Build something, a room, with a bunch of stuff, entities, lights, textures, etc. Now just select the entire thing and hit Create Prefab, give it a name and boom. You can now select that prefab any number of times in the future from prefab list and slam into the map instantly. Very nice.



Quote
Re: prefabs in hl2, cssource, hl2dm
Posted by TSSThorn on Wed Dec 8th at 6:30am 2004


If you realy need prefabs just go into some already made levels and save what ever you can. I saved about 17 prefabs from lockdown.



Quote
Re: prefabs in hl2, cssource, hl2dm
Posted by TSSThorn on Wed Dec 8th at 6:32am 2004


? quoting Sparky911
? quoting TSSThorn
Actualy prefabs do work in HL2 worldcraft. Trust me I already saved some prefabs and they worked fine.

There is a HL2 worldcraft? All I have is Valve Hammer 4.0

Oh sorry did not know what they called it this time lol. I would know if I had it but my computer wont run it, so I go to my friends house to make all my maps. Well just for now untill I get a better pc.





Quote
Re: prefabs in hl2, cssource, hl2dm
Posted by ishbog on Wed Dec 8th at 4:10pm 2004


kk, i got the models, they work fine, (except trees :/) but i cant seem to create prefabs. i select my stuff, like parts of a torch, and save as torch1.vmf, but after that its not in my prefab section!



Quote
Re: prefabs in hl2, cssource, hl2dm
Posted by ReNo on Wed Dec 8th at 4:13pm 2004


Are you saving them as a prefab using the prefab factory (tools -> prefab factory)? I've not tested it yet and I'm not at my computer just now so I can't be sure if its a problem with the editor or just something at your end. [addsig]



Quote
Re: prefabs in hl2, cssource, hl2dm
Posted by ishbog on Wed Dec 8th at 4:39pm 2004


i generally try to use the "create prefab" button in the new objects bar, as i cant see(i used to be able to) the tools/prefab factory anymore.



Quote
Re: prefabs in hl2, cssource, hl2dm
Posted by Agent_21 on Mon Jul 24th at 10:17am 2006


I have this very same problem. Like when you download a prefab from this very site, I don't understand how to put it in, though I learn fast.



Quote
Re: prefabs in hl2, cssource, hl2dm
Posted by ishbog on Mon Jul 24th at 3:48pm 2006


yowza, bro, you took a long time gettin back here. The whole prefab system isn't like hl1 anymore; you generally use models for smaller, more complex objects. though, some people make prefabs (stairs, etc), which are just stored as vmf files.


www.nysteo.com

If animals weren't meant to be eaten, then they wouldn't be so delicious and easy to catch!

Face it: if crime didn't pay, there would be very few criminals.




Post Reply