Skip to content

Knife Fight

thomas edited this page May 23, 2018 · 6 revisions

On Round start cells open everybody KnifeOnly with thirdperson, low gravity(Default), Iceskates and reduced HP(Default).

Commands

sm_knifefight - Allows players to vote for a knifefight 
sm_setknifefight - Allows the Admin or warden to set knifefight as next round

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

ConVars

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

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

// Set your custom chat command for Event voting(!knifefight (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "knifeday"
sm_knifefight_cmds_vote "knifeday"

// Set your custom chat command for set Event(!setknifefight (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "sknifefight, sknife"
sm_knifefight_cmds_set "sknifefight, sknife"

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

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

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

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

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

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

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

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

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

// 0 - disabled, 1 - enable thirdperson
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_knifefight_thirdperson "1"

// 0 - disabled, 1 - enable low gravity
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_knifefight_gravity "1"

// Ratio for Gravity 1.0 earth 0.5 moon
// -
// Default: "0.3"
// Minimum: "0.100000"
// Maximum: "1.000000"
sm_knifefight_gravity_value "0.3"

// 0 - disabled, 1 - enable iceskate
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_knifefight_iceskate "1"

// Ratio iceskate (5.2 normal)
// -
// Default: "0.2"
// Minimum: "0.100000"
// Maximum: "5.199999"
sm_knifefight_iceskate_value "0.2"

// Round time in minutes for a single knifefight round
// -
// Default: "5"
// Minimum: "1.000000"
sm_knifefight_roundtime "5"

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

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

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

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

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

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

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

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

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

// 0 - disabled, 1 - enable LR for last round and end eventday
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_knifefight_allow_lr "0"

Files

/addons/sourcemod/plugins/MyJailbreak/knifefight.smx
/addons/sourcemod/scripting/MyJailbreak/knifefight.sp
/addons/sourcemod/translation/MyJailbreak.KnifeFight.phrases.txt

Clone this wiki locally