This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[TF2] Parent player onto another player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nergal
Veteran Member
Join Date: Apr 2012
Old 01-24-2016 , 21:58   [TF2] Parent player onto another player?
Reply With Quote #1

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

and how would I do so?
__________________
nergal is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 01-25-2016 , 16:16   Re: [TF2] Parent player onto another player?
Reply With Quote #2

Sounds like it would be very buggy... or impossible.
thecount is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-25-2016 , 19:52   Re: [TF2] Parent player onto another player?
Reply With Quote #3

It's possible, but you'd be playing with fire.
Mitchell is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 01-25-2016 , 20:02   Re: [TF2] Parent player onto another player?
Reply With Quote #4

Quote:
Originally Posted by Mitchell View Post
It's possible, but you'd be playing with fire.
why is that the case and could you show me with psuedocode?
__________________
nergal is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-25-2016 , 20:34   Re: [TF2] Parent player onto another player?
Reply With Quote #5

Quote:
Originally Posted by nergal View Post
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.

Last edited by Mitchell; 01-25-2016 at 20:34.
Mitchell is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 01-26-2016 , 10:06   Re: [TF2] Parent player onto another player?
Reply With Quote #6

Quote:
Originally Posted by Mitchell View Post
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.
__________________

Last edited by nergal; 01-26-2016 at 10:07.
nergal is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 01-26-2016 , 10:25   Re: [TF2] Parent player onto another player?
Reply With Quote #7

!activator
thecount is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-26-2016 , 10:26   Re: [TF2] Parent player onto another player?
Reply With Quote #8

Quote:
Originally Posted by nergal View Post
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.

Last edited by Mitchell; 01-26-2016 at 10:29.
Mitchell is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 01-26-2016 , 12:07   Re: [TF2] Parent player onto another player?
Reply With Quote #9

You can't, you will make the parented player crash.
__________________
Benoist3012 is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-26-2016 , 12:49   Re: [TF2] Parent player onto another player?
Reply With Quote #10

You can constantly teleport them
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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