cage
Post Reply
Quote
Re: cage
Posted by acidcat on Mon Jan 24th at 1:09pm 2005


hi i have made a hanging cage with an npc in it out of a hollow phys box and rope however when the cage moves the npc falls out!
ive even tryed coating the inside of the cage with npcclip texture but the npc still falls out
anyone know how i can fix the npc in place but still have it moving around inside?
thanx




Quote
Re: cage
Posted by RaPtoR on Mon Jan 24th at 4:57pm 2005


If the NPC arn't going to get out of the box, then add the physbox as the NPC:s parent. He will now "move with the box" instead of folowing the normal laws of gravity . That should do the trick!
[addsig]




Quote
Re: cage
Posted by Livett on Mon Jan 24th at 5:04pm 2005


tried physbox multiplayer?



Quote
Re: cage
Posted by acidcat on Tue Jan 25th at 7:31am 2005


unfortunatly npc dont seem to have a parent option is there a way to do it with outputs/inputs section?

also cannot use prop_ physbox multiplayer as thats for existing props not for brushes which require funk_ entitys and unfortunatly there isnt a cage prop




Quote
Re: cage
Posted by JannemaN on Tue Jan 25th at 7:45am 2005


pun time: think out of the box.... but seriously.. try the ragdollcollide command. not that i think it works. .but just my 5 cents



Quote
Re: cage
Posted by RaPtoR on Tue Jan 25th at 3:13pm 2005


Only some NPC:s got the parent property.
Maybe the NPC falls down cuz you have made ONE physbox out of ALL the walls. I don't think the box would have any inside then. Why not make every wall it the box to a "func_brush" and make a physbox slightly larger than the real box outside. Cover the physbox in "nodraw" so it wont be visible. Then make the physbox as every "func_brush":es parent, so the real box will move with the invisible one.
[addsig]




Quote
Re: cage
Posted by acidcat on Tue Jan 25th at 9:30pm 2005


ok i got it working....
the funk brush didnt work lookes like the npc is staying in one place bolt upright when the cage moves!
however i looked through more npcs and you were right some (like 3) do have the parent option which works realy well and one of them (npc_alx) lets me change the model so i can have the npc of my choice (stalker) in the cage but it acts like alx would thats not realy a problem though

thanx for your help everyone





Post Reply