From 28d76571b48dded2f86b50cbaf8f56133b2f307a Mon Sep 17 00:00:00 2001 From: ac_stef Date: Fri, 6 Mar 2009 15:55:35 +0000 Subject: [PATCH] cleanup git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4247 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/scripts.cfg | 51 ++++++++-------------------------------------- 1 file changed, 9 insertions(+), 42 deletions(-) diff --git a/config/scripts.cfg b/config/scripts.cfg index 154a14e5..7184a1ad 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -1,53 +1,20 @@ // CubeScript placed in this file is automatically executed on each startup. -// "editent" command +// editent command // Note: The editent command can NOT define rotation/yaw inside the command! // ... however, the current yaw of the player will define the rotation/yaw when using the command! alias editent [ alias enttype (getenttype) - if (= (strcmp (getenttype) "mapmodel") 1) [ + if (strcmp $enttype "mapmodel") [ saycommand "/entset" $enttype (getentattr 1) (getentattr 2) (getentattr 3) + ][ + if (> (findlist "light sound clip" $enttype) -1) [ + saycommand "/entset" $enttype (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) + ][ + saycommand "/entset" $enttype (getentattr ((> (findlist "playerstart ctf-flag" $enttype) -1))) + ] + ] ] - if (= (strcmp (getenttype) "light") 1) [ - saycommand "/entset" $enttype (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) - ] - if (= (strcmp (getenttype) "ammobox") 1) [ - saycommand "/entset" $enttype (getentattr 0) - ] - if (= (strcmp (getenttype) "sound") 1) [ - saycommand "/entset" $enttype (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) - ] - if (= (strcmp (getenttype) "health") 1) [ - saycommand "/entset" $enttype (getentattr 0) - ] - if (= (strcmp (getenttype) "playerstart") 1) [ - saycommand "/entset" $enttype (getentattr 1) - ] - if (= (strcmp (getenttype) "pistol") 1) [ - saycommand "/entset" $enttype (getentattr 0) - ] - if (= (strcmp (getenttype) "grenades") 1) [ - saycommand "/entset" $enttype (getentattr 0) - ] - if (= (strcmp (getenttype) "sound") 1) [ - saycommand "/entset" $enttype (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) - ] - if (= (strcmp (getenttype) "armour") 1) [ - saycommand "/entset" $enttype (getentattr 0) - ] - if (= (strcmp (getenttype) "akimbo") 1) [ - saycommand "/entset" $enttype (getentattr 0) - ] - if (= (strcmp (getenttype) "ladder") 1) [ - saycommand "/entset" $enttype (getentattr 0) - ] - if (= (strcmp (getenttype) "ctf-flag") 1) [ - saycommand "/entset" $enttype (getentattr 1) - ] - if (= (strcmp (getenttype) "clip") 1) [ - saycommand "/entset" $enttype (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) - ] -] alias editmapmsg [ saycommand ( concatword [/mapmsg ] ["] (getmapmsg) ["] ) ]