Egg Repository

Pterodactyl Community Egg Repository

mohaa

Medal of Honor: Allied Assault

Read Me

Medal of Honor: Allied Assault

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

Server Ports

Portdefault
Game12203

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.

Yolks
NameTag
Mohaaghcr.io/ptero-eggs/games:mohaa
Variables and Startup

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

Max clients

Environment Variable: SERVER_MAXCLIENTS
Default Value: 14
User Viewable:
User Editable:
Config URL

URL from where to get the initial server.cfg

Environment Variable: CONFIG_URL
Default Value: https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/mohaa/server.cfg
User Viewable:
User Editable:
Server name

The name of the server

Environment Variable: SERVER_NAME
Default Value: MOHAA Server running on Pterodactyl
User Viewable:
User Editable:
Rcon password

Admin password for rcon

Environment Variable: RCON_PASSWORD
Default Value:
User Viewable:
User Editable:
Server map

Select the map

Environment Variable: SERVER_MAP
Default Value: dm/mohdm7
User Viewable:
User Editable:
Logs dir

Environment Variable: LOG_DIR
Default Value: /home/container/Logs
User Viewable:
User Editable:
Base PATH

Environment Variable: BASE_PATH
Default Value: /home/container
User Viewable:
User Editable:
Server password

Environment Variable: SERVER_PASSWORD
Default Value:
User Viewable:
User Editable:
Install Script
#!/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 "-----------------------------------------"
Installation Imageghcr.io/ptero-eggs/installers:alpineInstallation Entrypointash