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

[CSS]Bomb drop control


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Nerus
Senior Member
Join Date: Aug 2010
Location: Poland
Plugin ID:
4622
Plugin Version:
v1.5 Mass changes
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Pass C4 to near terrorist player on some distance
    Old 05-03-2015 , 15:22   [CSS]Bomb drop control
    Reply With Quote #1

    Bomb Drop Control


    [
    Description]
    BDC
    : Pass C4 to near terrorist player on some distance.


    [Info]
    This plugin was made by a request.
    This plugin was tested only on CSS !
    Plugin is on GitHub (with morecolors)

    [Includes]
    • #include <sourcemod>
    • #include <sdktools>
    • #include <cstrike>
    • #include <morecolors>

    [Compiling]
    1. Recommended only for version with morecolors.
    2. To compile plugin you need download morecolors.inc to ".\cstrike\addons\sourcemod\scripting\include\"
    3. Put bombdropcontrol.sp to ".\cstrike\addons\sourcemod\scripting\"
    4. Run compiler with "spcomp.exe bombdropcontrol.sp" are in folder ".\cstrike\addons\sourcemod\scripting\"
    5. You will see compiled plugin bombdropcontrol.smx in scripting folder
    6. Done

    [
    Installing
    ]
    1. Copy/cut compiled bombdropcontrol.smx plugin file
    2. Put bombdropcontrol.smx to ".\cstrike\addons\sourcemod\plugins\"
    3. Extract bdc_translation.zip to ".\cstrike\addons\sourcemod\"

    [Features]

    1. Pass C4 to near (in range) terrorist player.
    2. Block drop C4 when player is out of range.
    3. Cant be dropped on critical places like water.
    4. Ads for player when cant be dropped (with deny sound) and teammate when pass.
    5. Ads can be disabled
    6. Deny sound can be disabled
    7. Lightweight.
    8. Auto-generate config file.
    9. ConVars.

    [ConVars]
    • sm_bdc_enable - Enable or disable the drop bomb restriction 0 - disabled, 1 - enabled
    • sm_bdc_version - Prints plugin version
    • sm_bdc_maximum_distance - Maximum distance to pass bomb, value must be > 100
    • sm_bdc_pass_bots - Enable or disable passing bomb for near bot 0 - disabled, 1 - enabled
    • sm_bdc_pass_advert - Enable or disable advertisements in chat on passing bomb 0 - disabled, 1 - enabled
    • sm_bdc_drop_advert - Enable or disable advertisement deny on drop bomb 0 - disabled, 1 - enabled
    • sm_bdc_drop_deny_sound - The name of the sound to play when an action is denied

    [Changes]


    v1.0 Initial Relase

    Changed method on player drop weapon affects:
    1. Performance increase against to older version (Alpha 0.5-0.6)
    2. Fixing bugs like:
    • on player die, sending information about block dropping
    • on player die, dropped bomb was removed from world
    • after drop, player didn't switch to previous gun
    v1.5 Mass changes
    • Adds/Remove ConVars
    • Fixed translation
    • Removed Morecolors
    • Added sound on drop deny
    • Changed to new syntax of SM 1.7+
    • Cleared source code
    Attached Files
    File Type: smx bombdropcontrol.smx (8.3 KB, 277 views)
    File Type: zip bomb drop control.zip (3.1 KB, 1037 views)

    Last edited by Nerus; 06-24-2015 at 14:10.
    Nerus is offline
    GrO
    Veteran Member
    Join Date: Jun 2010
    Location: Poland
    Old 05-03-2015 , 15:51   Re: [CSS]Bomb drop control [Needs review]
    Reply With Quote #2

    Good job mate. Will test this for sure, thanks.
    GrO is offline
    GrO
    Veteran Member
    Join Date: Jun 2010
    Location: Poland
    Old 05-03-2015 , 16:36   Re: [CSS]Bomb drop control [Needs review]
    Reply With Quote #3

    For the main part of requested functionality the plugin does the job, but after passing C4 to some teammate I have empty hands and this error I've found in the error logs:

    Quote:
    L 05/03/2015 - 22:21:20: SourceMod error session started
    L 05/03/2015 - 22:21:20: Info (map "de_dust") (file "errors_20150503.log")
    L 05/03/2015 - 22:21:20: [SM] Native "CS_DropWeapon" reported: Weapon index 150 is not valid
    L 05/03/2015 - 22:21:20: [SM] Displaying call stack trace for plugin "drop_on_death.smx":
    L 05/03/2015 - 22:21:20: [SM] [0] Line 350, /home/groups/sourcemod/upload_tmp/phpR5dGbw.sp:ropItems()
    L 05/03/2015 - 22:21:20: [SM] [1] Line 305, /home/groups/sourcemod/upload_tmp/phpR5dGbw.sp::Event_PlayerHurt()
    The error says about drop_on_death.smx, but appeared after loading Your plugin, weird.

    EDIT:
    Maybe this could help with the empty hands (@...:: TnT Edit ::...):
    https://forums.alliedmods.net/showpo...&postcount=157

    Regards.

    Last edited by GrO; 05-04-2015 at 16:07.
    GrO is offline
    GrO
    Veteran Member
    Join Date: Jun 2010
    Location: Poland
    Old 05-10-2015 , 17:23   Re: [CSS]Bomb drop control
    Reply With Quote #4

    Testing...

    EDIT:
    Plugin failed to compile and i think #include <morecolors> is useless in this plugin. Less is always better and it'll compile on the forum.

    Last edited by GrO; 05-10-2015 at 17:26.
    GrO is offline
    Nerus
    Senior Member
    Join Date: Aug 2010
    Location: Poland
    Old 06-24-2015 , 14:07   Re: [CSS]Bomb drop control
    Reply With Quote #5

    Bump, added new version 1.5.
    Nerus 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 16:02.


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