HL2 - Spawning objects in-game
Post Reply
Quote
Re: HL2 - Spawning objects in-game
Posted by MattyDienhoff on Tue Dec 21st at 12:31am 2004


I tried spawning objects in-game (mainly on Highway 17) by typing give prop_physics in the console, it said something along the lines of "error no model name" I can find out the model names of any object i want with the surfaceprop command so thats not the problem. I typed give prop_physics "/model/props_junk/wood_crate002a.mdl" and variations of that and it still didn't work. How do i enter the model name into the console so it will work?





Quote
Re: HL2 - Spawning objects in-game
Posted by Nickelplate on Tue Dec 21st at 2:06am 2004


You don't need to include the "models" part of the path. and you may not need the quotes either. First try to eliminate as much extra typing as you can by getting rid of the path. Pick a model in the model folder like "advisor.mdl" and test out different ways of typing the path and command until you find the right way, then you can add the path and a different model.
also, it'll spawn ON you so you'll have to noclip out of your props. Betta show yer prop_physics, dawg! [addsig]




Quote
Re: HL2 - Spawning objects in-game
Posted by MattyDienhoff on Tue Dec 21st at 10:36am 2004


I'm afraid i don't know what you mean. So you're saying give prop_physics won't work at all?





Quote
Re: HL2 - Spawning objects in-game
Posted by MattyDienhoff on Thu Dec 30th at 6:23am 2004


I still need help on this. Could someone explain in more detail how i can spawn objects in game? I already have a model list I just need to know how to type the command in the console correctly.





Quote
Re: HL2 - Spawning objects in-game
Posted by Leperous on Thu Dec 30th at 6:01pm 2004


Can I ask why you want to do this?





Quote
Re: HL2 - Spawning objects in-game
Posted by MattyDienhoff on Fri Dec 31st at 10:40am 2004


Can you? Sure, i'm a 'building hideouts with loose junk in hl2 maps' nut. I've got savegames of some crazy stuff i've done. But it's easier to spawn objects instead of spending 3 hours dragging every loose object from over the map.





Quote
Re: HL2 - Spawning objects in-game
Posted by MattyDienhoff on Sun Jan 2nd at 5:33am 2005


I came to this professional looking site hoping to find help on this, and i get a complicated; poorly explained solution and a "why would you want to do that?"

Is someone going to help me or not?





Quote
Re: HL2 - Spawning objects in-game
Posted by Yak_Fighter on Sun Jan 2nd at 6:49am 2005


? quoting MattyDienhoff
I came to this professional looking site hoping to find help on this, and i get a complicated; poorly explained solution and a "why would you want to do that?"

Is someone going to help me or not?

Perhaps the reason you have yet to receive the professional help you seek is that nobody who has read this thread knows how to help solve your predicament? I know I don't, so I'm sorry I can't help you. However, given the attitude you've got judging from this post I'd think you don't deserve any help. Why don't you go cry about your mistreatment at the hands of an internet forum to your mother.

[addsig]




Quote
Re: HL2 - Spawning objects in-game
Posted by MattyDienhoff on Sun Jan 2nd at 11:34am 2005


"Why don't you go cry about your mistreatment at the hands of an internet forum to your mother."

That was unneccessary. What i meant by "poorly explained solution" was I didn't understand Nickelplate's post completely and I asked a question about it which didn't get answered.





Quote
Re: HL2 - Spawning objects in-game
Posted by Leperous on Sun Jan 2nd at 11:47am 2005


Personally, I doubt there is a way to do this. Can you spawn a blue/red/whatever light entity? Can you spawn a gun facing in a certain direction? The point is that the model name is one of several properties of the prop_ entities, it is not something so integral that HL will know that the parameter you're adding after is meant to be the model.

IF this is possible there will be some switch telling you to use the "model" property, e.g. -model models/breen.mdl (along with, e.g. -skin 2, -mindxlevel 8 etc.). Click the smartedit button to see what I'm talking about.





Quote
Re: HL2 - Spawning objects in-game
Posted by Yak_Fighter on Sun Jan 2nd at 11:47am 2005


The ability to drop props into the map ingame would be very helpful for testing rendering speeds, so I'd like to figure this out. I tried to spawn models myself and I got the same result you did. I tried a bunch of different paths and names and nothing worked. I'll go look 'round the 'net to see if I can find something.

[addsig]




Quote
Re: HL2 - Spawning objects in-game
Posted by MattyDienhoff on Tue Jan 11th at 2:51pm 2005


Garrys Mod v5 (released 10-1-05) Has a spawn item menu that allows you to spawn objects directly into the game world.




Post Reply