From cbc27ac3eaea466f22903589c77056c5adcd8aeb Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Tue, 14 Sep 2010 11:38:33 +0000 Subject: [PATCH] minor clean up git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5693 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/scripts.cfg | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/config/scripts.cfg b/config/scripts.cfg index 13071401..a83d3f31 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -8,17 +8,14 @@ // However, the current yaw of the player will define the rotation/yaw when // using the command! alias editent [ - alias enttype (getenttype) - if (strcmp $enttype "mapmodel") [ - saycommand "/entset" $enttype (getentattr 1) (getentattr 2) (getentattr 3) - ][ - if (> (findlist "light sound clip plclip" $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) "mapmodel") [ + saycommand "/entset" (getenttype) (getentattr 1) (getentattr 2) (getentattr 3) + ] [ + if (> (findlist "light sound clip plclip" (getenttype)) -1) [ + saycommand "/entset" (getenttype) (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) + ] [ + saycommand "/entset" (getenttype) (getentattr ((> (findlist "playerstart ctf-flag" (getenttype)) -1))) + ] ] ] // "convertclips" command: // This command automatically changes the a "clip" to a "plclip" entity or vice-versa. @@ -29,8 +26,9 @@ alias convertclips [ if (strcmp (getenttype) "plclip") [ entset clip (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) ] [ - echo "No changes made. This entity isn't a clip or a plclip." - echo "Try using the /closestenttype command to find a specific entity." ] ] ] + echo "No changes made. This entity isn't a clip or a plclip." + echo "Try using the /closestenttype command to find a specific entity." + ] ] ] // "gibsgore" command: // This command controls gib Speed/Number/TTL all in one variable.