[TF2] Ragdoll Fix.
1 Attachment(s)
Hi everyone,
So one of my friends made a good discovery: https://photos-2.dropbox.com/t/2/AAC...&size=1280x960 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:
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. |
Re: [TF2] Ragdoll Fix.
It would be much better if you grabbed the current values from the player.
|
Re: [TF2] Ragdoll Fix.
They are not overriden, I tested it with the resize plugin. I'm actually setting the values before the entity is dispatched.
|
Re: [TF2] Ragdoll Fix.
You're setting them to 1.0. What if the player's torso size was 2.0? The ragdoll would not reflect his actual torso size. Right? @_@
Also, the plugin's filename is misspelled. |
Re: [TF2] Ragdoll Fix.
Quote:
|
Re: [TF2] Ragdoll Fix.
Quote:
Quote:
|
Re: [TF2] Ragdoll Fix.
I did try it. The torso size of the ragdoll was set to 1, rather than 4. It did fix the weirdness with the 0 size, though. I'll try to post a video of my experiences in a second.
EDIT: https://www.youtube.com/watch?v=8GP4dQq7v3s Code:
] sm plugins listWithout your plugin, the ragdoll body part sizes have about a small chance of being 0-size'd, and a large chance of being the same size that the actual player had. With your plugin, the ragdoll body part sizes have about a small chance of being 1-size'd, and a large chance of being the same size that the actual player had. |
Re: [TF2] Ragdoll Fix.
Quote:
Well at least we don't have squashed ragdolls now ^^ |
Re: [TF2] Ragdoll Fix.
Instead of OnEntityCreated I tend to use event_player_death, requestframe, and grab m_hRagDoll.
Dunno if that's really better or worse, but maybe it'll effect something. |
Re: [TF2] Ragdoll Fix.
Quote:
|
| All times are GMT -4. The time now is 21:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.