CS2D Murder
==============================

Inspired by the Garry's Mod game mode of the same name.

1. General Gameplay
---------------------

The round begins with all players blinded and frozen for 10 seconds. One person is randomly chosen to be the murderer, and
the rest become innocent bystanders. One of the bystanders also receives a revolver with six bullets - with one shot in
the clip and 5 bullets extra.

In addition, the players' names are obscured - they each receive a random colour and a name consisting of two random
NATO phonetic alphabet letter names (e.g. Tango Uniform or Charlie X-ray).

It is recommended to have Fog of War on. Other settings are enforced within the script.

IMPORTANT: All players are placed into the Counter-Terrorist team on round restart and spawned at random position on the
map. As such, they may spawn in inaccessible areas of the map. Bear this in mind when creating or selecting maps for this
game mode.

IMPORTANT: A round of Murder can only start with 2 or more people. If there is only one player alive, then every player
joining will reset the round restart timer to 5 seconds - this is to ease the process of map transition.

2. The Murderer
---------------------

The goal of the murderer is to kill all bystanders. The only weapon in the murderer's arsenal is a knife, which they can
either stab with or throw. The knife's flying distance is 4 tiles, and it can ricochet off walls. A knife injury, be it
from a thrown knife or a stabbing, is always fatal.

If the murderer does not kill within one minute, their evil presence will start showing. In-game that appears as a black
smoke emanating from the player. The timer is reset back to 60 seconds if the murderer kills a bystander.

The murderer can also disguise as another dead player by walking over their corpse and pressing the use key (E by default).
This will make the murderer assume the colour and name of that dead player, and that name will be displayed to bystanders
when they move their cursor over the murderer. The corpse does not disappear, which is how bystanders can deduce that the
murderer is disguised. The murderer cannot drop their disguise; they can only disguise as another player. The disguise
action costs 1 loot (see section 5).


3. The Armed Bystander
---------------------

The armed bystander is the second active participant in the game. This player's goal is to kill the murderer. To that end
they are given a revolver which has 1 bullet in the clip and 5 bullets extra. A single revolver shot will kill the murderer.

The armed bystander CAN kill other innocent bystanders. Doing so will blind the armed bystander for 10 seconds and make
them drop the gun. For the duration of the blindness, the player cannot pick up the revolver - other unarmed bystanders,
however, can.

WARNING: Do not reload the revolver manually! Due to CS2D limitations, manually reloading the revolver will use up the extra
bullets until none are left.


4. The Bystanders
---------------------

The bystanders do not have an active role in the game per se. Their only 'weapon' is a pair of fists which does no damage.
They can still contribute, however, by finding corpses and calling out others on their suspicious behaviour.

A bystander can arm themselves by picking up the revolver dropped by the armed bystander, or by collecting 5 loot (see
section 5).


5. Loot
---------------------

Every 15 seconds, loot, or clues, will spawn at a random position on the map until the amount of clues on the map reaches 15.
Loot cannot spawn on unwalkable tiles and on tiles with the frame ID 0. However, it can spawn in blocked off areas of the
map.

Any player can pick up loot. For the murderer, loot is used in order to disguise as other players, whereas bystanders can
collect 5 loot to receive a revolver. For the armed bystander, collecting 5 loot replenishes their ammo supply back to 1 in
the clip and 5 extra.

The amount of loot collected by a player is displayed as score on the scoreboard. Killing a player will NOT make them drop
their loot.


6. Installation
---------------------

Copy the gfx, sfx and sys folders to your Counter-Strike 2D folder, merging and replacing if prompted. You can then either
set murder.lua as the mp_luaserver setting, or add the following line to server.lua or whichever Lua file you specified as
mp_luaserver:

dofile("sys/lua/murder.lua")