first commit

This commit is contained in:
cclecle
2022-12-03 21:22:32 +00:00
commit 067bdd082f
7 changed files with 190 additions and 0 deletions

56
Help/UTExtra_Readme.txt Normal file
View File

@@ -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.

3
Readme.md Normal file
View File

@@ -0,0 +1,3 @@
# UTExtra Release GIT repository
checkout official page : http://www.proasm.com/ut/prout2k4.html

121
Run.sh Normal file
View File

@@ -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 } <UT2k4_INSTALL_DIR> [<UT2k4_CONFIG_FILE>]"
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 <UT2k4_INSTALL_DIR>"
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

6
System/UTExtra17.ini Normal file
View File

@@ -0,0 +1,6 @@
[UTExtra17.UTExtra]
XPassword=
bNoHitSounds=False
bNoWeapShake=True
bSpectatorSpy=True
SkinBright=200

3
System/UTExtra17.int Normal file
View File

@@ -0,0 +1,3 @@
[UTExtra]
FriendlyName="UTExtra"
Description="Just some extra stuff - v1.6"

BIN
System/UTExtra17.u Normal file

Binary file not shown.

1
System/UTExtra17.ucl Normal file
View File

@@ -0,0 +1 @@
Mutator=(ClassName=UTExtra17.UTExtra,IconMaterialName=MutatorArt.nosym,FriendlyName=UTExtra17.UTExtra.FriendlyName,Description=UTExtra17.UTExtra.Description,FallbackName="UTExtra",FallbackDesc="UTExtra")