View Single Post
Author Message
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 07-22-2015 , 10:05   [CS:GO] Suicide Bomber (v1.04, 30/07/2015)
Reply With Quote #1

Suicide Bomber (v1.04)

By Invex | Byte



Description
A fun and rather fitting way to play with the the C4 bomb.
This plugin allows one or more terrorists to use the bomb as a suicide bomb.
They are able to suicide and detonate the bomb, killing or damaging all surrounding enemies.

This plugin was originally created for my combat Surf server as we decided we did not want to have any bomb sites on any of the surf maps. I cleaned up the plugin a little and added some extra configuration options before releasing it. The players seem to enjoy it (blowing up other people, not so much being killed by it).

Features
  • Have one or more suicide bombers
  • Give VIP players a higher chance of being selected
  • If friendly fire is on, teammates can be killed/damaged
  • Compatible with common spawn protection plugins
  • Plays explosion sound/scream
  • Can optionally disable bomb sites while this plugin is active.
  • Kills are awarded points by rank systems like gameME.

Acknowledgements
The player model render code was taken from cREANy0/Fredd's Spawn Protection plugin:
https://forums.alliedmods.net/showthread.php?p=594838
https://forums.alliedmods.net/showthread.php?t=204646

Instructions
  1. Compile suicide_bomber.sp (note: this plugin is written in the new SM syntax).
  2. Copy suicide_bomber.smx and all other plugin files to your server.
  3. Configure settings by editing /cfg/sourcemod/suicide_bomber.cfg
  4. In game, when you are picked as the suicide bomber, equip the bomb and press E to go kaboom.
  5. Come back to this thread and make some suggestions.

ConVars
sm_suicidebomber_botscanhavebomb "0" //Are bots allowed to be given the bomb (def. 0)
sm_suicidebomber_enabled "1" //Enable Suicide Bomber Plugin (0 off, 1 on, def. 1)
sm_suicidebomber_explosion_sound "sound/invex_gaming/misc/wtfboom_scream.mp3" // Explosion sound to play when a suicider bomber suicides. (def. "sound/invex_gaming/misc/wtfboom_scream.mp3")
sm_suicidebomber_highlight_BLUE "0" // Amount of blue in suicide bomber player colour. (min. 0, max. 255, def. 0)
sm_suicidebomber_highlight_GREEN "0" // Amount of green in suicide bomber player colour. (min. 0, max. 255, def. 0)
sm_suicidebomber_highlight_RED "255" // Amount of red in suicide bomber player colour. (min. 0, max. 255, def. 255)
sm_suicidebomber_killbombsite "1" // Disable bomb sites (0 off, 1 on, def. 1)
sm_suicidebomber_maxc4num "1" // Maximum number of C4 explosives to distribute (def. 1)
sm_suicidebomber_sptime "0.0" // Set this to a non-zero value if you use a spawn protection plugin that colours player models. Leave as 0.0 to autodetect some spawn protection plugins. (min. 0.0, def. 0.0)
sm_suicidebomber_vipenabled" "0", //"Enable VIP features. (def. 0)
sm_suicidebomber_vipflag "q" // VIP flag to give users a higher chance of receiving the bomb. Single letter, lowercase. (def. 'q')
sm_suicidebomber_vippickchance "3" // How many entries (total) do VIP players get when picking suicide bombers (min. 1, def. 3)

ConVar Information
  • Set the RGB values to all 255 if you want suicide bomber to have no particular colour.
  • If you want a custom sound file, simply change sm_suicidebomber_explosion_sound
  • If you use a spawn protection plugin that colours player models, set sm_suicidebomber_sptime to the spawn protection duration. Fredd's Spawn Protection/Easy Spawn Protection plugins are autodetected.
  • Obviously don't set nonsense values or the plugin won't work.
  • Formula for calculating AOE damage is: 200 - (d/2) where d is distance from suicide bomber to target. This seems to be a good formula for calculating the damage.

Screenshots
Juicy GIF:
https://gfycat.com/AgreeableInfatuatedBengaltiger

Going in for the kills.
Spoiler


Two down, two tagged. What a time to be alive.
Spoiler


Translations
If you feel like adding another language to the list, let me know!
  • English

Bugs
  • N/A

Changelog
Spoiler


Total Previous Downloads: 477
Attached Files
File Type: zip csgo-suicide-bomber-plugin-v1.04.zip (107.9 KB, 640 views)
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!


Last edited by Byte; 05-15-2017 at 17:33. Reason: reupload zip
Byte is offline