Re: cage
Posted by acidcat on
Mon Jan 24th 2005 at 1:09pm
4 posts
0 snarkmarks
Registered:
Jan 24th 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 :sad:
anyone know how i can fix the npc in place but still have it moving around inside?
thanx
Re: cage
Posted by RaPtoR on
Mon Jan 24th 2005 at 4:57pm
RaPtoR
member
212 posts
61 snarkmarks
Registered:
Jan 1st 2005
Location: Sweden
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 :biggrin: . That should do the trick!
Re: cage
Posted by Livett on
Mon Jan 24th 2005 at 5:04pm
164 posts
46 snarkmarks
Registered:
Dec 24th 2004
Occupation: Student
Location: England
tried physbox multiplayer?
Re: cage
Posted by acidcat on
Tue Jan 25th 2005 at 7:31am
4 posts
0 snarkmarks
Registered:
Jan 24th 2005
unfortunatly npc dont seem to have a parent option :sad: 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 :sad:
Re: cage
Posted by JannemaN on
Tue Jan 25th 2005 at 7:45am
40 posts
34 snarkmarks
Registered:
Jan 21st 2005
Occupation: Programmer
Location: Sweden
pun time: think out of the box.... but seriously.. try the ragdollcollide command. not that i think it works. .but just my 5 cents
Re: cage
Posted by RaPtoR on
Tue Jan 25th 2005 at 3:13pm
RaPtoR
member
212 posts
61 snarkmarks
Registered:
Jan 1st 2005
Location: Sweden
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.
Re: cage
Posted by acidcat on
Tue Jan 25th 2005 at 9:30pm
4 posts
0 snarkmarks
Registered:
Jan 24th 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
:smile:
thanx for your help everyone