Lunatic: sync MAXJOYAXES, add lunatic/test/sprite_addtv.con. DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@4829 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2014-12-20 13:08:27 +00:00
parent ac4bbaf0f1
commit b716534104
4 changed files with 37 additions and 2 deletions

View file

@ -10921,6 +10921,7 @@ int32_t loadmaphack(const char *filename)
else if (fn[0])
{
// re-load
// XXX: what if we changed between levels? Could a wrong maphack be loaded?
script = scriptfile_fromfile(fn);
}

View file

@ -480,8 +480,11 @@ enum
MAXMOUSEAXES = 2,
MAXJOYBUTTONS = 32,
MAXJOYBUTTONSANDHATS = (32+4),
MAXJOYAXES = 8,
MAXJOYAXES = 9,
NUMGAMEFUNCTIONS = 56,
// game.h
MAXRIDECULE = 10,
MAXRIDECULELENGTH = 40,
MAXSAVEGAMES = 10,

View file

@ -67,7 +67,7 @@ endevent
gamevar alpha 0 0
gamevar tmp 0 0
onevent EVENT_GAME // XXX: better: on spawn + loadactor
onevent EVENT_GAME // XXX: better: in EVENT_EGS + EVENT_LOADACTOR
ifactor LIZTROOP
{
getactor[THISACTOR].mdflags tmp

View file

@ -0,0 +1,31 @@
gamevar tmp 0 0
gamevar cs 0 0
state setup_animatesprites
getactor[THISACTOR].mdflags tmp
orvar tmp 16
setactor[THISACTOR].mdflags tmp
ends
onevent EVENT_EGS
state setup_animatesprites
endevent
onevent EVENT_LOADACTOR
state setup_animatesprites
endevent
// Assuming a PALETTE.DAT with e.g.:
// blend 0: 50/50 alpha
// blend 1: factor 1.0 additive
//
// See discussion starting from
// http://forums.duke4.net/topic/775-eduke32-20-and-polymer/page__view__findpost__p__213408
onevent EVENT_ANIMATESPRITES
getactor[THISACTOR].cstat cs
ifvarand cs 2 ifvarand cs 512
setactor[THISACTOR].blend 1
else
setactor[THISACTOR].blend 0
endevent