more sane convertclips command

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5692 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
RandumKiwi
2010-09-14 11:34:14 +00:00
parent 77d0fd9045
commit 5861e1e91a
+9 -8
View File
@@ -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.