Skip to content

DuckHunt

thomas edited this page May 23, 2018 · 11 revisions

This plugin allows players to vote and warden or admin to start this or next round the event day duckhunt.
T are Chicken in Thirdperson. After trucetime the cells open and T got HE grenade but only secondary Attack! CT as heavy with nova .

Commands

sm_duckhunt - Allows players to vote for a duckhunt
sm_setduckhunt - Allows the Admin or warden to set duckhunt as next round
+drop (drop weapon) - toggle fly and walk for ducks when sm_duckhunt_flymode 1
  
set your own custom command. take a look at "sm_duckhunt_cmds_***"

ConVars

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

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

// Set your custom chat command for Event voting(!duckhunt (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "duck, hunt"
sm_duckhunt_cmds_vote "duck, hunt"

// Set your custom chat command for set Event(!setduckhunt (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "sduck, shunt, sduckhunt"
sm_duckhunt_cmds_set "sduck, shunt, sduckhunt"

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

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

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

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

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

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

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

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

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

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

// 0 - Low gravity, 1 - 'Flymode' (like a slow noclip with clipping). Bit difficult
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_duckhunt_flymode "1"

// HP the hunters got on Spawn
// -
// Default: "850"
// Minimum: "1.000000"
sm_duckhunt_hunter_hp "850"

// HP the Hunter get additional per extra duck
// -
// Default: "100"
// Minimum: "1.000000"
sm_duckhunt_hunter_hp_extra "100"

// HP the chicken got on Spawn
// -
// Default: "100"
// Minimum: "1.000000"
sm_duckhunt_chicken_hp "100"

// Time in seconds until cells open / players can't deal damage
// -
// Default: "15"
// Minimum: "0.000000"
sm_duckhunt_trucetime "15"

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

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

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

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

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

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

// Path to the start Overlay DONT TYPE .vmt or .vft
// -
// Default: "overlays/MyJailbreak/start"
sm_duckhunt_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_duckhunt_allow_lr "0"

Files

/addons/sourcemod/plugins/MyJailbreak/duckhunt.smx
/addons/sourcemod/scripting/MyJailbreak/duckhunt.sp
/addons/sourcemod/translation/MyJailbreak.DuckHunt.phrases.txt

Clone this wiki locally