View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-20-2012 , 23:11   Re: [TF2] Freak Fortress 2
#384

I'm going to have do more work on the ragdoll effects thing. Right now, I'm testing with setting the ice attribute after the player_death effect fires. player_death fires before the ragdoll is created, and checking the player entity's m_hRagdoll entity at that point gives you an incorrect entity if the player hasn't died previously. Setting the m_bIceRagdoll attribute using SetEntProp on the next frame seems to work (as long as it's Prop_Send) but doesn't change the ragdoll to ice.

Maybe I need to call ChangeEdictState on it, I'm not sure... I'll play around more with it later.

Also, does TF2 not respect the alpha transparency values for SetEntityRenderColor? I set it to 127 (valid values are 0-255) and it makes the model completely transparent!
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 04-20-2012 at 23:14.
Powerlord is offline