Skip to content

Deal Damage

thomas edited this page May 23, 2018 · 7 revisions

On Round start cells open everybody got godmode. Damage will be shown in mid of screen.
Do so much damage as you can to enemy team. Team with most damage wins.

Commands

sm_dealdamage - Allows players to vote for a dealdamage 
sm_setdealdamage - Allows the Admin or warden to set dealdamage as next round
  
set your own custom command. take a look at "sm_dealdamage_cmds_***"

ConVars

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

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

// Set your custom chat command for Event voting(!dealdamage (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "dd, damage, deal"
sm_dealdamage_cmds_vote "dd, damage, deal"

// Set your custom chat command for set Event(!setdealdamage (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "sdd, sdeal, sdamage"
sm_dealdamage_cmds_set "sdd, sdeal, sdamage"

// 0 - disabled, 1 - allow warden to set dealdamage round
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_dealdamage_warden "1"

// 0 - disabled, 1 - allow admin/vip to set dealdamage round
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_dealdamage_admin "1"

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

// 0 - disabled, 1 - allow player to vote for dealdamage
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_dealdamage_vote "1"

// 0 - T teleport to CT spawn, 1 - cell doors auto open
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_dealdamage_spawn "1"

// 0 - disabled, 1 - use random spawns on map (sm_dealdamage_spawn 1)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_dealdamage_randomspawn "1"

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

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

// When users vote for event (!dealdamage) = 0 - start event next round, 1 - start event current round
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_dealdamage_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_dealdamage_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_dealdamage_teleport_spawn "0"

// 0 - disabled, 1 - Kill loserteam on event end
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_dealdamage_kill_loser "0"

// 0 - disabled, 1 - enable show results on a Panel
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_dealdamage_panel "1"

// 0 - disabled, 1 - enable print results in chat
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_dealdamage_chat "1"

// 0 - disabled, 1 - enable print results in client console
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_dealdamage_console "1"

// 0 - disabled, 1 - color the model of the players
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_dealdamage_color "1"

// Path to the model for team blue.
// -
// Default: "models/player/prisoner/prisoner_new_blue.mdl"
sm_dealdamage_model_blue "models/player/prisoner/prisoner_new_blue.mdl"

// Path to the model for team red.
// -
// Default: "models/player/prisoner/prisoner_new_red.mdl"
sm_dealdamage_model_red "models/player/prisoner/prisoner_new_red.mdl"

// Rounds to play in a row
// -
// Default: "2"
// Minimum: "1.000000"
sm_dealdamage_rounds "2"

// Round time in minutes for a single dealdamage round
// -
// Default: "2"
// Minimum: "1.000000"
sm_dealdamage_roundtime "2"

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

// Time in seconds players can't deal damage
// -
// Default: "15"
// Minimum: "0.000000"
sm_dealdamage_trucetime "15"

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

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

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

// 0 - disabled, 1 - enable sounds 
// -
// Default: "1"
// Minimum: "0.100000"
// Maximum: "1.000000"
sm_dealdamage_sounds_enable "1"

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

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

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

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

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

Files

/addons/sourcemod/plugins/MyJailbreak/dealdamage.smx
/addons/sourcemod/scripting/MyJailbreak/dealdamage.sp
/addons/sourcemod/translation/MyJailbreak.DealDamage.phrases.txt

Clone this wiki locally