Skip to content

Suicide Bomber

thomas edited this page May 23, 2018 · 6 revisions

On Round start CTs got time to hide before cells open and Ts got Suicide bombs to kill all CT.
CT and T can Sprint with USE-Key (default).

Commands

sm_suicidebomber - Allows players to vote for a duckhunt
sm_setsuicidebomber - Allows the Admin or warden to set Suicide Bomber as next round
sm_sprint - Start sprinting!
sm_makeboom - Suicide with bomb.

set your own custom command. take a look at "sm_suicidebomber_cmds_***"

ConVars

// 0 - disabled, 1 - enable this MyJailbreak SourceMod plugin
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_enable "1"

// Set your chat prefix for this plugin.
// -
// Default: "[{green}MyJB.SuicideBomber{default}]"
sm_suicidebomber_prefix "[{green}MyJB.SuicideBomber{default}]"

// Set your custom chat commands for Event voting(!suicidebomber (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "suicide, jihad, bomber"
sm_suicidebomber_cmds_vote "suicide, jihad, bomber"

// Set your custom chat commands for set Event(!setsuicidebomber (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "ssuicidebomber, ssuicide, sbomber, sjihad, setjihad"
sm_suicidebomber_cmds_set "ssuicidebomber, ssuicide, sbomber, sjihad, setjihad"

// 0 - disabled, 1 - allow warden to set Suicide Bomber round
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_warden "1"

// 0 - disabled, 1 - allow admin/vip to set Suicide Bomber round
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_admin "1"

// Set flag for admin/vip to set this Event Day.
// -
// Default: "g"
sm_suicidebomber_flag "g"

// 0 - disabled, 1 - allow player to vote for Suicide Bomber
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_vote "1"

// 1 - Inspect(look) weapon / 2 - walk / 3 - Secondary Attack
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "3.000000"
sm_suicidebomber_key "1"

// 0 - disabled, 1 - standstill(cant move) on Activate bomb
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_standstill "1"

// Rounds to play in a row
// -
// Default: "1"
// Minimum: "1.000000"
sm_suicidebomber_rounds "1"

// When admin set event (!setsuicidebomber) = 0 - start event next round, 1 - start event current round
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_begin_admin "1"

// When warden set event (!setsuicidebomber) = 0 - start event next round, 1 - start event current round
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_begin_warden "1"

// When users vote for event (!suicidebomber) = 0 - start event next round, 1 - start event current round
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_begin_vote "0"

// When warden/admin start eventday voting (!sm_voteday) and event wins = 0 - start event next round, 1 - start event current round
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_begin_daysvote "0"

// 0 - start event in current round from current player positions, 1 - teleport players to spawn when start event on current round(only when sm_*_begin_admin, sm_*_begin_warden, sm_*_begin_vote or sm_*_begin_daysvote is on '1')
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_teleport_spawn "0"

// Radius for bomb damage
// -
// Default: "200.0"
// Minimum: "10.000000"
// Maximum: "999.000000"
sm_suicidebomber_bomb_radius "200.0"

// Time to hide for CTs
// -
// Default: "20"
// Minimum: "0.000000"
sm_suicidebomber_hidetime "20"

// Round time in minutes for a single Suicide Bomber round
// -
// Default: "5"
// Minimum: "1.000000"
sm_suicidebomber_roundtime "5"

// Time in seconds until the beacon turned on (set to 0 to disable)
// -
// Default: "240"
// Minimum: "0.000000"
sm_suicidebomber_beacon_time "240"

// Rounds cooldown after a event until event can be start again
// -
// Default: "3"
// Minimum: "0.000000"
sm_suicidebomber_cooldown_day "3"

// Rounds until event can be start after mapchange.
// -
// Default: "3"
// Minimum: "0.000000"
sm_suicidebomber_cooldown_start "3"

// 0 - disabled, 1 - ignore the cooldown when admin/vip set suicide round
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_cooldown_admin "1"

// 0 - disabled, 1 - enable overlays
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_overlays_enable "1"

// Path to the start Overlay DONT TYPE .vmt or .vft
// -
// Default: "overlays/MyJailbreak/start"
sm_suicidebomber_overlays_start "overlays/MyJailbreak/start"

// 0 - disabled, 1 - enable sounds 
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_sounds_enable "1"

// Path to the soundfile which should be played for start.
// -
// Default: "music/MyJailbreak/start.mp3"
sm_suicidebomber_sounds_start "music/MyJailbreak/start.mp3"

// Path to the soundfile which should be played on activatebomb.
// -
// Default: "music/MyJailbreak/suicidebomber.mp3"
sm_suicidebomber_sounds_suicidebomber "music/MyJailbreak/suicidebomber.mp3"

// Path to the soundfile which should be played on detonation.
// -
// Default: "music/MyJailbreak/boom.mp3"
sm_suicidebomber_sounds_boom "music/MyJailbreak/boom.mp3"

// 0 - disabled, 1 - enable +use button for sprint
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_sprint_button "1"

// Time in seconds the player must wait for the next sprint
// -
// Default: "7"
// Minimum: "0.000000"
sm_suicidebomber_sprint_cooldown "7"

// 0 - disabled, 1 - enable ShortSprint
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_suicidebomber_sprint_enable "1"

// Ratio for how fast the player will sprint
// -
// Default: "1.30"
// Minimum: "1.009999"
// Maximum: "5.000000"
sm_suicidebomber_sprint_speed "1.30"

// Time in seconds the player will sprint
// -
// Default: "2.5"
// Minimum: "1.000000"
sm_suicidebomber_sprint_time "2.5"

Files

/addons/sourcemod/plugins/MyJailbreak/suicidebomber.smx
/addons/sourcemod/scripting/MyJailbreak/suicidebomber.sp
/addons/sourcemod/translation/MyJailbreak.SuicideBomber.phrases.txt

Clone this wiki locally