From 39e944dffe1c527910bd20c32d2fa423acdafd83 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Fri, 6 Jul 2012 11:27:52 +0000 Subject: [PATCH] Add description for 'remap' to mapster32.cfg, add 'setstartpos' to a.m32. The latter is commented out, since it has to be *compiled* with script_expertmode enabled. git-svn-id: https://svn.eduke32.com/eduke32@2808 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/config.c | 15 ++++++++++++--- polymer/eduke32/samples/a.m32 | 18 +++++++++++++++++- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/build/src/config.c b/polymer/eduke32/build/src/config.c index 5fd62a662..e08287fe7 100644 --- a/polymer/eduke32/build/src/config.c +++ b/polymer/eduke32/build/src/config.c @@ -557,9 +557,18 @@ int32_t writesetup(const char *fn) #endif // "; Console key scancode, in hex\n" "keyconsole = %X\n" - "; example: make KP0 function as KP5 (counters inability\n" - "; inability to pan using Shift-KP5-KP8/2 in 3D mode)\n" - "; remap = 52-4C\n" + "\n" + "; This option allows you to remap keys in case some of them are not available\n" + "; (like on a notebook). It has to be a comma-separated list of SOURCE-TARGET\n" + "; scancode values, looked up in the keyboard map above. This also means that\n" + "; the key positions count, not their labels for non-US keyboards.\n" + ";\n" + "; Example:\n" + "; 1. Map the backslash key (0x2B) to KPENTER (9C), since portable devices\n" + "; often don't have the latter\n" + "; 2. make KP0 (0x52) function as KP5 (0x4C), countering the inability to pan\n" + "; using Shift-KP5-KP8/2 in 3D mode\n" + "; remap = 2B-9C,52-4C\n" "remap = ", forcesetup, fullscreen, xdim2d, ydim2d, xdimgame, ydimgame, bppgame, vsync, diff --git a/polymer/eduke32/samples/a.m32 b/polymer/eduke32/samples/a.m32 index 6144e55da..9053984a7 100644 --- a/polymer/eduke32/samples/a.m32 +++ b/polymer/eduke32/samples/a.m32 @@ -70,7 +70,7 @@ gamevar drawcol 9 0 define TQUOTE 0 definequote TQUOTE >>> write on me! <<< -//light +//light define LIGHTQUOTE 1 // x y z r g b mins maxs definequote LIGHTQUOTE light %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d @@ -1310,6 +1310,22 @@ defstate listusedtags } ends +// This must be *compiled* with script_expertmode +/* +defstate setstartpos + "Set start pos. from spr." + var spr + getnumberfromuser spr "sprite number: " MAXSPRITES 8 + + seti spr + set startposx .x + set startposy .y + set startposz .z + set startsector .sectnum + set startang .ang +ends +*/ + ////////// USER AREA ////////// // key settings