mohaa

Games
Report Issue

Medal of Honor: Allied Assault

Contributors:
README

Medal of Honor: Allied Assault

Medal of Honor: Allied Assault is a first-person shooter video game developed by 2015, Inc.

Server Ports

Port default
Game 12203

This egg uses the Unofficial MoH:AA 1.12 Patch that addes several features and security updates to allow a fair multiplayer experience.

Ones the server is installed you can check the File Manager for Medal of Honor Reborn Patch Documentation RC3.5.1.pdf for more information.

Check the main/server.cfg in the File Manager for more configuration options.

Docker Images (1)
Name Image
Mohaa ghcr.io/ptero-eggs/games:mohaa
Startup Command
./mohaa_lnxded +set sv_punkbuster 0 +set fs_basepath {{BASE_PATH}} +set fs_outputpath {{LOG_DIR}} +set dedicated 2 +set sv_maxclients {{SERVER_MAXCLIENTS}} +set net_ip 0.0.0.0 +set net_port {{SERVER_PORT}} +exec server.cfg
Variables (8)

Max clients

Environment:
SERVER_MAXCLIENTS
Default:
14
User Viewable:
User Editable:
Rules:
required|integer

Config URL

URL from where to get the initial server.cfg

Environment:
CONFIG_URL
Default:
https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/mohaa/server.cfg
User Viewable:
User Editable:
Rules:
required|string

Server name

The name of the server

Environment:
SERVER_NAME
Default:
MOHAA Server running on Pterodactyl
User Viewable:
User Editable:
Rules:
required|string

Rcon password

Admin password for rcon

Environment:
RCON_PASSWORD
Default:
None
User Viewable:
User Editable:
Rules:
required|string

Server map

Select the map

Environment:
SERVER_MAP
Default:
dm/mohdm7
User Viewable:
User Editable:
Rules:
required|string|in:obj/obj_team2,dm/mohdm7,dm/mohdm1,dm/mohdm3,dm/mohdm2,dm/mohdm6

Logs dir

Environment:
LOG_DIR
Default:
/home/container/Logs
User Viewable:
User Editable:
Rules:
required|string

Base PATH

Environment:
BASE_PATH
Default:
/home/container
User Viewable:
User Editable:
Rules:
required|string

Server password

Environment:
SERVER_PASSWORD
Default:
None
User Viewable:
User Editable:
Rules:
required|string
Installation Script
Container: ghcr.io/ptero-eggs/installers:alpine
Entrypoint: ash
#!/bin/ash

apk --no-cache add curl

if [[ ! -d /mnt/server/ ]]; then
    mkdir -p /mnt/server/
fi

cd /mnt/server/

DOWNLOAD_URL=http://linuxgsm.download/MedalofHonorAlliedAssault/moh_revival_v1.12_RC3.5.1.tar.xz

if [ ! -z "${DOWNLOAD_URL}" ]; then 
    if curl --output /dev/null --silent --head --fail ${DOWNLOAD_URL}; then
        echo -e "link is valid. setting download link to ${DOWNLOAD_URL}"
        DOWNLOAD_LINK=${DOWNLOAD_URL}
    else        
        echo -e "link is invalid closing out"
        exit 2
    fi
fi

echo -e "running 'curl -sSL ${DOWNLOAD_LINK} -o mohaaserver.tar.xz'" 
curl -sSL ${DOWNLOAD_LINK} -o mohaaserver.tar.xz

echo -e "Unpacking server files"
tar xvf mohaaserver.tar.xz

rm mohaaserver.tar.xz

echo -e "checking for default server.cfg"
[[ -f main/server.cfg ]] || curl -sSL ${CONFIG_URL} -o main/server.cfg

echo -e "running 'chmod +x ./mohaa_lnxded'"
chmod +x ./mohaa_lnxded


## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"