From 102b702fc012f87509b67f568a5fbbf6513e6829 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 4 Jan 2010 14:38:29 +0000 Subject: [PATCH] m32script fixes and additions git-svn-id: https://svn.eduke32.com/eduke32@1579 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/a.m32 | 23 ++++++++++++++++++++++- polymer/eduke32/m32script_ex.map | Bin 9454 -> 17242 bytes polymer/eduke32/source/m32def.c | 4 ++++ polymer/eduke32/source/m32def.h | 1 + polymer/eduke32/source/m32exec.c | 8 ++++++++ 5 files changed, 35 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/a.m32 b/polymer/eduke32/a.m32 index 0b8eb829b..60a397a5d 100644 --- a/polymer/eduke32/a.m32 +++ b/polymer/eduke32/a.m32 @@ -247,7 +247,7 @@ onevent EVENT_ENTER3DMODE state setas endevent -defstate cmp_by_lotag +defstate cmp_by_lotag // comparator subroutine for sorting set RETURN sprite[SV2].lotag sub RETURN sprite[SV1].lotag ends @@ -496,3 +496,24 @@ defstate replacestuff // ife sprite[i].picnum AMMO set sprite[i].picnum BATTERYAMMO ifactor parm[0] cactor parm[1] ends + +defstate convlights // convert (0,0,0) lights to (255,255,255)-ones + for i allsprites ifactor 1 ifge .lotag 49 ifle .lotag 50 ife .xvel 0 ife .yvel 0 ife .zvel 0 + { set .xvel 255 set .yvel 255 set .zvel 255 } +ends + +defstate resetallws // reset all sprites and walls to default repeat/panning + for i allsprites + { + set .xrepeat 64 + set .yrepeat 64 + } + for i allwalls + { + set wall[i].cstat 0 + set wall[i].xpanning 0 + set wall[i].ypanning 0 + set wall[i].yrepeat 8 + fixrepeats i + } +ends diff --git a/polymer/eduke32/m32script_ex.map b/polymer/eduke32/m32script_ex.map index 0d79ee674a0f9eedd3e674302d8f9d3408098519..0a98c6c138da1a4539fc4889e6df8cc40689d491 100755 GIT binary patch literal 17242 zcmb80Uuc&1701t;#JsIhqsEzN)Vwun(x#oRYGbRbu3Dp}o9W`3c5$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