ac-stef
41fa9e1b34
add command for raw scripted editing
...
selectionwalk action beginsel endsel
The command iterates over all cubes in all selections and executes
"action" for each cube. The cubes of every selection are framed by
executions of "beginsel" and "endsel". The action script is allowed
to make changes to cube attributes, and if it does, an undo point is
automatically added. "beginsel" and "endsel" are optional.
While the scripts are executed, several aliases provide further info:
sw_cursel
Position and size of the current selection. Valid in all three
scripts. Holds four integer values for x, y, xs, ys. See command
"selection" for details.
(all following aliases are only valid during the execution of the action
script and provide the attributes of one cube of the map)
sw_abs_x
sw_abs_y
sw_rel_x
sw_rel_y
Absolute and relative (within the current selection) coordinates of
the current cube. Read-only values.
sw_type
Type of the current cube. Can be 0..4 for SOLID, CORNER, FHF, CHF and
SPACE. May be changed to other numerical value or keyword.
sw_floor
sw_ceil
Floor and ceiling heights of the current cube. Range -128..127
sw_wtex
sw_ftex
sw_ctex
sw_utex
Texture slot indices for wall, floor, ceiling and upper wall of the
current cube.
sw_vdelta
sw_tag
Vdelta and tag values of current cube.
sw_r
sw_g
sw_b
Current light values of current cube. Can be edited, but only with
temporary effect. Will be reset with the next light recalc.
The command is mostly useful for statistics scripts (like counting cubes
with certain attributes), but is can also be used for scripted editing,
as the following (useless) example shows:
selectionwalk [ += sw_floor (rnd 2) ]
Further changes:
The command listoptions now also can return the names of cube types:
echo (listoptions cubetypes)
The command countwalls is now implemented as a script instead of a
builtin command. The script works better, because it doesn't create
unnecessary undo points.
DOCREF selectionwalk listoptions countwalls
2016-08-27 21:58:02 +02:00
ac-stef
98d01d1f34
fix some errors and warnings for GCC 6
...
* do not use std::abs() because math.h includes one, that converts ints
to double. Use own iabs(), which directly uses labs() instead.
* don't use the word "gamma" as name for variables
* don't use a homebrew round() function
2016-02-27 22:50:06 +01:00
ac-stef
fc0c6347f9
add lighting info to the cube inspector
2015-06-05 16:00:03 +02:00
ac-stef
50b3f6867c
show detailed data of the cube inside editing focus
...
* shows all geometry data of the cube in editing focus in the hud
* can be toggled by F8 in editmode
* shows cuby type, floor and ceiling heights, vdelta and all textures
(if mipstats *and* edit focus details are requested: show focus detail)
2014-05-15 13:48:30 +02:00
ac-stef
a37d437a2f
nicer mipstat display
...
* display mistats in the hud instead of having them flood the console
* added display of 8x8 mips, just to show that they are possible
press F6 in editmode to see the difference
2014-05-15 13:48:30 +02:00
Lucas GAUTHERON
8c084668cb
disabling some debugging commands
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7020 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-31 12:19:31 +00:00
sireus
b33116712c
sane(r) command signatures (warning: huge commit)
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6908 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-10-06 22:49:49 +00:00
sireus
7cb0fe4f06
fix scaling if scale is < 1.0
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6418 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-11 09:57:25 +00:00
sireus
a89b9f2dab
pave the way for hi-res textures
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6416 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-10 20:03:06 +00:00
flowtron
94dc526837
lots of whitespace
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5265 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-02 16:49:20 +00:00
Lee Salzman
be94c703f2
setsize -> shrink
...
setsizenodelete -> setsize
deletecontentsa -> deletearrays
deletecontentsp -> deletecontents
vrealloc -> growbuf
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4787 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-03-11 23:06:26 +00:00
Lee Salzman
54cc44c3db
revising pch setup
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4690 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-11-07 06:42:37 +00:00
driAn
dd54ad93c5
minor vs05 compile fixes, dynamic texscale for testing
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4574 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-07-09 19:33:29 +00:00
Lee Salzman
c7aa8011af
sky wall strip fix
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4115 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-01-04 22:25:01 +00:00
Lee Salzman
47a5c4f7f3
stripify walls
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4114 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-01-04 22:18:39 +00:00
Lee Salzman
4d6ffecf29
reorganized sqr storage for better cache usage
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4113 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-01-04 18:42:09 +00:00
Lee Salzman
f213f43684
do texgen last to minimize calcs
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3003 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-10-14 04:30:32 +00:00
Lee Salzman
58c94ed3bc
ensure corner tris get shadow projections
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3002 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-10-13 19:55:21 +00:00
Lee Salzman
2278fac24a
don't count shadow quads against wqd
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2999 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-10-13 13:59:02 +00:00
Lee Salzman
ba59c1c5b0
clamp shadow rect
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2997 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-10-13 13:43:03 +00:00
Lee Salzman
b1cf271061
use projective texturing for blob shadows
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2996 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-10-13 13:31:33 +00:00
Lee Salzman
0c9af4991b
ati_mda_bug var
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2719 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-09-20 21:40:21 +00:00
Lee Salzman
8bd1a526a6
sky rendering optimization
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2684 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-09-18 06:35:05 +00:00
Lee Salzman
f4c4ff7556
sky clipping optimization
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2516 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-09-11 06:09:27 +00:00
Lee Salzman
930f4e223c
noworldtexture cleanup
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2297 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-08-08 08:14:58 +00:00
Lee Salzman
875ed5eeb1
reflection scissoring optimization
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1830 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-04-28 07:27:48 +00:00
driAn
33dc34d076
grenades fix, newmap spawn fix, removebans fix, findlist cmd, menumdl fix, spect hud, scoreboard server stats refresh limit
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1566 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-01-05 16:35:04 +00:00
Lee Salzman
eb33e3e105
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1526 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-12-30 00:38:47 +00:00
Lee Salzman
afad80be3e
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1525 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-12-30 00:01:46 +00:00
Lee Salzman
a46fa45901
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1495 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-12-26 08:44:59 +00:00
driAn
9c3e74cbdf
huge weapon-code cleanup (buggy!), pch, demo fix
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1475 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-12-24 21:38:53 +00:00
Lee Salzman
d70d8e5238
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1228 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-08-12 09:14:43 +00:00
Lee Salzman
00e8e7a081
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1172 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-07-22 00:14:54 +00:00
Lee Salzman
9b0f091c62
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1170 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-07-21 11:53:50 +00:00
Lee Salzman
bbcf64efce
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1037 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-05-31 01:56:55 +00:00
Lee Salzman
8c439f8280
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1036 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-05-31 00:39:51 +00:00
Lee Salzman
dcc597f2b8
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1035 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-05-30 23:03:43 +00:00
Lee Salzman
857394ff7b
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1005 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-05-18 09:02:00 +00:00
Lee Salzman
503415d590
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@958 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-04-11 17:46:58 +00:00
Lee Salzman
f3dd61afd1
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@952 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-04-10 17:21:11 +00:00
Lee Salzman
d358d15898
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@951 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-04-09 21:12:29 +00:00
Lee Salzman
6e0c1713be
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@950 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-04-09 17:42:45 +00:00
Lee Salzman
04d11ffaee
:CVS: ----------------------------------------------------------------------
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@949 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-04-09 17:16:57 +00:00
Lee Salzman
499bd64a2b
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@947 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-04-09 11:51:07 +00:00
Lee Salzman
af61bec22f
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@945 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-04-09 09:38:46 +00:00
Lee Salzman
f4637f7f62
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@944 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-04-08 22:23:22 +00:00
Lee Salzman
ca3262022e
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@943 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-04-07 08:11:34 +00:00
Lee Salzman
c5c44939b9
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@941 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-04-07 06:58:34 +00:00
Lee Salzman
13de086fc6
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@936 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-04-07 01:27:15 +00:00
Lee Salzman
b37bd5a9f1
*** empty log message ***
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@935 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-04-06 21:00:52 +00:00