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

[CS:S] Suicide Bomb


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NatalyaAF
Senior Member
Join Date: Dec 2008
Plugin ID:
2154
Plugin Version:
1.01
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Lets you buy a bomb to blow yourself up.
    Old 01-02-2011 , 02:24   [CS:S] Suicide Bomb
    Reply With Quote #1

    Suicide Bomb

    Description:
    This plugin lets you buy a bomb to blow yourself up. The bomb will follow the mp_friendlyfire CVAR on the server, so set that accordingly. Players type !bomb to open the bomb buy menu, and then !detonate to blow themselves up.

    The plugin has 3 configurable bombs -- small, medium, and large. You edit them with the CVARs you see below. I also made the bomb detonate at the player's eye level, so the explosion won't be clipped by curbs or stuff low down on the ground.

    The plugin comes with a French translation, but if someone wants to add another language please do it, then post it here so I can make it public.
    Changelog:
    • 1.00 -- First Public Release
    • 1.00 A -- Fixed an error message.
    • 1.01 -- If timer is 0.0 explosion will be instant.
    Also added sm_boom ( in addition to sm_detonate ) for players who only use the chat command, and added a cvar for detonation when hurt by the enemy team.
    CVAR List:
    • bomb_plugin_enabled (1) -- 1 enables the plugin, 0 disables it.
    • bomb_enabled_t (1) -- Can Terrorists buy the bomb? 0 or 1
    • bomb_enabled_ct (0) -- Can CTs buy the bomb? 0 or 1
    • bomb_1_price (5000) -- Price of small bomb. If negative the small bomb will be disabled.
    • bomb_1_damage (500) -- Magnitude of small bomb.
    • bomb_1_radius (128) -- Radius of small bomb.
    • bomb_1_time (20.0) -- Timer length on small bomb.
    • bomb_2_price (7500) -- Price of medium bomb. If negative the medium bomb will be disabled.
    • bomb_2_damage (1000) -- Magnitude of medium bomb.
    • bomb_2_radius (256) -- Radius of medium bomb.
    • bomb_2_time (15.0) -- Timer length on medium bomb.
    • bomb_3_price (10000) -- Price of large bomb. If negative the large bomb will be disabled.
    • bomb_3_damage (2000) -- Magnitude of large bomb.
    • bomb_3_radius (512) -- Radius of large bomb.
    • bomb_3_time (10.0) -- Timer length on large bomb.
    • bomb_damage_explode (0) -- If 1 you blow up when shot if you have a bomb.

    Player Commands:
    • sm_bomb -- Opens the bomb buy menu.
    • sm_detonate -- Detonates your bomb.
    • sm_boom -- Detonates your bomb.
    Installation:
    Simply put suicide_bomb.smx in your addons/sourcemod/plugins folder and the plugin.suicide_bomb.txt in the addons/sourcemod/translation folder. Restart the server, change the map, or do sm plugins load suicide_bomb to load the plugin.
    Attached Files
    File Type: txt plugin.suicide_bomb.txt (1.4 KB, 1200 views)
    File Type: sp Get Plugin or Get Source (suicide_bomb.sp - 2323 views - 14.9 KB)

    Last edited by NatalyaAF; 01-06-2011 at 22:15.
    NatalyaAF is offline
    namine
    SourceMod Donor
    Join Date: Jul 2010
    Old 01-02-2011 , 02:29   Re: [CS:S] Suicide Bomb
    Reply With Quote #2

    Thanks I've been waiting for someone to do this out of the decency of their heart! Testing.
    namine is offline
    NatalyaAF
    Senior Member
    Join Date: Dec 2008
    Old 01-02-2011 , 02:30   Re: [CS:S] Suicide Bomb
    Reply With Quote #3

    Let me know if everything works right. It did for me but I only tried it on a Linux server.
    __________________
    Talk to me on Steam: natalyaaf
    See my website for downloads: www.lady-natalya.info

    Natalya: killing someone while they make a plugin
    Natalya: perfect analogy
    Natalya: for the mayan apocalypse
    NatalyaAF is offline
    namine
    SourceMod Donor
    Join Date: Jul 2010
    Old 01-02-2011 , 03:04   Re: [CS:S] Suicide Bomb
    Reply With Quote #4

    Yes it works, also could you incorporate this:
    https://forums.alliedmods.net/showthread.php?t=70382
    What I mean is, if someone shoots someone with the bomb, they explode.
    namine is offline
    namine
    SourceMod Donor
    Join Date: Jul 2010
    Old 01-02-2011 , 16:19   Re: [CS:S] Suicide Bomb
    Reply With Quote #5

    People are pissed off that the bomb does not detonate immediately. I made the detonate delay as low as possible but it was no good. People want it like this:
    http://addons.eventscripts.com/addons/view/12346
    namine is offline
    NatalyaAF
    Senior Member
    Join Date: Dec 2008
    Old 01-02-2011 , 17:20   Re: [CS:S] Suicide Bomb
    Reply With Quote #6

    If you set the timer to 0.1 it's pretty close to instant.
    __________________
    Talk to me on Steam: natalyaaf
    See my website for downloads: www.lady-natalya.info

    Natalya: killing someone while they make a plugin
    Natalya: perfect analogy
    Natalya: for the mayan apocalypse

    Last edited by NatalyaAF; 01-02-2011 at 17:23.
    NatalyaAF is offline
    namine
    SourceMod Donor
    Join Date: Jul 2010
    Old 01-06-2011 , 16:25   Re: [CS:S] Suicide Bomb
    Reply With Quote #7

    Here is an updated version.
    !detonate is now !boom (its easier and faster to type)
    Your suggested explosion effects are here too.
    Attached Files
    File Type: sp Get Plugin or Get Source (suicide_bomb.sp - 1070 views - 12.8 KB)
    namine is offline
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 01-07-2011 , 13:43   Re: [CS:S] Suicide Bomb
    Reply With Quote #8

    Hi natalya

    Could you make so only ONE terrorist can buy a bomb at start of round
    + make it so somethimes the bomb doesn't explode, so people have to take a risk whene exploding, else it would be a suicidal mess @ our server
    Groger is offline
    SpazShot
    Senior Member
    Join Date: Nov 2009
    Old 01-07-2011 , 17:43   Re: [CS:S] Suicide Bomb
    Reply With Quote #9

    As the above post I would like similar features.

    • Certain % of suicide bomb failure. (Able to be configured.)
    • Be able to add/remove sized bombs so I can just have a small and large bomb.
    • Limit the amount of bombs allowed to be purchased. (Able to be configured.)
    • When a player buys a bomb you can see it as a C4 on their back. (Able to be enabled/disabled.)

    Great plugin, lot's of fun.
    SpazShot is offline
    NatalyaAF
    Senior Member
    Join Date: Dec 2008
    Old 01-08-2011 , 01:58   Re: [CS:S] Suicide Bomb
    Reply With Quote #10

    Quote:
    Originally Posted by SpazShot View Post
    • Be able to add/remove sized bombs so I can just have a small and large bomb.
    You can do that already. Just do this:

    bomb_2_price -1

    __________________
    Talk to me on Steam: natalyaaf
    See my website for downloads: www.lady-natalya.info

    Natalya: killing someone while they make a plugin
    Natalya: perfect analogy
    Natalya: for the mayan apocalypse
    NatalyaAF 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 07:53.


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