MiscMod is a CoDaM PowerServer replacement aimed at improving stability and adding some different kind of features to CoDaM.
monero:86SoU8D73vhSxbwRsHFMvYjcVcW21VBxSRazt9RD6eHkWYXvqjoWPJ3JPSmT7VKp93KG3Zy7k4NtgiHjxXrL7u7BM1gnEeW
Edit codam/modlist.gsc
:
level.topText = &"<your text>";
[[ register ]]( "Cato's MiscMod", codam\miscmod::main );
Files miscmod_bans.dat
and miscmod_reports.dat
must be created in the main folder and writeable by the server (or it will crash).
The ban capabilities is low level and intended only for small servers or single standalone servers.
NOTE: Must be loaded before CoDaM_HamGoodies due to conflicting takeover (or any other mod for that matter). This mod is not made compatible with other mods and only compatible with the latest CoDExtended.
A full guide on how to configure and setup MiscMod can be found on cod.pm.
Some settings may support appending postfix to CVAR; such as "scr_mm_spawnprotection_<MAP/GAMETYPE> <value>"
resulting in "scr_mm_spawnprotection_dm <value>" or "scr_mm_spawnprotection_mp_brecourt <value>"
.
See CoDaM_MiscMod.cfg
file for CVAR documentation.
Before running one of the below command make a backup of your miscmod_bans.dat
file:
mv miscmod_bans.dat miscmod_bans.backup.dat
miscmod_bans.dat
file format from MiscMod 3.0.9 to newer MiscModThis command upgrades the miscmod_bans.dat
to the new format and also remove duplicate and invalid IP's.
awk 'BEGIN {FS="%";OFS=FS} NF==4&&$1~/^[0-9]+\./&&!ip[$1]++{print $1,$4,$2,0,0,$3}' miscmod_bans.backup.dat > miscmod_bans.dat
miscmod_bans.dat
fileThis command remove duplicate and invalid IP's from both the old and the new miscmod_bans.dat
file.
awk '$1~/^[0-9]+\./&&!ip[$1]++{print $0}' miscmod_bans.backup.dat > miscmod_bans.dat
NOTE: <num>
can be replaced with text (e.g a playername) and a player number will be matched based on the string.
Command: Description: Permission ID:
!login <user> <pass> Login to access commands. 0 - always default
!help Display this help. 1 - default
!version Display MiscMod version. 2 - default
!name <new name> Change name. 3 - default
!fov <value> Set field of view. 4 - default
!rename <num> <new name> Change name of a player. 5
!logout Logout. 6
!say <message> Say a message with group as prefix. 7
!saym <message> Print a message in the middle of the screen. 8
!sayo <message> Print a message in the obituary. 9
!kick <reason> Kick a player. 10
!reload Reload MiscMod commands and settings. 11
!restart (*) Restart map (soft). 12
!endmap End the map. 13
!map <mapname> (gametype) Change map and gametype. 14
!status List players. 15
!mute <num> Mute a player. 16
!unmute <num> Unmute a player. 17
!warn <num> <message> Warn a player. 18
!kill <num> Kill a player. 19
!weapon <num> <weapon> Give a weapon to player. 20
!heal <num> Heal a player. 21
!invisible <on|off> Become invisible. 22
!ban <num> <time> <reason> Ban a player. 23
!unban <ip> Unban a player. 24
!pm <player> <message> Private message a player. 25
!re <message> Respond to a private message. 26
!who Display logged in users. 27
!drop <num> <height> Drop a player. 28
!spank <num> <time> Spank a player. 29
!slap <num> <damage> Slap a player. 30
!blind <num> <time> Blind a player. 31
!runover <num> Run over a player. 32
!squash <num> Squash a player. 33
!rape <num> Rape a player. 34
!toilet <num> Turn a player into a toilet. 35
!explode <num> Explode a player. 36
!force <axis|allies|spectator> <num|all> (...) Force players to team. 37
!mortar <num> Mortar a player. 38
!matrix Matrix. 39
!burn <num> Burn a player. 40
!cow <num> BBQ a player. 41
!disarm <num> Disarm a player. 42
!os Snipers only. 43
!aw (*) All weapons (1 sniper). 44
!omp Only machine guns. 45
!rifles <on|off|only> Rifle settings. 46
!health <off|0|1|2|3> Health settings. 47
!grenade <off|0|1|2|3|reset> Grenade settings. 48
!pistols <on|off|reset> Pistol settings. 49
!1sk <on|off> Enable or disable instant kill. 50
!roundlength <time> Set roundlength. (sd|re) 51
!psk <on|off> Enable or disable instant kill on pistols. 52
!belmenu <on|off> Enable BEL menu instead of normal menu. 53
!report <on|off> Report a player. 54
!rs Reset your scores in the scoreboard. 56
!optimize Set optimal connection settings for a player. 57
!pcvar <num> <cmd> <value> Set/modify a player CVAR. 58
!respawn <num> <sd|dm|tdm> Move a player to a new spawnpoint. 59
!wmap <wapon=map> Change CoDaM's weapon_map setting. 60
!meleekill <type> (...) Instant kill on melee. 61
!teleport <num> (<num>|<x> <y> <z>) Teleport a player to a player or (x, y, z) coordinates. 62
!teambalance <on|off|force> Adjust team balance settings or force a team balance. 63
!swapteams (*) Swap teams (no reset). 64
!freeze <on|off> <num|all> Freeze certain players (on the map). 65
!move <num> <u|d|l|r|f|b> <units> Move player in specified direction by specified units. 66
!scvar <cvar> <value> Set/modify a server CVAR. 67
!bansearch <query> Search for bans in the banlist. 68
!banlist List most recent bans. 69
!reportlist List most recent reports. 70
!namechange <on|off> Turn nonamechange on/off. 71
scr_mm_scoreboard_text
uses code from Defected (dftd)3.0.9+
3.0.8
!teambalance <on|off|force>
!swapteams
!freeze <on|off> <num|all>
scr_mm_msg1
and 2
, in MiscMod.cfg
, to scr_mm_msgb1
and scr_mm_msgb2
scr_mm_emptymap
. When server is empty, switch to this mapscr_mm_rename
and scr_mm_renameto
which will rename a connecting player to a fixed name based on keywordsscr_mm_removemaps_playercount
!command <num>
would cause crash in some cases, discoverd by Frisky, reported and tested by AJ3.0.7
!pistols
command to include "chamber" or "clip" in case you want it to reload or not on spawn (set scr_mm_allow_pistols_ammotype ""
)scr_mm_meleekill_ignore
(values: bolt
, secondary
, primary
, grenade
). Requested by AJ!mute
command with "list", to see muted players. (e.g !mute list
)!mute
command where some player ID was name causing some of the mutes not to be saved across maps!wmap
description!teleport <player> (<player>|<x> <y> <z>)
3.0.6
!unban
command!wmap
to adjust CoDaM's weaponmap feature!pistols
command, new arguments: on
, empty
, disable
or a number of bullets in the chamber (e.g !pistols 3
, for 3 bullets)validate_number()
functionnoMap
under some conditions (set scr_mm_wmap_force "1"
to enable) (the code is very hacky, don't use if you don't have to). Requested by TheGreatGatsby the ungrateful!meleekill <on|off>
to change instant kill on melee3.0.5
codextended.so
: https://github.com/xtnded/codextended/blob/stable/bin/codextended.so!ban
/!unban
commandsserverName()
function (e.g scr_mm_scoreboard_text "^2My Server"
or change to "namefix"
to remove squares and illegal chars)3.0.4
!unban
command3.0.3
!who
and playerlist (when multiple matches found) to be more readable like !status
scr_mm_meleekill
for instant kill on melee3.0.2
!respawn
command. This command will not respawn the player in full, just move the player to a new fresh spawnpoint (e.g to free stuck players)!status
command to be more readable!weapon
command to support partial names, grenades and pistols (e.g !weapon 5 nagant_sniper
). Requested by hehu3.0.1
scr_mm_cmd_maps
, you can now append 1, 2, 3, etc at end for more maps (e.g "scr_mm_cmd_maps1"
)namefix()
function2.7.9
strTok
function that causes a crash on double, tripple delimiters, etcmsgBroadcast
function to follow a queue of messages regardless or round/map changes!pcvar
command!fps
command (can be used with !pcvar
instead, e.g !pcvar <num> fps 125
)!help
command booting client after 85+ commands2.7.8
!re
command!report
that writes to miscmod_reports.dat
(copy from momo74 code, which is basically my code)scr_mm_badwords<1,2,...>
CVAR and badwords - requested by ImNoobscr_mm_badwords_checknames
to check if also names contain badwords!rs
, !fps
, !optimize
commands by momo74!plist
command, it does the same as momo74's !num
command, which does the same as !status
command without IP address!unban
and commands (to console/logfile)2.7.7
!login
command, now server admin can see who is using the !login
command2.7.6
scr_mm_nnn
is set to 0 and instant drop client. When set to 0, it will now disable the 999 check.!ban <num|name|ip> <reason> [<specify this argument to enable IP ban>]
to old !ban
command2.7.5
!psk
command!status
command!belmenu
command2.7.4
2.7.3
!who
command to display who is logged in!pm
command!re
command2.7.2
!rifles
command2.7.1
fs_basepath
+ "/main/"