omfg setparenting D:

Napalm
250+ Posts
250+ Posts
Posts: 344
Joined: Sun Apr 11, 2010 1:48 am
Location: Louisiana

omfg setparenting D:

Post by Napalm » Tue Sep 14, 2010 8:01 am

Did you ever tell yourself that ?...
I did once :D

But I don't anymore >:D

now you don't have too either!!

basic Setparenting...

ok so you spawn you two props.. phyisics or dynamic [whichever floats your boat....]

then setname then both a differnt name like {bob] and {lawl]

thennn.....


type this in console....

ent_fire bob setparent lawl
I found a litte trick to doing this....

say the first one you name {bob} is the one your trying to setparent o the other prop...then that goes first like ent_fire >>BOB<<setparent lawl...


^^ If anyone has anything to add like advanced parenting plz post it :)
Oof.

User avatar
ßlade
Former Server Admin
Posts: 265
Joined: Fri Aug 06, 2010 2:08 pm

Re: omfg setparenting D:

Post by ßlade » Tue Sep 14, 2010 10:40 am

Unfortunatly i do not have much time since im trying to stop being addicted to hl2dm and scripting and getting back into reallife.

And instead of flaming about you, just want to help... i will try to join and share a bit of my knowledge.

ent_fire prop setparent prop2 // <= Known and explained above
ent_fire prop clearparent //<= removes the parent :!:

And something cool:

ent_fire prop setparentattachment <attachment>


What does it do ? And... HAO BLADE HAO ?
Okay, always wondered how to make a Melon attach to your head without glue ?
Well, here comes the solution => setparentattachment

Example:
ent_setname melon
ent_fire melon setparent bla
ent_fire melon setparentattachment anim_attachment_head// thats the name of the attachment for the head, so dont wonder about it ( Only the player models have this attachment, dont try to parent the melon to the head of a blastdoor...)


FAQ:
Okay... the melon knows where to attach... but not to what prop ?
=> You always need to parent it to the prop first, this kinda sets its parent"target"

Are there more attachments ?

=> Yes. anim_attachment_rh and lh // right hand & left hand ( Ofc there more, but how and where to find those will probably be showed in my next post )

Wait, arnt you in SaD ?
=> True... but theres a big difference between teaching stuff (which is totally okay btw) and just uploading it for all teh noobs in teh world.


Have fun, Blade
PS: Doesnt work with classname.
PSS:
I found a litte trick to doing this....
Cant find the tricky part O.o what do you mean ?
"Coming in peace is for simpletons and dullards! I come in AWESOME!" - The Duke

Jack
Former Server Admin
Posts: 1251
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: omfg setparenting D:

Post by Jack » Tue Sep 14, 2010 11:38 am

Best script <3

prop_dynamic_create napalm/gaybitch.mdl
ent_setname napalmisgay
ent_fire napalmisgay addoutput "rendercolor 1 3 3 7"
ent_fire napalmisgay addoutput "health 1"
ent_fire napalmisgay color 1
wait;wait;wait;wait
exec lab
name NAPALM IS GAY
writeconfig
prop_dynamic_create napalm/napalmchair.mdl
ent_fire napalmisgay setparent
clear
echo ADMIN HACK IS NOW LOADED!


lol hahahahhahahaha

Napalm
250+ Posts
250+ Posts
Posts: 344
Joined: Sun Apr 11, 2010 1:48 am
Location: Louisiana

Re: omfg setparenting D:

Post by Napalm » Tue Sep 14, 2010 5:53 pm

fuck you too bitch <3
Oof.

Napalm
250+ Posts
250+ Posts
Posts: 344
Joined: Sun Apr 11, 2010 1:48 am
Location: Louisiana

Re: omfg setparenting D:

Post by Napalm » Tue Sep 14, 2010 9:07 pm

and i mean by the trick is if you do this,,,, name one bob then toher lawl say your trying to setparent bob to lawl but you type ent_fire lawl setparent bob it fucks up....
Oof.

User avatar
ant_8490
Site Admin
Posts: 4388
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: omfg setparenting D:

Post by ant_8490 » Tue Sep 14, 2010 10:40 pm

The command "setparent" isnt just named that for the hell of it. It means: link the child-prop to a parent-prop, so order does matter.
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10

Anonymous

Re: omfg setparenting D:

Post by Anonymous » Wed Sep 15, 2010 10:53 am

Napalm wrote:and i mean by the trick is if you do this,,,, name one bob then toher lawl say your trying to setparent bob to lawl but you type ent_fire lawl setparent bob it fucks up....
Lol. Again: Wheres the trick? xD setparent means ... "1 setparent TO 2" Lol :D

Napalm
250+ Posts
250+ Posts
Posts: 344
Joined: Sun Apr 11, 2010 1:48 am
Location: Louisiana

Re: omfg setparenting D:

Post by Napalm » Wed Sep 15, 2010 11:39 pm

Tell this to a noob in person and watch their face...
Oof.

User avatar
ßlade
Former Server Admin
Posts: 265
Joined: Fri Aug 06, 2010 2:08 pm

Re: omfg setparenting D:

Post by ßlade » Wed Sep 15, 2010 11:59 pm

Hey Enel, x setparent y means => x got its parent set to y
"Coming in peace is for simpletons and dullards! I come in AWESOME!" - The Duke

User avatar
ant_8490
Site Admin
Posts: 4388
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: omfg setparenting D:

Post by ant_8490 » Thu Sep 16, 2010 7:03 am

Napalm wrote:Tell this to a noob in person and watch their face...
Combine and Rebel faces don't change too much in game.
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10

Anonymous

Re: omfg setparenting D:

Post by Anonymous » Thu Sep 16, 2010 9:13 am

ant_8490 wrote:
Napalm wrote:Tell this to a noob in person and watch their face...
Combine and Rebel faces don't change too much in game.
Hahahha xD Lol, nice one :D

Napalm
250+ Posts
250+ Posts
Posts: 344
Joined: Sun Apr 11, 2010 1:48 am
Location: Louisiana

Re: omfg setparenting D:

Post by Napalm » Thu Sep 16, 2010 7:01 pm

ehhh goddamnit does anyone get that was meaning in real life >.>
Oof.

Anonymous

Re: omfg setparenting D:

Post by Anonymous » Mon Sep 27, 2010 3:10 am

Hmmm i did...
MAYBE