mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 15:21:48 +00:00
76299ca635
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
33 lines
629 B
Text
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
|