HL2 - Spawning objects in-game

HL2 - Spawning objects in-game

Re: HL2 - Spawning objects in-game Posted by MattyDienhoff on Tue Dec 21st 2004 at 12:31am
MattyDienhoff
9 posts
Posted 2004-12-21 12:31am
9 posts 1 snarkmarks Registered: Dec 21st 2004 Occupation: Student Location: Australia
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? :confused:
Re: HL2 - Spawning objects in-game Posted by Nickelplate on Tue Dec 21st 2004 at 2:06am
Nickelplate
2770 posts
Posted 2004-12-21 2:06am
2770 posts 346 snarkmarks Registered: Nov 23rd 2004 Occupation: Prince of Pleasure Location: US
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!
Re: HL2 - Spawning objects in-game Posted by MattyDienhoff on Tue Dec 21st 2004 at 10:36am
MattyDienhoff
9 posts
Posted 2004-12-21 10:36am
9 posts 1 snarkmarks Registered: Dec 21st 2004 Occupation: Student Location: Australia
I'm afraid i don't know what you mean. So you're saying give prop_physics won't work at all?
Re: HL2 - Spawning objects in-game Posted by MattyDienhoff on Thu Dec 30th 2004 at 6:23am
MattyDienhoff
9 posts
Posted 2004-12-30 6:23am
9 posts 1 snarkmarks Registered: Dec 21st 2004 Occupation: Student Location: Australia
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.
Re: HL2 - Spawning objects in-game Posted by Leperous on Thu Dec 30th 2004 at 6:01pm
Leperous
3382 posts
Posted 2004-12-30 6:01pm
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
Can I ask why you want to do this?
Re: HL2 - Spawning objects in-game Posted by MattyDienhoff on Fri Dec 31st 2004 at 10:40am
MattyDienhoff
9 posts
Posted 2004-12-31 10:40am
9 posts 1 snarkmarks Registered: Dec 21st 2004 Occupation: Student Location: Australia
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.
Re: HL2 - Spawning objects in-game Posted by MattyDienhoff on Sun Jan 2nd 2005 at 5:33am
MattyDienhoff
9 posts
Posted 2005-01-02 5:33am
9 posts 1 snarkmarks Registered: Dec 21st 2004 Occupation: Student Location: Australia
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? :rolleyes:
Re: HL2 - Spawning objects in-game Posted by Yak_Fighter on Sun Jan 2nd 2005 at 6:49am
Yak_Fighter
1832 posts
Posted 2005-01-02 6:49am
1832 posts 742 snarkmarks Registered: Dec 30th 2001 Occupation: College Student/Slacker Location: Indianapolis, IN
<DIV class=quote>
<DIV class=quotetitle>? quoting MattyDienhoff</DIV>
<DIV class=quotetext>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? :rolleyes:

</DIV></DIV>
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.
Re: HL2 - Spawning objects in-game Posted by MattyDienhoff on Sun Jan 2nd 2005 at 11:34am
MattyDienhoff
9 posts
Posted 2005-01-02 11:34am
9 posts 1 snarkmarks Registered: Dec 21st 2004 Occupation: Student Location: Australia
"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.
Re: HL2 - Spawning objects in-game Posted by Leperous on Sun Jan 2nd 2005 at 11:47am
Leperous
3382 posts
Posted 2005-01-02 11:47am
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
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.
Re: HL2 - Spawning objects in-game Posted by Yak_Fighter on Sun Jan 2nd 2005 at 11:47am
Yak_Fighter
1832 posts
Posted 2005-01-02 11:47am
1832 posts 742 snarkmarks Registered: Dec 30th 2001 Occupation: College Student/Slacker Location: Indianapolis, IN
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.
Re: HL2 - Spawning objects in-game Posted by MattyDienhoff on Tue Jan 11th 2005 at 2:51pm
MattyDienhoff
9 posts
Posted 2005-01-11 2:51pm
9 posts 1 snarkmarks Registered: Dec 21st 2004 Occupation: Student Location: Australia
Garrys Mod v5 (released 10-1-05) Has a spawn item menu that allows you to spawn objects directly into the game world. :smile: