Mise à jour de 'Run.sh'
add enable / disable for gamemods
This commit is contained in:
90
Run.sh
90
Run.sh
@@ -71,10 +71,67 @@ function disable() {
|
||||
echo disable ok
|
||||
}
|
||||
|
||||
function enableCG() {
|
||||
UNUFile=$(find $OUTPUT_DIR/System -type f -name "UN*.u" -exec basename {} \;)
|
||||
UNBaseName="${UNUFile%.*}"
|
||||
|
||||
add_ServerActors $UNBaseName.NewNetCG
|
||||
|
||||
echo enable ok
|
||||
}
|
||||
|
||||
function disableCG() {
|
||||
UNUFile=$(find $OUTPUT_DIR/System -type f -name "UN*.u" -exec basename {} \;)
|
||||
UNBaseName="${UNUFile%.*}"
|
||||
|
||||
del_ServerActors $UNBaseName.NewNetCG
|
||||
|
||||
echo disable ok
|
||||
}
|
||||
|
||||
function enableDJ() {
|
||||
UNUFile=$(find $OUTPUT_DIR/System -type f -name "UN*.u" -exec basename {} \;)
|
||||
UNBaseName="${UNUFile%.*}"
|
||||
|
||||
add_ServerActors $UNBaseName.DoubleJump
|
||||
|
||||
echo enable ok
|
||||
}
|
||||
|
||||
function disableDJ() {
|
||||
UNUFile=$(find $OUTPUT_DIR/System -type f -name "UN*.u" -exec basename {} \;)
|
||||
UNBaseName="${UNUFile%.*}"
|
||||
|
||||
del_ServerActors $UNBaseName.DoubleJump
|
||||
|
||||
echo disable ok
|
||||
}
|
||||
|
||||
function enableGM() {
|
||||
UNUFile=$(find $OUTPUT_DIR/System -type f -name "UN*.u" -exec basename {} \;)
|
||||
UNBaseName="${UNUFile%.*}"
|
||||
|
||||
add_ServerActors $UNBaseName.GrapMut
|
||||
|
||||
echo enable ok
|
||||
}
|
||||
|
||||
function disableGM() {
|
||||
UNUFile=$(find $OUTPUT_DIR/System -type f -name "UN*.u" -exec basename {} \;)
|
||||
UNBaseName="${UNUFile%.*}"
|
||||
|
||||
del_ServerActors $UNBaseName.GrapMut
|
||||
|
||||
echo disable ok
|
||||
}
|
||||
|
||||
|
||||
function show_help() {
|
||||
echo
|
||||
echo "Usage: $0 { install | enable | disable } <UT99_INSTALL_DIR> [<UT99_CONFIG_FILE>]"
|
||||
echo " $0 { enableCG | disableCG } <UT99_INSTALL_DIR> [<UT99_CONFIG_FILE>]"
|
||||
echo " $0 { enableDJ | disableDJ } <UT99_INSTALL_DIR> [<UT99_CONFIG_FILE>]"
|
||||
echo " $0 { enableGM | disableGM } <UT99_INSTALL_DIR> [<UT99_CONFIG_FILE>]"
|
||||
echo
|
||||
}
|
||||
|
||||
@@ -121,6 +178,39 @@ case "$1" in
|
||||
check_cfg_file
|
||||
disable
|
||||
;;
|
||||
'enableCG')
|
||||
check_game_dir
|
||||
check_cfg_file
|
||||
disableCG
|
||||
enableCG
|
||||
;;
|
||||
'disableCG')
|
||||
check_game_dir
|
||||
check_cfg_file
|
||||
disableCG
|
||||
;;
|
||||
'enableDJ')
|
||||
check_game_dir
|
||||
check_cfg_file
|
||||
disableDJ
|
||||
enableDJ
|
||||
;;
|
||||
'disableDJ')
|
||||
check_game_dir
|
||||
check_cfg_file
|
||||
disableDJ
|
||||
;;
|
||||
'enableGM')
|
||||
check_game_dir
|
||||
check_cfg_file
|
||||
disableGM
|
||||
enableGM
|
||||
;;
|
||||
'disableGM')
|
||||
check_game_dir
|
||||
check_cfg_file
|
||||
disableGM
|
||||
;;
|
||||
*)
|
||||
show_help
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user