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

[CS:S] Kick Bomb


Post New Thread Reply   
 
Thread Tools Display Modes
Author
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Plugin ID:
2540
Plugin Version:
1.2b
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Allow CTs to kick the dropped bomb
    Old 09-04-2011 , 16:43   [CS:S] Kick Bomb
    Reply With Quote #1

    DESCRIPTION:
    This plugin will allow the CT players the ability to kick the dropped C4. There is a 1.5 second delay before the bomb can be kicked again - this is to prevent players from kicking the bomb to an unreachable spot.

    To move the bomb, just press the USE key (default is E) while close to it and aiming at it with your crosshairs.
    With the addition of SDKHooks, now as the CT player walks/runs over the dropped bomb, it will be kicked.
    Added back by request, the player can also kick the bomb with the USE key if they are close enough.

    FLAGS:
    This plugin uses the CheckCommandAccess to allow players to kick the bomb. It is set to allow players with RESERVATION flag, but you can override that in the admin_overrides.cfg with whatever flag (or no flag) you want:

    admin_overrides.cfg
    Code:
    Overrides
    {
        "allow_kickbomb"     ""
    }
    That override would allow any CT player the ability to kick the bomb.

    CVARS:
    sm_kickbomb_delay Default = 1.5 | min. 0.100000 | max. 10.000000
    - Number of seconds to wait before bomb can be kicked again

    CREDITS:
    Zephyrus for the [ZR] Prop Push/Pull plugin - I basically just modified it to work only with the bomb.

    CHANGE LOG:
    Version 1.0
    - Initial Release

    Version 1.1
    - Added cvar to adjust the amount of time between allowed to kick the bomb - sm_kickbomb_delay (set in sourcemod.cfg or your map config file).

    Version 1.2
    * Now using SDKHooks for SDKHook_Touch (more advanced coders, make sure I didn't junk anything up)
    * Changed sm_kickbomb_delay minimum and maximum times
    - from MIN of 1.0 to 0.1 and MAX of 25.0 to 10.0
    * Added some global defines for cleaner code
    * Removed need to press the USE key... now as the CT's player model runs/walks over the dropped bomb, it will be kicked.

    Version 1.2a
    * Removed unneeded proximity code since we're using SDKHooks_Touch

    Version 1.2b
    * By request - added the ability to kick the bomb with the USE key

    INSTALLATION:
    Just put the KickBomb.smx into your cstrike/addons/sourcemod/plugins folder and either start the plugin manually, change the map, or restart the server. There are no configs for this plugin (other than the override if needed) - just the cvar to set the delay time limit.

    REQUIREMENTS:
    This plugin requires SDKHooks to work. Make sure you have that installed, otherwise, this plugin will not work. Due to using SDKHooks, you'll have to download the attached KickBomb.smx because the web compiler will not work.
    Attached Files
    File Type: sp Get Plugin or Get Source (KickBomb.sp - 1114 views - 4.9 KB)
    File Type: smx KickBomb.smx (4.6 KB, 1054 views)

    Last edited by TnTSCS; 09-24-2011 at 11:40. Reason: Update from 1.2a to 1.2b
    TnTSCS is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 09-04-2011 , 21:27   Re: [CS:S] Kick Bomb
    Reply With Quote #2

    hahahah great, it always annoys me that I can't shoot or kick it gj TnT

    PS

    just wondering as I haven't time to try this today, is the 1.5 second delay configurable?
    __________________
    Happy Happy Joy Joy


    Last edited by sinblaster; 09-04-2011 at 21:49.
    sinblaster is offline
    stigg
    Junior Member
    Join Date: Aug 2011
    Old 09-04-2011 , 22:19   Re: [CS:S] Kick Bomb
    Reply With Quote #3

    Sounds like fun, thanks for the share.
    stigg is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 09-04-2011 , 22:37   Re: [CS:S] Kick Bomb
    Reply With Quote #4

    I can make it configurable I guess... what would you set it to?

    I can also make the distance from the bomb you have to be before it will allow you to kick it...

    I'll make it configurable tomorrow
    TnTSCS is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 09-05-2011 , 09:30   Re: [CS:S] Kick Bomb
    Reply With Quote #5

    Quote:
    Originally Posted by TnTSCS View Post
    I can make it configurable I guess... what would you set it to?

    I can also make the distance from the bomb you have to be before it will allow you to kick it...

    I'll make it configurable tomorrow

    Great thanks

    Not working for me, maybe a no block plug issue?
    __________________
    Happy Happy Joy Joy


    Last edited by sinblaster; 09-05-2011 at 09:42.
    sinblaster is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 09-05-2011 , 10:55   Re: [CS:S] Kick Bomb
    Reply With Quote #6

    Quote:
    Originally Posted by sinblaster View Post
    Great thanks

    Not working for me, maybe a no block plug issue?
    That sux - I'll have to look at the no block plugins and how they work... do they allow you to run through things like barrels and junk on the ground?

    This plugin works on our test and production server
    TnTSCS is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 09-05-2011 , 12:04   Re: [CS:S] Kick Bomb
    Reply With Quote #7

    what no block plug do you use?

    looking at the code for this one doesn't seem to be blocking the interaction with a dropped bomb - Noblock players and grenades by bobbobagan
    TnTSCS is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 09-05-2011 , 12:04   Re: [CS:S] Kick Bomb
    Reply With Quote #8

    No not generally.
    Ill help you out and remove the no block plug so you can rule it out . I should of done that first sorry. It was just a thought.

    I added "allow_kickbomb" "" but it shouldn't matter as I am admin anyway.

    Ill get back to you when I can after trying with no "no block"
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 09-05-2011 , 12:10   Re: [CS:S] Kick Bomb
    Reply With Quote #9

    no its not no block. I dont know what to give you because I have no error logs at all it just doesn't move when I am near it, run over it or shoot at it etc

    Possibly wait for someone else's experience. I have it on CSS windows server latest dev sdkhooks latest released sm & mm
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 09-05-2011 , 13:32   Re: [CS:S] Kick Bomb
    Reply With Quote #10

    you have to use the USE key while you're aiming at it (crosshairs are on it) - mine is bound to E...

    DOH - I forgot to put that in the OP - Fixed... sorry about that

    Last edited by TnTSCS; 09-05-2011 at 13:34.
    TnTSCS 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 11:56.


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