cato-a / CoDaM_MiscMod

Official MiscMod for CoDaM in Call of Duty 1.1
BSD 3-Clause "New" or "Revised" License
15 stars 5 forks source link
call-of-duty callofduty cod1

CoDaM MiscMod

MiscMod is a CoDaM PowerServer replacement aimed at improving stability and adding some different kind of features to CoDaM.

DONATE

XMR donation to support MiscMod

monero:86SoU8D73vhSxbwRsHFMvYjcVcW21VBxSRazt9RD6eHkWYXvqjoWPJ3JPSmT7VKp93KG3Zy7k4NtgiHjxXrL7u7BM1gnEeW

HOW TO INSTALL

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.

CONFIGURATION

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.

MISCMOD_BANS.DAT

Before running one of the below command make a backup of your miscmod_bans.dat file:

mv miscmod_bans.dat miscmod_bans.backup.dat

Upgrade miscmod_bans.dat file format from MiscMod 3.0.9 to newer MiscMod

This 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

Remove duplicate bans and invalid IP's from miscmod_bans.dat file

This 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

COMMANDS

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

CREDITS

CHANGELOG

3.0.9+

3.0.8

3.0.7

3.0.6

3.0.5

3.0.4

3.0.3

3.0.2

3.0.1

2.7.9

2.7.8

2.7.7

2.7.6

2.7.5

2.7.4

2.7.3

2.7.2

2.7.1