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

[CS:S/CS:GO] Equipment Drop (duplication bug fixed) (10/08/2013 Ver 1.8)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Blowst
Senior Member
Join Date: Feb 2011
Location: Korea, Republic of
Plugin ID:
3481
Plugin Version:
1.8
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
    12 
    Plugin Description:
    Allows Clients to Drop Their Knives and Greandes with 'G' Key (When default setting).
    Old 01-21-2013 , 07:13   [CS:S/CS:GO] Equipment Drop (duplication bug fixed) (10/08/2013 Ver 1.8)
    Reply With Quote #1

    Description:
    This plugin allows clients to drop Their knives and greandes with 'G' key (when default setting).


    and block a bug of duplicating nade!: Video explanation here

    PHP Code:
            //CS:S  iGame = 1
            //CS:GO iGame = 2
            
            
    new nSequence GetEntProp(weaponProp_Data"m_nSequence");
            if(...)
            {
                if(
    nSequence == || nSequence == || (nSequence == && iGame == 1) || (nSequence == && iGame == 2)) // Block nade duplicating by dropping a nade when player is uping his arm (right before throwing).

                
    or

                if((
    nSequence != && iGame == 1) || (nSequence != && iGame == 2)) // Block nade duplicating by dropping a nade when player is uping his arm (right before throwing).
                
    {
                    
    //codes of dropping a weapon... 
                
    }
            }
        }

    Code:
    The m_nSequence values of a nade
    
    in CS:S,
    
    0 = Player in handling a nade.
    1 = When a player gets ready to throw his nade. (pin has been pulled)
    5 = When a nade has been thrown.
    6 = When a player takes his nade out of his holder. (switch active weapon into a grenade)
    
    in CS:GO,
    
    0 = Player in handling a nade.
    1 = When a player gets ready to throw his nade. (pin has been pulled)
    2 = When a nade has been thrown.
    3 = When a player takes his nade out of his holder. (switch active weapon into a grenade)
    Cvar:
    • sm_equipment_drop_allows_enable: Enable Equipment Drop. (Def: 1)
    • sm_equipment_drop_allows_knife: Plugin allows players to drop their Knives (and golden knives in CS:GO). (Def: 1)
    • sm_equipment_drop_allows_hegrenade: Plugin allows players to drop their HE Grenades. (Def: 1)
    • sm_equipment_drop_allows_flashbang: Plugin allows players to drop their Flashbangs. (Def: 1)
    • sm_equipment_drop_allows_smokegrenade: Plugin allows players to drop their smokegrenades. (Def: 1)
    • sm_equipment_drop_allows_zeus: Plugin allows players to drop their Zeus x27s (CS:GO Only) (Def: 1)
    • sm_equipment_drop_allows_incgrenade: Plugin allows players to drop their Incendiary Grenades (CS:GO Only) (Def: 1)
    • sm_equipment_drop_allows_molotov: Plugin allows players to drop their Molotov Cocktails (CS:GO Only) (Def: 1)
    • sm_equipment_drop_allows_decoygrenade: Plugin allows players to drop their Decoy Grenades (CS:GO Only) (Def: 1)
       
    • sm_equipment_drop_allowed_team: Team index to allow to drop. (1 = Both, 2 = Terrorists, 3 = Counter-Terrorists) (Def: 1)
    • sm_equipment_drop_allows_admin_only: Administrator flags to allow to drop. (leave this empty when you would NOT like to set.) (Def: )
       
    • sm_equipment_drop_allow_time: The time when players can drop their Equipments. (* Second(s) later.) (Def: 0.0)
      0 = Until the time set as sm_equipment_drop_disallow_time (but it is 0, Allows Always).
      sm_equipment_drop_allow_time = sm_equipment_drop_disallow_time => Allow
    • sm_equipment_drop_disallow_time: The time when players can NOT drop their Equipments. (* Second(s) later.) (Def: 0.0)
      0 = Disable This Cvar
      sm_equipment_drop_allow_time = sm_equipment_drop_disallow_time => Allow
    • sm_equipment_drop_notify_drop_time: Notify at the time when players can or can not drop their Equipments. (Def: 1)
      0 = Disable Notifying
      1 = Notify
      2 = Notify + Round startup Notifying
    • sm_equipment_drop_notify_to_all: (Def: 0)
      0 = Only allowed player can see notifications.
      1 = Every player can see notifications.

    How To Install:
    Put Equipment Drop.smx in addons/sourcemod/plugins,
    EquipmentDrop.cfg in cfg/sourcemod
    and equipment_drop.phrases.txt in addons/sourcemod/translations. (if you need it)
    (if you use Allow (or Disallow or Both) Drop Time and notifying settings, you'll need it!)


    Changelog (Started from 1.4b):
    Code:
    1.8(10/08/2013)
    
    Grenade offset values up-to-date.
    
    Remove useless code.
    
    1.7(03/30/2013)
    
    Equipment Drop support team and administrator classification from now on.
    
    Added CVar 'sm_equipment_drop_allowed_team' for team classification.
    Added CVar 'sm_equipment_drop_allows_admin_only' for administrator classification.
    Added Cvar 'sm_equipment_drop_notify_to_all'.
    
    Changed CVar name 'sm_equipment_drop_notify_time' into 'sm_equipment_drop_notify_drop_time'.
    
    1.6(02/25/2013)
    
    Added Allow (or Disallow or Both) Drop Time and notifying for this settings
    
    So, follow 3 cvars have been added.
    
    sm_equipment_drop_allow_time
    sm_equipment_drop_disallow_time
    sm_equipment_drop_notify_time
    
    and plus one,
    
    sm_equipment_drop_allows_enable has been added for your convenience.
    
    Now, you need to make sure equipment_drop.phrases.txt is in your addons/sourcemod/translations
    
    but, you don't need this phrases file if you set sm_equipment_drop_notify_time to 0 or above three cvars to default value.
    
    1.5b(01/25/2013)
    
    Now blocks Zeus x27 spamming.
    (as a player drop his zeus right after firing... zeus has been dropped, but players can't pick it up.)
    
    1.5(01/25/2013)
    
    CS:GO supports added!
    
    follow 4 cvars have been added.
    
    sm_equipment_drop_allows_zeus
    sm_equipment_drop_allows_incgrenade
    sm_equipment_drop_allows_molotov
    sm_equipment_drop_allows_decoygrenade
    
    1.4b(01/25/2013)
    
    AutoExecConfig(true, "Equipment Drop"); => AutoExecConfig(true, "EquipmentDrop");
    
    'Equipment Drop.cfg' couldn't be loaded. Sorry.
    Really Sorry about my POOR English.
    If you don't mind, please help me to correct nongrammatical words or sentences in this post and this plugin.
    Attached Files
    File Type: cfg EquipmentDrop.cfg (3.0 KB, 1132 views)
    File Type: txt equipment_drop.phrases.txt (582 Bytes, 1128 views)
    File Type: sp Get Plugin or Get Source (Equipment Drop.sp - 2776 views - 12.4 KB)
    File Type: zip Every Version of Equipment Drop.zip (43.3 KB, 909 views)
    __________________
    Sorry about my poor English


    Last edited by Blowst; 10-10-2013 at 00:42.
    Blowst is offline
    TheKiwI
    Member
    Join Date: May 2011
    Old 01-23-2013 , 14:39   Re: [CS:S] Equipment Drop (Block Nade Duplicating)
    Reply With Quote #2

    Thanks for the fix.
    Need this for CSGO now
    __________________
    TheKiwI is offline
    Blowst
    Senior Member
    Join Date: Feb 2011
    Location: Korea, Republic of
    Old 01-23-2013 , 21:47   Re: [CS:S] Equipment Drop (Block Nade Duplicating)
    Reply With Quote #3

    Quote:
    Originally Posted by TheKiwI View Post
    Thanks for the fix.
    Need this for CSGO now
    Thanks

    Is CS_DropWeapon working on CS:GO?

    I found this, but i dont know that CSWeaponDrop can be used on CS:GO.
    __________________
    Sorry about my poor English


    Last edited by Blowst; 01-23-2013 at 22:22.
    Blowst is offline
    Blowst
    Senior Member
    Join Date: Feb 2011
    Location: Korea, Republic of
    Old 01-24-2013 , 14:33   Re: [CS:S] Equipment Drop (Block Nade Duplicating) 1.4b (01/25/2013)
    Reply With Quote #4

    1.5 updated!

    Now Equipment Drop supports CS:GO!
    __________________
    Sorry about my poor English


    Last edited by Blowst; 03-09-2013 at 09:53.
    Blowst is offline
    Blowst
    Senior Member
    Join Date: Feb 2011
    Location: Korea, Republic of
    Old 01-25-2013 , 07:28   Re: [CS:S/CS:GO] Equipment Drop (Block Nade Duplicating) (01/25/2013 Ver 1.5)
    Reply With Quote #5

    1.5b updated!
    __________________
    Sorry about my poor English

    Blowst is offline
    Blowst
    Senior Member
    Join Date: Feb 2011
    Location: Korea, Republic of
    Old 02-24-2013 , 12:48   Re: [CS:S/CS:GO] Equipment Drop (Duplicating bug fix!) (02/25/2013 Ver 1.6)
    Reply With Quote #6

    Equipment Drop updated to 1.6!
    __________________
    Sorry about my poor English


    Last edited by Blowst; 02-24-2013 at 12:52.
    Blowst is offline
    Blowst
    Senior Member
    Join Date: Feb 2011
    Location: Korea, Republic of
    Old 03-30-2013 , 03:13   Re: [CS:S/CS:GO] Equipment Drop (Duplicating bug fixed!) (03/30/2013 Ver 1.7)
    Reply With Quote #7

    Equipment Drop updated to 1.7!
    __________________
    Sorry about my poor English

    Blowst is offline
    Krolman
    New Member
    Join Date: Sep 2013
    Old 10-02-2013 , 21:22   Re: [CS:S/CS:GO] Equipment Drop (duplication bug fixed) (03/30/2013 Ver 1.7)
    Reply With Quote #8

    I can drop knives, and the Zeus but everything else won't work.
    Krolman is offline
    Blowst
    Senior Member
    Join Date: Feb 2011
    Location: Korea, Republic of
    Old 10-03-2013 , 23:39   Re: Re: [CS:S/CS:GO] Equipment Drop (duplication bug fixed) (03/30/2013 Ver 1.7)
    Reply With Quote #9

    Quote:
    Originally Posted by Krolman View Post
    I can drop knives, and the Zeus but everything else won't work.
    The offset values of nades are outdated.

    I'll update it soon .

    Thanks.
    __________________
    Sorry about my poor English


    Last edited by Blowst; 10-03-2013 at 23:56.
    Blowst is offline
    Blowst
    Senior Member
    Join Date: Feb 2011
    Location: Korea, Republic of
    Old 10-08-2013 , 10:24   Re: [CS:S/CS:GO] Equipment Drop (duplication bug fixed) (10/08/2013 Ver 1.8)
    Reply With Quote #10

    Equipment Drop has been updated to 1.8!
    __________________
    Sorry about my poor English

    Blowst 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 11:02.


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