minor clean up
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5693 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+11
-13
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user