Raised This Month: $32 Target: $400
 8% 

DoD:S NoNades


Post New Thread Reply   
 
Thread Tools Display Modes
Author
BackAgain
Junior Member
Join Date: Sep 2007
Plugin ID:
627
Plugin Version:
1.6
Plugin Category:
Fun Stuff
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Switches off or on a specific granade type.
    Old 11-08-2008 , 16:51   DoD:S NoNades
    Reply With Quote #1

    Hi all,

    DoD:S NoNades is a small but useful plugin. It enables or disables a specific granade type in Day of Defeat:Source. Since version 1.6, the players on the server are also able to decide whitch type of granades are allowed or not.

    Installation:
    1. Copy the file "dod_nonades.smx" to ../dod/addons/sourcemod/plugins
    2. The plugin is enabled by default
    Cvars:
    • sm_nonades_enabled (1=Enabled,0=Disabled), default=1
    • sm_nonades_filter (63=All nades filtered), default=63
    Admin commands:
    • sm_nonades_vote (Needs admin flag "k")
    Filter:

    1 = weapon_frag_ger
    2 = weapon_frag_us
    4 = weapon_smoke_ger
    8 = weapon_smoke_us
    16 = weapon_riflegren_ger
    32 = weapon_riflegren_us

    Example filter: [No smoke granades]
    4 + 8 = 12

    Code:
    sm_nonades_filter "12"

    Example filter:
    [No granades]
    1 + 2 + 4 + 8 + 16 + 32 = 63

    Code:
    sm_nonades_filter "63"
    Changelog:

    1.5
    • Added a filter system
    1.6
    • Added voting functionality
    • New admin command "sm_nonades_vote"
    Attached Files
    File Type: zip dod_nonades_1.5.zip (4.7 KB, 514 views)
    File Type: zip dod_nonades_1.6.zip (6.7 KB, 973 views)
    File Type: smx dod_nonades.smx (4.4 KB, 630 views)
    File Type: sp Get Plugin or Get Source (dod_nonades.sp - 1957 views - 5.3 KB)

    Last edited by BackAgain; 11-14-2008 at 08:20. Reason: Version update to 1.6
    BackAgain is offline
    tatercrisp
    SourceMod Donor
    Join Date: Mar 2008
    Location: Chicken Coop
    Old 11-10-2008 , 07:13   Re: DoD:S NoNades
    Reply With Quote #2

    works great. any way to switch off just smoke nades?
    tatercrisp is offline
    BackAgain
    Junior Member
    Join Date: Sep 2007
    Old 11-11-2008 , 04:01   Re: DoD:S NoNades
    Reply With Quote #3

    Quote:
    Originally Posted by tatercrisp View Post
    works great. any way to switch off just smoke nades?
    Hi, added a filter system. Now you can switch on or off "just" smoke granades. ;)
    BackAgain is offline
    tatercrisp
    SourceMod Donor
    Join Date: Mar 2008
    Location: Chicken Coop
    Old 11-11-2008 , 18:34   Re: DoD:S NoNades
    Reply With Quote #4

    Thanks for the quick update. And thanks for this plugin.
    tatercrisp is offline
    BackAgain
    Junior Member
    Join Date: Sep 2007
    Old 11-14-2008 , 08:23   Re: DoD:S NoNades
    Reply With Quote #5

    Hey guys, did a version update to 1.6 and added a voting functionality. Hope you enjoy it.

    Have fun

    BackAgain aka sMash
    BackAgain is offline
    QDM
    New Member
    Join Date: Sep 2007
    Old 02-11-2009 , 11:51   Re: DoD:S NoNades
    Reply With Quote #6

    Hi,

    This plugin needs an update. When I compile it, here's the compiler's message :

    Code:
    /home/groups/sourcemod/upload_tmp/texttHMxkL.sp(68) : warning 204: symbol is assigned a value that is never used: "CvarVersion"
    Header size:           2828 bytes
    Code size:             3796 bytes
    Data size:             1104 bytes
    Stack/heap size:      16384 bytes; Total requirements:   24112 bytes
    
    1 Warning.
    When I use your .smx, the grenades aren't blocked. Here's the console's message :

    Quote:
    ConVarRef sm_nonades_enabled doesn't point to an existing ConVar
    SetConVar: No such cvar ( sm_nonades_enabled set to 0), skipping
    Can you update it, please ? Thanks a lot.
    QDM is offline
    playboycyberclub
    Member
    Join Date: Jan 2023
    Location: Russian Federation
    Old 01-09-2023 , 21:51   Re: DoD:S NoNades
    Reply With Quote #7

    DoD:S NoNades Fix for SourceMod v1.11 or v1.12
    Attached Files
    File Type: sp Get Plugin or Get Source (dod_nonades.sp - 112 views - 4.5 KB)
    __________________

    Last edited by playboycyberclub; 01-10-2023 at 23:56. Reason: Removed .SMX. Not required.
    playboycyberclub is offline
    Reply


    Thread Tools
    Display Modes

    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 23:42.


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