Description:
A gamemode where 1 random person is selected as the Hitman and rest are known as 'Targets'
The Hitman will get 1 random target to kill, and after he killed that target, he will get a new one.
Hitman
Objective: Eliminate all his targets
Shooting any nonsilenced weapons will reveal the Hitman to every player through walls (Excluding knife and tripmines)
If the Hitman is seen without a disguise, it will also reveal him to every player through walls
Killing/Hurting targets will backfire depending on the convar
hitmancsgo_penalty_type
Hitman features:- Hold WALK (Shift) to slow down gametime (Focus)
- Able to disguise from a assassinated players ragdoll by pressing USE (E)
- Able to move props/ragdolls by holding SECONDARY ATTACK (Rightclick)
- The Hitmans decoy grenade repositions his glow
- The Hitmans C4 acts as tripmines, placed by pressing PRIMARY ATTACK (Leftclick), Shooting them or walking past will trigger them, mine will not get triggered by hitman
- The Hitman has no spread on all of his weapons that he is spawned with
- Able to see his target through walls
Targets
Objective: Find and kill the Hitman before he kills you
Targets features:- Able to move props by holding SECONDARY ATTACK (Rightclick)
- The targets decoy grenades removes any disguises wherever its thrown
Basic Preview:
https://www.youtube.com/watch?v=IzyI_ZMv2FM
Commands:
hitmancsgo.smx- sm_hmgorefresh - Refreshes the hitmancsgo_weapons config
- sm_help - Prints useful hitman help commands to client
- sm_hitmaninfo - Prints hitman info to player
- sm_targetinfo - Prints target info to player
- sm_hmgonotify - Enables/Disables help notifications
hitmancsgo-mysql.smx- sm_tophitmen - Views the hitmen with best stats (Usage sm_tophitmen <steamid|name|#userid>) or just sm_tophitmen
Hitman Weapons Config:
How the ratio works is that it will give 1 weapon_decoy per 5 players with 1 ammo
Here is a list of all weapon names supported:
https://developer.valvesoftware.com/...nsive_Entities
Default example:
PHP Code:
"weapons"
{
"hitman"
{
"weapon_awp"
{
"clip" "10"
"ammo" "30"
}
"weapon_usp_silencer"
{
"clip" "12"
"ammo" "90"
}
"weapon_decoy"
{
"ammo" "3"
}
"weapon_c4"
{
"ammo" "5"
}
}
"targets"
{
"weapon_m4a1"
{
"clip" "30"
"ammo" "90"
}
"weapon_p250"
{
"clip" "13"
"ammo" "65"
}
"random"
{
"weapon_decoy"
{
"ratio" "5"
"ammo" "1"
}
}
}
}
MySQL Setup:
hitmancsgo-mysql.smx is required for stats to work, not needed for base plugin to work though
Insert in
addons/sourcemod/configs/databases.cfg
PHP Code:
"hitmancsgo"
{
"driver" "mysql"
"host" "(iptowebserver)"
"database" "sourcemod"
"user" "(username)"
"pass" "(password)"
}
ConVars:
Changelog:
Spoiler
v1.0
v1.01- Added convar hitmancsgo_disguise_hitman_on_round_start - 1 - Should the hitman be disguised on round start
v1.02
Added convars:
- hitmancsgo_punish_on_friendly_fire - 1 - Should targets get damaged if they kill another target?
- hitmancsgo_punish_on_friendly_fire_damage - 50.0 - Amount of damage to deal if 'hitmancsgo_punish_on_friendly_fire' is set to 1
v1.03
Fixed:
- Spectators being selected as hitman
- Spectators being selected as hitman targets
Added:
- Gamedata file (
Linux gamedata soon Exists now)
v1.04
Fixed:
v1.05
Fixed:
- Picking non alive players at hitman/targets
v1.06
Fixed:
- Showing who has a bomb on scoreboard
- Checking for valid client on playerdeath
v1.07
Fixed:
- Knifing teammates for slowdown (mp_tagging_scale 200)
v1.08
Fixed:
- Equipping knife to everyone after weapons are given
- Hitman was killed by world/self damage error
v1.09
Fixed:
- Damage penalties doing proper amount of damage set by convars
v1.10
Fixed:
- Tripmine bug where it would explode every frame until game restart
v1.11
Added:
- Silencers can no longer be removed by default (hitmancsgo_allow_removal_of_silencer = 0)
- Players with root access do not get punished as a target by default if they kill another target (hitmancsgo_root_non_punishable = 1)
Fixed:
- Error for showing top hitmen in hitmancsgo-mysql if database was not loaded properly
v1.12
Fixed:
- Crashing server if player dies while picking hitman
- Restarting round if player leaves while picking hitman
v1.13
Fixed:
- An issue where players with instructor messages enabled could see who has C4 (sv_gameinstructor_disable 1)
v1.14
Fixed:
- An error that occured where no target would be picked if the current target disconnects
v1.15
Fixed:
- Error where if the hitman pressed right click and has no valid weapon equipped
Dependencies:
DHooks extension is required for no spread. This extension is included in the download link though
Todo:
Nothing
Bugs:
None for now, if you have any bugs add me and I will try to fix ASAP steam link below
Credits:
Servers running this plugin:- 185.158.112.65:27015 (Russian)
DOWNLOAD
__________________