[ANY] Dissolve Ragdolls
Here's a bit of code you can stick in any plugin to make players ragdolls dissolve on death.
Tested and working in ● Team Fortress 2 (though I'm sure this will work in other games such as DoD:S, L4D, L4D2, CS:S) Known bugs with this code ● [TF2] When playing as a Spy using the Dead Ringer, when you feign death, your fake corpse doesn't dissolve. (I'm not exactly sure how to fix this, so if someone could help me out, that'd be swell) Here's what the effect looks like ingame (TF2). The dissolving uses the effect from Half Life 2 for when you dissolve someone using those energy ball things. [IMG]http://img824.**************/img824/2194/dissolvescout.th.png[/IMG] (Click thumbnail to view fullsize image) PHP Code:
|
Re: [ANY] Dissolve Ragdolls
Quote:
|
Re: [ANY] Dissolve Ragdolls
Credits to L. Duke Dissolve (player ragdolls)
|
Re: [ANY] Dissolve Ragdolls
Quote:
This code isn't from his plugin. |
Re: [ANY] Dissolve Ragdolls
Quote:
Its not a PHP code its a actual code for a plugin that you can develop. |
Re: [ANY] Dissolve Ragdolls
So apparently we now have team-colored dissolving on weapons like the Righteous Bison, Cow Mangler 5000 and that new Engi weapon...uh...Short Circuit, I think.
Does anyone know how to change this dissolving code to use the team-colored dissolving? |
Re: [ANY] Dissolve Ragdolls
Probably set the dissolvetype to something else. Or set the death event's damagecustom to something.
This code looks awfully familiar. Also, instead of passing victim in the timer, you should pass GetEventInt(event, "userid") and then within the Timer_DissolveRagdoll, client = GetClientOfUserId(userid), check if the client's valid and not 0, and then do the rest of the stuff. |
Re: [ANY] Dissolve Ragdolls
Have you tried just changing the dissolver's m_iTeamNum ?
|
Re: [ANY] Dissolve Ragdolls
Doesn't seem to have any effect.
|
Re: [ANY] Dissolve Ragdolls
Quote:
I actually took the code from your plugin and turned it into it's own plugin. However, as I stated above, Dead Ringer Spies are left wide open because their fake corpses don't dissolve and I can't figure out how to make that work. |
| All times are GMT -4. The time now is 21:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.