commit 067bdd082fa677241077df4b6510bfd08766b274 Author: cclecle Date: Sat Dec 3 21:22:32 2022 +0000 first commit diff --git a/Help/UTExtra_Readme.txt b/Help/UTExtra_Readme.txt new file mode 100644 index 0000000..61e6f0b --- /dev/null +++ b/Help/UTExtra_Readme.txt @@ -0,0 +1,56 @@ +//-------------------------------------------------------------- +// UTExtra - (c) ProAsm - 2007/9 +// Version 1.7 +// http://www.proasm.com/ +//-------------------------------------------------------------- + +UTExtra is basically the BrightSkins, NoWeaponShake and HitSounds +that were removed from UT2Vote for Whitelisting. + +In UT2Vote just add it to the: +ServerMuts=UTExtra17.UTExtra + +The command to bring up the HitSound menu is: + +Mutate UTExtra + +If you are logged in as ServerAdmin, then this menu will consist +of several Server options as well for Dis/Enabling the +SkinBright, WeaponShake or HitSounds. + +As a non Admin then the menu offers the player the option to +enable or disable his/her HitSounds or to set the volume of them. + +UTExtra requires to be in the UT2004.ini as a ServerPackage. + +ServerPackages=UTExtra17 + +or in UT2Vote: + +[UT2Vote5x.UT2VotePackages] +Packages=(MutClassName="UTExtra17.UTExtra",ServerPackages="UTExtra17") + +Additions in 1.6 + +Hitsounds are now set ON when player joins the server first time around. +Spectators are now included for hearing hitsounds. + +[UTExtra17.UTExtra] +XPassword= + +Pausing a Game. +Option to Pause a server using the new XPassword. + +By using the console command: +Mutate UTExtra PauseGame password +This will pause the game until the same command is given a second time to resume the game. + +DemoRecording +By using the Console command: +Mutate UTExtra StartDemo password +A demo recording will start up with the name: +UTExtra_Mapname.demo4 +Mutate UTExtra StopDemo password +This will stop the Demo recording. + + diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..c7b191d --- /dev/null +++ b/Readme.md @@ -0,0 +1,3 @@ +# UTExtra Release GIT repository + +checkout official page : http://www.proasm.com/ut/prout2k4.html diff --git a/Run.sh b/Run.sh new file mode 100644 index 0000000..d019a16 --- /dev/null +++ b/Run.sh @@ -0,0 +1,121 @@ +#!/bin/bash +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +OUTPUT_DIR="$2" +CFG_FILE="$3" +DEFAULT_CFG_FILE=UT2004.ini +function add_iniKeyEx() { + crudini --set $OUTPUT_DIR/System/$1 $2 __$3 $4 + # Warning: ugly hack with sed to allow multiple key instances + to remove space around '=' + sed -i "s/[[:space:]]*__$(echo $3 | sed -e 's/\([[\/.*]\|\]\)/\\&/g')[[:space:]]*=[[:space:]]*/$(echo $3 | sed -e 's/\([[\/.*]\|\]\)/\\&/g')=/g" $OUTPUT_DIR/System/$1 +} +# !!Warning!! section is not considered +function del_iniKeyEx() { + sed -i "/[[:space:]]*$(echo $3 | sed -e 's/\([[\/.*]\|\]\)/\\&/g')[[:space:]]*=[[:space:]]*$(echo $4 | sed -e 's/\([[\/.*]\|\]\)/\\&/g')/d" $OUTPUT_DIR/System/$1 +} +function add_iniKey() { + add_iniKeyEx $CFG_FILE $1 $2 $3 +} +# !!Warning!! section is not considered +function del_iniKey() { + del_iniKeyEx $CFG_FILE $1 $2 $3 +} +function add_ServerPackage() { + add_iniKey 'Engine.GameEngine' ServerPackages $1 +} +function del_ServerPackage() { + del_iniKey 'Engine.GameEngine' ServerPackages $1 +} +function add_ServerActors() { + add_iniKey 'Engine.GameEngine' ServerActors $1 +} +function del_ServerActors() { + del_iniKey 'Engine.GameEngine' ServerActors $1 +} + +function getmodprefix() { + _File=$(find $OUTPUT_DIR/System -type f -iname "UTExtra*\.u" -exec basename {} \; | sort -nr | head -n 1) + BaseName="${_File%.*}" + echo "$BaseName" +} + +function install() { + rsync -a $SCRIPT_DIR/Help/ $OUTPUT_DIR/Help/ --exclude '.git' + rsync -a $SCRIPT_DIR/System/ $OUTPUT_DIR/System/ --exclude '.git' + + echo install ok +} + +function enable() { + BaseName="$(getmodprefix)" + add_ServerPackage $BaseName + + echo enable ok +} + +function disable() { + BaseName="$(getmodprefix)" + del_ServerPackage $BaseName + + echo disable ok +} + +function show_help() { + echo + echo "Usage: $0 { getmodprefix | install | enable | disable } []" + echo +} + +function check_cfg_file() { + if [ -z ${CFG_FILE} ] + then + echo "CFG_FILE is unset, setting it to $DEFAULT_CFG_FILE" + CFG_FILE=$DEFAULT_CFG_FILE + else + echo "CFG_FILE is set to '$CFG_FILE'" + fi + + if [ ! -f $OUTPUT_DIR/System/$CFG_FILE ] + then + echo "$OUTPUT_DIR/System/$CFG_FILE does not exist" + show_help + exit 9999 # die with error code 9999 + fi +} + +function check_game_dir() { + ### Check if a directory does not exist ### + if [ ! -d $OUTPUT_DIR ] + then + echo "incorrect " + show_help + exit 9999 # die with error code 9999 + fi +} + +case "$1" in + 'getmodprefix') + check_game_dir + getmodprefix + ;; + 'install') + check_game_dir + install + ;; + 'enable') + check_game_dir + check_cfg_file + disable + enable + ;; + 'disable') + check_game_dir + check_cfg_file + disable + ;; + *) + show_help + exit 1 + ;; +esac + +exit 0 \ No newline at end of file diff --git a/System/UTExtra17.ini b/System/UTExtra17.ini new file mode 100644 index 0000000..871f15b --- /dev/null +++ b/System/UTExtra17.ini @@ -0,0 +1,6 @@ +[UTExtra17.UTExtra] +XPassword= +bNoHitSounds=False +bNoWeapShake=True +bSpectatorSpy=True +SkinBright=200 diff --git a/System/UTExtra17.int b/System/UTExtra17.int new file mode 100644 index 0000000..581fcf5 --- /dev/null +++ b/System/UTExtra17.int @@ -0,0 +1,3 @@ +[UTExtra] +FriendlyName="UTExtra" +Description="Just some extra stuff - v1.6" diff --git a/System/UTExtra17.u b/System/UTExtra17.u new file mode 100644 index 0000000..d3a651c Binary files /dev/null and b/System/UTExtra17.u differ diff --git a/System/UTExtra17.ucl b/System/UTExtra17.ucl new file mode 100644 index 0000000..0824975 --- /dev/null +++ b/System/UTExtra17.ucl @@ -0,0 +1 @@ +Mutator=(ClassName=UTExtra17.UTExtra,IconMaterialName=MutatorArt.nosym,FriendlyName=UTExtra17.UTExtra.FriendlyName,Description=UTExtra17.UTExtra.Description,FallbackName="UTExtra",FallbackDesc="UTExtra") \ No newline at end of file