From 6d0064f17c7c4559ecda9825494c1de7a422bbbd Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Sun, 23 May 2010 04:17:12 +0000 Subject: [PATCH] Handy "convertclips" script which automatically converts the nearest "clip" entity into a "plclip" entity. Super uber duper handy! git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5003 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/scripts.cfg | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/config/scripts.cfg b/config/scripts.cfg index f1a24b46..7753fe93 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -1,8 +1,12 @@ // CubeScript placed in this file is automatically executed on each startup. -// editent command +// "editent" command: +// This command collects all the attributes of the nearest entity, and then +// prompts that into a handy command that allows you to edit that entities +// attributes easily. // 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! +// 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") [ @@ -16,6 +20,17 @@ 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! +alias convertclips [ + closestenttype "clip" + alias enttype (getenttype) + if (strcmp $enttype "clip") [ entset plclip (getentattr 0) (getentattr 1) (getentattr 2) (getentattr 3) ] + closestenttype "" + ] +] alias fullscreenscript [ if (= $fullscreen 1)[ fullscreen 0 ] [ fullscreen 1 ] ]