"Casualties: Together" Co-Op Mod by Krokosha666 for game "Casualties: Unknown"
Official link: https://github.com/Krokosha666/cas-unk-krokosha-multiplayer-coop
buymeacoffee: https://buymeacoffee.com/krokosha666

# Port Forwarding:
This mod uses UDP protocol.
Default port: 7790 

# New Files saved:
%LocalAppData%Low/Orsoniks/CasualtiesUnknown/mp_rule_presets.json  -  where the rule presets are saved
%LocalAppData%Low/Orsoniks/CasualtiesUnknown/mp_banlist.json  -  is for people you banned
%LocalAppData%Low/Orsoniks/CasualtiesUnknown/mp_save/   - is new location for save files  

# Console commands:
This mod adds mutliplayer-exclusive console commands.

Write "help" into the console to see them all.

"rule sv_cheats 1" to enable all commands (server-only)
"rule AllowClientCheatCommands 1" allows only local client-sided cheat commands, it does enable cheat commands for clients, commands are not synced, you must enter server console for real cheat commands like spawning and such
"adminpriv-password" to give access to server console to a client who knows the password
"adminpriv" to give access to server console to a client
"admin" to enter server console as a client (to use most cheat commands) (takes password if ur not whitelisted)
"maxplayers [number]" (default is 16)

"currentrules" to see game rules
"rule [rule name] [value]" is for:
	- enable permadeath
	- re-enable changing time speed 
	- re-enable sleeping 
	- and much more things for people to tweak the game into a better experience 
	- at the end of the file all rules are explained 
"kick [name]" to forcibly disconnect a player
also some commands that require player name as input can accept macros: 
 - "@m" (local player)  
 - "@a" (everyone)
 - "@r" (random)
 - "@c" (anyone at your cursor location (or the nearest) )
 - players can be directly referenced with their ids, like "id:0" or "id:123" 
 - so you can do "heal @a" - which heals everyone
 - or you can do "heal @c" - which heals someone at your cursor 
 - or you can do "heal ClientGuy" - which heals ClientGuy 
 - or you can do "heal id:1" - which heals ClientGuy, assuming it's their id (id is shown in the player list)

"give" command is more advanced way to spawn items. it automatically loads any guns or magazines.


# Keybinds:
"krokosha_coop_pointfingerat" default: Mouse2  (middle mouse button)
"krokosha_coop_chat" default: Slash
"krokosha_coop_voicechat" default: V
"krokosha_coop_woundview" default: R
"krokosha_coop_push" default: F
"krokosha_coop_piggyback" default: P
"krokosha_coop_carry" default: K
"krokosha_coop_inventory" default: O
"krokosha_coop_showplrs" default: LeftShift


Are added to the "settings.json" automatically.


# Available startup os command arguments:  
--ksmulti-immidiate-start	// start the world as soon as the game initializes 
--ksmulti-setstarttutorial  // requires immidiate start, makes the world start in tutorial
--ksmulti-verbose			// logs more info about synchronization (useful for reporing bugs)
--ksmulti-ip-port 127.0.0.1:7790   // override ip and port
--ksmulti-setname My_Custom_User_Name  // override username
--ksmulti-setpass 123		// override password
--ksmulti-starthost			// start host once the game initializes (on the specified port)
--ksmulti-startclient		// start client once the game initializes (it tries to connect to the specified ip instantly)
--ksmulti-startserver		// start dedicated server once the game initializes (on the specified port), also sets "AutoContinue" rule to true automatically
--ksmulti-min-plr-count	[int]	// for AutoContinue rule, it tells dedicated server what is the minimum player count to automatically start the run (does not affect run continue)
--ksmulti-setrule [rule] [value] // set a game rule before start, in in-game console enter "currentrules" to see them all
--ksmulti-runcommand		// run a in-game console command in main menu after the game and mp starts // example: "--ksmulti-runcommand setpref_loot_0;log_WASUUUP;log_another_message_idk"
--ksmulti-servername My_Server   // override server name
--ksmulti-nosteam			// don't attach the game to steam (this locks you only to direct IP connection mode, and server browser does not work)
--ksmulti-hoststeam [public/private/friendsonly]   // create lobby when the game initializes


DEDICATED SERVER EXAMPLE: 
"CasualtiesUnknown.exe -screen-fullscreen 0 -screen-height 360 -screen-width 640 --ksmulti-ip-port 127.0.0.1:7790 --ksmulti-setrule AllowJoinWhileInGame 1 --ksmulti-setrule PLAYER_COUNT_LIMIT 64 --ksmulti-setname Krokosha --ksmulti-runcommand loadcustommusic --ksmulti-startserver --ksmulti-verbose --ksmulti-min-plr-count 16 --ksmulti-immidiate-start"





# All game rules:
 are listed in "currentrules" console command

