View Single Post
Author Message
CanadaRox
Member
Join Date: Dec 2009
Old 04-29-2010 , 19:15   [L4D2] Witch Precache
Reply With Quote #1

Description:
I was playing on a 10v10 server with an option to buy infected. The map was c6m1_riverbank and I tried to purchase a witch causing the server to crash. I found that what caused the crash was z_spawn witch, because the model was not precached.
What this plugin does is checks if the witch model and witch bride model are precached. If they aren't, it precaches to prevent crashing if a player or plugin uses "z_spawn witch" or "z_spawn witch_bride".

CVARs:
l4d2_witchprecache_enable 1/0 - Toggle precaching of witch models to prevent crashes caused by z_spawn witch/witch_bride (default: 1)

Changelog:
1.0
- Initial release
Attached Files
File Type: sp Get Plugin or Get Source (l4d2witchprecache.sp - 5590 views - 1.0 KB)

Last edited by psychonic; 05-11-2010 at 11:35. Reason: added public cvar to post header
CanadaRox is offline