Raised This Month: $ Target: $400
 0% 

[TF2] Ragdoll Fix.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 04-21-2016 , 15:22   [TF2] Ragdoll Fix.
Reply With Quote #1

Hi everyone,
So one of my friends made a good discovery:


This probably reminds you the glitched ragdoll, from the dead ringer, or when you use the Roll The Dice plugin and you get the frozen state.
Or if you have Slender Fortress 2 and someone get killed by Dr.trager.

Well all of this was caused because the hand/torso/head scale were set to 0.

So this little code forces the values to 1.

Code:
public void OnEntityCreated(int iEntity,const char[] strClassname) {     if(StrEqual(strClassname,"tf_ragdoll"))     {         SetEntPropFloat(iEntity, Prop_Send, "m_flHeadScale", 1.0);         SetEntPropFloat(iEntity, Prop_Send, "m_flTorsoScale", 1.0);         SetEntPropFloat(iEntity, Prop_Send, "m_flHandScale", 1.0);     } }

You can copy/paste this part of code in your plugins, or if you are a server owner compile this snippet and add it to your plugins to fix everything.
Attached Files
File Type: sp Get Plugin or Get Source (ragdodllfix.sp - 526 views - 557 Bytes)
__________________

Last edited by Benoist3012; 04-22-2016 at 08:19.
Benoist3012 is offline
 


Thread Tools
Display Modes

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 21:12.


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