[EngiN33R] Murder 
46 comments Inspired by the Garry's Mod game mode of the same name.
The Murder game mode simulates a real life crime situation. Players assume one of three roles - one player becomes the Murderer, one becomes the Armed Bystander, and the rest become innocent Bystanders.
This information is also available in the enclosed readme file in greater detail.
General gameplay
The round begins with all players blinded and frozen for 10 seconds. All 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). New names and colours are generated each round.
Roles
The Murderer
The goal of the murderer is to kill all bystanders. The murderer gets a knife, which can be either used to stab players with or thrown by pressing right mouse button. The knife's maximum flying distance is 4 tiles, and it can ricochet off walls. A hit with the knife is an instant kill.
If the murderer doesn't 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. This will make the murderer assume the colour and name of that dead player. 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.
The Armed Bystander
The armed bystander's goal is to kill the murderer. The armed bystander receives a revolver with one shot in the clip and 5 bullets extra. When the armed bystander is killed, the revolver is dropped and any bystander can pick it up. A hit with a revolver bullet is an instant kill.
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 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.
The Bystander
The bystanders cannot actively hunt the murderer - as such, their primary role is to avoid getting killed. They can still contribute by finding corpses and trying to find the murderer by calling out suspicious behaviour.
Any bystander can arm themselves by picking up a dropped revolver or by collecting 5 loot.
Loot
Every 15 seconds, loot will randomly spawn at a random position on the map until the amount of loot on the map reaches 15. Be wary that it can spawn in blocked off areas of the map.
Any player can pick up loot. For the murderer, it is used in order to disguise as other players, whereas bystanders can collect 5 loot to receive a revolver. If a player already has a weapon, 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.
Installation
Copy the gfx, sfx and sys folders to your CS2D folder. The archive includes a servertransfer.lst file - you will either have to replace or merge its contents with your existing file.
If you have server.lua or another Lua file as your mp_luaserver, add this line:
Alternatively, you can specify murder.lua as the value of mp_luaserver.
Please report any bugs you may find, and feel free to make suggestions - even though this mod is a reproduction of the Garry's Mod game mode, I am open to any ideas that might improve it.
The Murder game mode simulates a real life crime situation. Players assume one of three roles - one player becomes the Murderer, one becomes the Armed Bystander, and the rest become innocent Bystanders.
This information is also available in the enclosed readme file in greater detail.

The round begins with all players blinded and frozen for 10 seconds. All 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). New names and colours are generated each round.

The Murderer
The goal of the murderer is to kill all bystanders. The murderer gets a knife, which can be either used to stab players with or thrown by pressing right mouse button. The knife's maximum flying distance is 4 tiles, and it can ricochet off walls. A hit with the knife is an instant kill.
If the murderer doesn't 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. This will make the murderer assume the colour and name of that dead player. 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.
The Armed Bystander
The armed bystander's goal is to kill the murderer. The armed bystander receives a revolver with one shot in the clip and 5 bullets extra. When the armed bystander is killed, the revolver is dropped and any bystander can pick it up. A hit with a revolver bullet is an instant kill.
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 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.
The Bystander
The bystanders cannot actively hunt the murderer - as such, their primary role is to avoid getting killed. They can still contribute by finding corpses and trying to find the murderer by calling out suspicious behaviour.
Any bystander can arm themselves by picking up a dropped revolver or by collecting 5 loot.

Every 15 seconds, loot will randomly spawn at a random position on the map until the amount of loot on the map reaches 15. Be wary that it can spawn in blocked off areas of the map.
Any player can pick up loot. For the murderer, it is used in order to disguise as other players, whereas bystanders can collect 5 loot to receive a revolver. If a player already has a weapon, 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.

Copy the gfx, sfx and sys folders to your CS2D folder. The archive includes a servertransfer.lst file - you will either have to replace or merge its contents with your existing file.
If you have server.lua or another Lua file as your mp_luaserver, add this line:
Code:
1
dofile("sys/lua/murder.lua")
Alternatively, you can specify murder.lua as the value of mp_luaserver.
Please report any bugs you may find, and feel free to make suggestions - even though this mod is a reproduction of the Garry's Mod game mode, I am open to any ideas that might improve it.
edited 1×, last 02.06.14 11:08:31 am

Comments
46 commentsLog in!
You need to log in to be able to write comments!Log in

Yea,i really like this lua but there's a bug where bystanders spawn with knife.When the new rounds started,it gone blank and say what role you're suppose to be right?That's when the bug came out.The bystanders equip the knife during that time and try to attack even though they cant see anything.After for a few seconds,the people who supposed to be the bystander had a knife but they can't throw it and killing all the innocent people :/.

That very good lua, i'm very wanted it.But i have one problem.Its problem with knife - all players and bots can have knifes by bug with that knifes. Every round start u can select knife and it can works when intro ends.


@
EngiN33R: How long are you going to host(24/7) it for?
And after this whats your next project/MOD your working on. (or going to)

And after this whats your next project/MOD your working on. (or going to)
@
Seekay: I've thought of making fixed loot positions like in the original, yes. I'll probably update the script later so it reverts to random placement if there are no loot positions specified.
I've also opened a 24/7 server hosting this game mode. The IP is 81.95.152.189:36964.

I've also opened a 24/7 server hosting this game mode. The IP is 81.95.152.189:36964.

So loot is randomly placed, instead of fixed positions on the map? Aw. I always memorized the places where loot spawns, so I can just go around the map, while the murderer is going all Xena on my teammates' asses, until I reach 5 loot to get a gun and kill the murderer in the last second. Shit was good.
Anyways, it's gr8 m8, I r8 8/8. Hopefully some servers will host this. Would be a shame if it only lasts a couple of days and then suddenly everyone goes back to Happy Town.
Anyways, it's gr8 m8, I r8 8/8. Hopefully some servers will host this. Would be a shame if it only lasts a couple of days and then suddenly everyone goes back to Happy Town.

So many people liked it, but didn't even downloaded.
@
EngiN33R: Your mod are very good, I'll try to put on my server. I like it!
@


@
EngiN33R: Great Mod, It reminds me a Game thats similar to this. I forgot the Game Name..

