AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [TF2] Parent player onto another player? (https://forums.alliedmods.net/showthread.php?t=278115)

nergal 01-24-2016 21:58

[TF2] Parent player onto another player?
 
in TF2, is it possible to parent a player onto another player (similar to like a siamese twin)

and how would I do so?

thecount 01-25-2016 16:16

Re: [TF2] Parent player onto another player?
 
Sounds like it would be very buggy... or impossible.

Mitchell 01-25-2016 19:52

Re: [TF2] Parent player onto another player?
 
It's possible, but you'd be playing with fire.

nergal 01-25-2016 20:02

Re: [TF2] Parent player onto another player?
 
Quote:

Originally Posted by Mitchell (Post 2386568)
It's possible, but you'd be playing with fire.

why is that the case and could you show me with psuedocode?

Mitchell 01-25-2016 20:34

Re: [TF2] Parent player onto another player?
 
Quote:

Originally Posted by nergal (Post 2386570)
why is that the case and could you show me with psuedocode?

One wouldn't be able to move, as he would be the child. Idk what psuedocode you want me to show, as it's just the SetParent code that is posted almost everywhere now.
Just make sure you unparent the player before the leave the server.

nergal 01-26-2016 10:06

Re: [TF2] Parent player onto another player?
 
Quote:

Originally Posted by Mitchell (Post 2386575)
One wouldn't be able to move, as he would be the child. Idk what psuedocode you want me to show, as it's just the SetParent code that is posted almost everywhere now.
Just make sure you unparent the player before the leave the server.

They won't be able to move? That's kinda my intention actually!

It's just using SetParent?

do I use the usual string variant input or can I use the player's client index to do this?

I'd feel more "safer" using client indices than strings.

thecount 01-26-2016 10:25

Re: [TF2] Parent player onto another player?
 
!activator

Mitchell 01-26-2016 10:26

Re: [TF2] Parent player onto another player?
 
Quote:

Originally Posted by nergal (Post 2386711)
They won't be able to move? That's kinda my intention actually!

It's just using SetParent?

do I use the usual string variant input or can I use the player's client index to do this?

I'd feel more "safer" using client indices than strings.

just use !activator
Code:

SetVariantString("!activator");
AcceptEntityInput(child, "SetParent", parent, child, 0);

Oh also, maybe try making it so the player has MOVETYPE_NONE, just to be safe.

Benoist3012 01-26-2016 12:07

Re: [TF2] Parent player onto another player?
 
You can't, you will make the parented player crash.

friagram 01-26-2016 12:49

Re: [TF2] Parent player onto another player?
 
You can constantly teleport them


All times are GMT -4. The time now is 22:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.