raze-gles/polymer/eduke32/source/lunatic/test/mapstate.con
helixhorned 76299ca635 LunaCON: partially implement {save,load}mapstate CON commands.
What is missing is saving and restoring per-player and per-actor gamevars.
Also add a test CON mutator 'mapstate.con'.

git-svn-id: https://svn.eduke32.com/eduke32@3794 1a8010ca-5511-0410-912e-c29ae57300e0
2013-05-20 19:31:34 +00:00

33 lines
629 B
Text

// Map state test.
// To warp to a particular map, press the steroids key.
// Volume: player angle / 512, displayed on screen.
// Level: current weapon.
define Q 400
definequote Q ====== TEMP =======
definequote 401 VOLUME %d
state calcvolume
getplayer[THISACTOR].ang gs
andvar gs 2047
divvar gs 512
ends
onevent EVENT_DISPLAYREST
state calcvolume
qsprintf Q /*<-*/ 401 /**/ gs
gametext STARTALPHANUM 20 20 Q 0 0 0 0 0 xdim ydim
endevent
onevent EVENT_USESTEROIDS
savemapstate
state calcvolume
startlevel gs currentweapon
endevent
onevent EVENT_ENTERLEVEL
loadmapstate
endevent