From 5861e1e91ab7cbad9d712d1b6b685eb686ebe47f Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Tue, 14 Sep 2010 11:34:14 +0000 Subject: [PATCH] more sane convertclips command git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5692 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/scripts.cfg | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/config/scripts.cfg b/config/scripts.cfg index 3d2794a5..13071401 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -21,15 +21,16 @@ alias editent [ ] // "convertclips" command: -// This command automatically converts the nearest "clip" entity -// into a "plclip" entity. Really handy tool with the new version of AC. -// Bind it to a key and have fun! +// This command automatically changes the a "clip" to a "plclip" entity or vice-versa. alias convertclips [ - closestenttype "clip" - alias enttype (getenttype) - if (strcmp $enttype "clip") [ entset plclip (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) ] - closestenttype "" -] + if (strcmp (getenttype) "clip") [ + entset plclip (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) + ] [ + 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." ] ] ] // "gibsgore" command: // This command controls gib Speed/Number/TTL all in one variable.