Raised This Month: $51 Target: $400
 12% 

[L4D2] Model Precacher


Post New Thread Reply   
 
Thread Tools Display Modes
Author
satannuts
Member
Join Date: Jan 2010
Plugin ID:
1746
Plugin Version:
1.666.1
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Precaches models so z_spawn use doesn't crash the server.
    Old 06-19-2010 , 02:07   [L4D2] Model Precacher
    Reply With Quote #1

    [L4D2] Model Precacher
    by satannuts

    About:
    [L4D2] Model Precacher gives server admins the ability to precache select models on map start. This plugin is meant for servers that have any plugins installed that use z_spawn. You can control which group of models you want cached via convars: witch, survivors, weapons, and/or infected.

    I wrote this shortly after the Passing update was released to help prevent some crashes I was having with my server.
    I just noticed someone had recently released a similar plugin -
    So I thought I'd share mine also - as I think it is a little nicer.


    Usage:
    Install plugin and load it once. A l4d2_model_precacher.cfg will be automatically created in your left4dead2\cfg\sourcemod folder. In the cfg file, you can change which group you would like to precache.


    Cvars:

    l4d2_precache_bill - (default 1) - Toggle precaching of Bill's model to prevent crashes caused by sb_add

    l4d2_precache_survivors - (default 1) - Toggle precaching of survivor models to prevent crashes after the passing update

    l4d2_precache_m60 -
    (default 1) - Toggle precaching of the m60 model to prevent crashes caused by z_spawn

    l4d2_precache_cssweapons - (default 1) - Toggle precaching of css weapon models to prevent crashes caused by z_spawn

    l4d2_precache_melee - (default 1) - Toggle precaching of melee weapon models to prevent crashes caused by z_spawn

    l4d2_precache_misc -
    (default 1) - Toggle precaching of miscellaneous models to prevent crashes caused by z_spawn

    l4d2_precache_tank - (default 1) - Toggle precaching of tank model to prevent crashes caused by z_spawn

    l4d2_precache_witch -
    (default 1) - Toggle precaching of witch models to prevent crashes caused by z_spawn

    l4d2_precache_infected - (default 1) - Toggle precaching of infected models to prevent crashes caused by z_spawn

    Changelog:

    • 1.666.1
      • Corrected small typo - fixes compile error.
    • 1.666
      • Made a separate convar for Bill. ;)
      • Added a few more models and convars for them..
    • .666
      • Initial version

    Install
    This plugin supports only L4D2.

    You Can Either:
    1-Place l4d2_model_precacher.smx in sourcemod/plugins.

    2- Or compile l4d2_model_precacher.sp with your version of SM. And place the newly compiled l4d2_model_precacher.smx in sourcemod/plugins.

    3- Or you can edit the .sp file to add more models if you prefer, which can then be compiled and used to your liking.



    ENJOY!!
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_model_precacher.sp - 7366 views - 7.8 KB)
    __________________

    Last edited by satannuts; 06-19-2010 at 21:15. Reason: update
    satannuts is offline
    dani1341
    BANNED
    Join Date: Feb 2010
    Old 06-19-2010 , 02:16   Re: [L4D2] Model Precacher
    Reply With Quote #2

    cool but one question ? why the hell is Bill's (NamVet) survivor model precached ?
    dani1341 is offline
    gamemann
    Veteran Member
    Join Date: Sep 2009
    Location: Mullica Hill, New Jersey
    Old 06-19-2010 , 08:14   Re: [L4D2] Model Precacher
    Reply With Quote #3

    Quote:
    Originally Posted by dani1341 View Post
    cool but one question ? why the hell is Bill's (NamVet) survivor model precached ?
    well it probably is because there's some servers that uses the 8 survivor plugin with bill model so i think it was a good idea to precache that
    __________________
    Software/network engineer. I often work on a neat project called The Modding Community.

    Check out my GitHub here!
    gamemann is offline
    Send a message via Skype™ to gamemann
    satannuts
    Member
    Join Date: Jan 2010
    Old 06-19-2010 , 18:50   Re: [L4D2] Model Precacher
    Reply With Quote #4

    Quote:
    Originally Posted by gamemann View Post
    well it probably is because there's some servers that uses the 8 survivor plugin with bill model so i think it was a good idea to precache that
    danke.

    i made Bill a separate convar - and yes we are using this on 8 survivor plugin servers.
    made a few other minor additions.
    enjoy.
    __________________
    satannuts is offline
    iNFiNiTeX
    Senior Member
    Join Date: Dec 2009
    Old 06-19-2010 , 20:31   Re: [L4D2] Model Precacher
    Reply With Quote #5

    //// l4d2_model_precacher.sp
    // l4d2_model_precacher.sp(57) : error 036: empty statement
    //
    // 1 Error.
    //
    // Compilation Time: 0.3 sec
    iNFiNiTeX is offline
    satannuts
    Member
    Join Date: Jan 2010
    Old 06-19-2010 , 21:14   Re: [L4D2] Model Precacher
    Reply With Quote #6

    Quote:
    Originally Posted by iNFiNiTeX View Post
    //// l4d2_model_precacher.sp
    // l4d2_model_precacher.sp(57) : error 036: empty statement
    //
    // 1 Error.
    //
    // Compilation Time: 0.3 sec
    thanks for the bug report.

    Fixed and updated in the OP.
    __________________
    satannuts is offline
    gamemann
    Veteran Member
    Join Date: Sep 2009
    Location: Mullica Hill, New Jersey
    Old 06-19-2010 , 21:27   Re: [L4D2] Model Precacher
    Reply With Quote #7

    Nice plugin
    __________________
    Software/network engineer. I often work on a neat project called The Modding Community.

    Check out my GitHub here!
    gamemann is offline
    Send a message via Skype™ to gamemann
    Proton
    Junior Member
    Join Date: May 2007
    Old 07-04-2010 , 03:56   Re: [L4D2] Model Precacher
    Reply With Quote #8

    Thanks man! Very useful plugin!
    Proton is offline
    The Fub4r
    Junior Member
    Join Date: Sep 2010
    Location: In Poland?
    Old 10-09-2010 , 14:01   Re: [L4D2] Model Precacher
    Reply With Quote #9

    Can you make plugin that also precache a L4D 2 Survivors due to issue of The Sacrifice and No Mercy dlc?
    It will be really helpful!
    -Thanks 4 Response...
    __________________

    The Fub4r is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-09-2010 , 14:11   Re: [L4D2] Model Precacher
    Reply With Quote #10

    Could you please add precaching of weapons too? Thanks!
    __________________
    Silvers is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 02:33.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode