AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Suicide Bomb (https://forums.alliedmods.net/showthread.php?t=146847)

NatalyaAF 01-02-2011 02:24

[CS:S] Suicide Bomb
 
2 Attachment(s)
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.

namine 01-02-2011 02:29

Re: [CS:S] Suicide Bomb
 
:3 Thanks I've been waiting for someone to do this out of the decency of their heart! Testing.

NatalyaAF 01-02-2011 02:30

Re: [CS:S] Suicide Bomb
 
Let me know if everything works right. It did for me but I only tried it on a Linux server.

namine 01-02-2011 03:04

Re: [CS:S] Suicide Bomb
 
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 01-02-2011 16:19

Re: [CS:S] Suicide Bomb
 
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

NatalyaAF 01-02-2011 17:20

Re: [CS:S] Suicide Bomb
 
If you set the timer to 0.1 it's pretty close to instant.

namine 01-06-2011 16:25

Re: [CS:S] Suicide Bomb
 
1 Attachment(s)
Here is an updated version.
!detonate is now !boom (its easier and faster to type)
Your suggested explosion effects are here too.

Groger 01-07-2011 13:43

Re: [CS:S] Suicide Bomb
 
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

SpazShot 01-07-2011 17:43

Re: [CS:S] Suicide Bomb
 
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. :mrgreen:

NatalyaAF 01-08-2011 01:58

Re: [CS:S] Suicide Bomb
 
Quote:

Originally Posted by SpazShot (Post 1388374)
• 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



All times are GMT -4. The time now is 05:54.

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