I saw this happen in HL2: DM so I'm sure it's possible in Gmod. I don't want ragdolls staying around, I want them to fade away, or even better, disintegrate (combine ball effect). How would I do this?
For your first thing, try:
[code]ragdoll:Fire( "FadeAndRemove", "", 0)[/code]
I don't know about the combine ball effect, but that would be nice. ([url]http://developer.valvesoftware.com/wiki/Prop_ragdoll[/url])
For your second thing, you could just try a manual override with [url=http://wiki.garrysmod.com/?title=G.engineConsoleCommand]engineConsoleCommand[/url] and check player teams within the function.
I fixed the suicide thing with GM:CanPlayerSuicide.
For the ragdoll fade thing, I'll see if that works.
[editline]05:34PM[/editline]
Doesn't work, too bad. Entity.Fire is serverside...
Why do the ragdolls have to be clientside? Do they need to dissolve for some people but not others?
Maybe using [url=http://wiki.garrysmod.com/?title=CTakeDamageInfo.SetDamageType]DamageInfo:SetDamageType()[/url] to set the damage to DMG_DISSOLVE.
[QUOTE=Entoros;19101044]Why do the ragdolls have to be clientside? Do they need to dissolve for some people but not others?[/QUOTE]
Optimization. The server doesn't give a shit about ragdolls, they are here for decorative purposes. Anything which is there for the fancy and cannot interact with anything should be done clientside.
[QUOTE=CowThing;19101084]Maybe using [url=http://wiki.garrysmod.com/?title=CTakeDamageInfo.SetDamageType]DamageInfo:SetDamageType()[/url] to set the damage to DMG_DISSOLVE.[/QUOTE]
This. It should work.
Also, before you find out, if you don't already know, the client-side ragdoll class is, "class C_ClientRagdoll".
Slightly different from your typical "prop_type" format.
[QUOTE=CowThing;19101084]Maybe using [url=http://wiki.garrysmod.com/?title=CTakeDamageInfo.SetDamageType]DamageInfo:SetDamageType()[/url] to set the damage to DMG_DISSOLVE.[/QUOTE]
That worked, thanks!
[editline]09:30PM[/editline]
[QUOTE=andrewmcwatters;19104243]Also, before you find out, if you don't already know, the client-side ragdoll class is, "class C_ClientRagdoll".
Slightly different from your typical "prop_type" format.[/QUOTE]
Is this even relevant or am I missing something?
"How to make clientside ragdolls disintegrate?"
"prop_ragdoll" and "class C_ClientRagdoll" aren't the same entity class. Kill a horde of NPCs, and you'll find that out fast.
Sorry, you need to Log In to post a reply to this thread.