Raised This Month: $ Target: $400
 0% 

Plugin Approval Rules Discussion


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Downtown1
Veteran Member
Join Date: Mar 2004
Old 12-30-2009 , 20:01   Plugin Approval Rules Discussion
Reply With Quote #1

Additional L4D/L4D2 Approval Guidelines
  • Your plugin should not load outside of L4D/L4D2 if it doesn't support other mods. Snippet
    • Reason: It's confusing to have a plugin randomly fail because someone tried to load it on their TF2/CSS/etc server. Use GetGameFolderName and SetFailState if the mod isn't L4D/L4D2.

  • Your plugin should be inert when it's on an unsupported gamemode
    • Reason: If a gamemode breaks your plugin in unpredictable ways, then it shouldn't be doing anything on that gamemode. Simply hook the mp_gamemode convar change and disable your plugin if it's not a gamemode you expect.

  • All cvars should be prefixed with l4d_ or l4d2_.
    • Reason: Some plugins currently use a mix of sm_ and sm_l4d_ prefixes. sm_ implies cross-game functionality when L4D plugins typically don't work on other games. sm_l4d_ is just a longer way of l4d_. Also note that L4D2 itself does not have any public CVARs starting with an l4d_ prefix so it wouldn't be conflicting with existing game CVARs.

  • Any cvars that aren't your plugin's that are changed should have their old value remembered.
    • Reason: L4D has more game/hidden CVARs than other games, many times plugins change their values and conflict with each other. By remembering their values we take one easy step forward at reducing conflicts.

  • Any cvars that aren't your plugin's should have their values restored if a plugin is unloaded Snippet
    • Reason: Plugins should be able to cleanly unload and restore their state as before they were loaded.

  • mp_gamemode cvar should not be changed back and forth
    • Reason: Changing this cvar rapidly breaks the game in unpredictable ways. It is only meant to be used before changing the level.

These are meant to bring a higher level of consistency and compatibility between future L4D(2) plugins. Feel free to suggest further requirements.

Last edited by Downtown1; 12-31-2009 at 16:11.
Downtown1 is offline
 



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 22:06.


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