Description:
This is a cosmetic plugin intended for server donors. It allows players to change their enemies' ragdolls into something such as solid gold, ice, electrocuted, etc when the enemy is killed.
Video Demonstration:
Command:
sm_ragdoll - (Default Access: ADMFLAG_RESERVATION) Opens the Ragdoll menu.
Cool, but did you really have to use a switch just to disable the selection? Also a warning to anyone who use this, this uses tf_ragdoll entities, meaning it can lag the crap out of your server if everyone gets slain all at once.
Posted this in the SM Discord but I'll post here too;
1. Might want to toss #pragma newdecls required in there and recompile to see if you've forgotten anything. For example, I noticed a missing return type for OnClientCookiesCached.
2. That menu switch setup, yikes. Why not utilize your existing ragdollType[client] variable to determine which menu item to set to ITEMDRAW_DISABLED. Something like this quick and dirty thing I threw together:
Cool, but did you really have to use a switch just to disable the selection? Also a warning to anyone who use this, this uses tf_ragdoll entities, meaning it can lag the crap out of your server if everyone gets slain all at once.
That's assuming if everyone has access to sm_ragdoll in the first place, otherwise it's intended for admins/vips which is usually only a couple of players. Also, to help mitigate the lag, the ragdoll entity is killed after 20 seconds instead of the default despawn time.
Quote:
Originally Posted by 404UNF
Posted this in the SM Discord but I'll post here too;
1. Might want to toss #pragma newdecls required in there and recompile to see if you've forgotten anything. For example, I noticed a missing return type for OnClientCookiesCached.
2. That menu switch setup, yikes. Why not utilize your existing ragdollType[client] variable to determine which menu item to set to ITEMDRAW_DISABLED. Something like this quick and dirty thing I threw together:
Thanks for the tips.
I had made this plugin a couple years ago back when SM 1.7 came out, there use to be a compile error with OnClientCookiesCached in regards to the return type.