Raised This Month: $51 Target: $400
 12% 

[TF2] Disabling physics push when walking through teammates


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Darkimmortal
Senior Member
Join Date: Aug 2008
Old 12-24-2009 , 20:11   [TF2] Disabling physics push when walking through teammates
Reply With Quote #1

That little push you get when walking through teammates is a major cause of issues on the Balloon Race map, so I'm wondering if there is a way of disabling it without getting into MM:S plugins?

I've tried messing with collision groups to no avail. (Best I can do is make enemies non solid)

I did notice:

Code:
COLLISION_GROUP_PUSHAWAY  // Nonsolid on client and server, pushaway in player code
What exactly would it take to change that "player code"?
__________________

Last edited by Darkimmortal; 12-24-2009 at 20:17.
Darkimmortal is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 12-24-2009 , 20:18   Re: [TF2] Disabling physics push when walking through teammates
Reply With Quote #2

sm_cvar tf_avoidteammates 0
noodleboy347 is offline
Darkimmortal
Senior Member
Join Date: Aug 2008
Old 12-24-2009 , 20:24   Re: [TF2] Disabling physics push when walking through teammates
Reply With Quote #3

Thanks!

And that can even be embedded in the map too, awesome.
__________________
Darkimmortal is offline
Geit
Senior Member
Join Date: Oct 2009
Location: Home
Old 12-24-2009 , 20:27   Re: [TF2] Disabling physics push when walking through teammates
Reply With Quote #4

Quote:
Originally Posted by Darkimmortal View Post
Thanks!

And that can even be embedded in the map too, awesome.

And a big thanks from me too!
Geit is offline
Jindo
AlliedModders Donor
Join Date: May 2009
Location: England, UK
Old 12-26-2009 , 02:45   Re: [TF2] Disabling physics push when walking through teammates
Reply With Quote #5

Quote:
Originally Posted by Darkimmortal View Post
I did notice:

Code:
COLLISION_GROUP_PUSHAWAY  // Nonsolid on client and server, pushaway in player code
What exactly would it take to change that "player code"?
This is just for reference, but to change a collision group you alter the player or entity's property like so:

PHP Code:
#define COLLISION_GROUP_PUSHAWAY 17

...

SetEntProp(clientProp_Data"m_CollisionGroup"COLLISION_GROUP_PUSHAWAY); 
__________________
Jindo 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 01:59.


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