mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 12:30:40 +00:00
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:
parent
ac4bbaf0f1
commit
b716534104
4 changed files with 37 additions and 2 deletions
|
@ -10921,6 +10921,7 @@ int32_t loadmaphack(const char *filename)
|
||||||
else if (fn[0])
|
else if (fn[0])
|
||||||
{
|
{
|
||||||
// re-load
|
// re-load
|
||||||
|
// XXX: what if we changed between levels? Could a wrong maphack be loaded?
|
||||||
script = scriptfile_fromfile(fn);
|
script = scriptfile_fromfile(fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -480,8 +480,11 @@ enum
|
||||||
MAXMOUSEAXES = 2,
|
MAXMOUSEAXES = 2,
|
||||||
MAXJOYBUTTONS = 32,
|
MAXJOYBUTTONS = 32,
|
||||||
MAXJOYBUTTONSANDHATS = (32+4),
|
MAXJOYBUTTONSANDHATS = (32+4),
|
||||||
MAXJOYAXES = 8,
|
MAXJOYAXES = 9,
|
||||||
|
|
||||||
NUMGAMEFUNCTIONS = 56,
|
NUMGAMEFUNCTIONS = 56,
|
||||||
|
|
||||||
|
// game.h
|
||||||
MAXRIDECULE = 10,
|
MAXRIDECULE = 10,
|
||||||
MAXRIDECULELENGTH = 40,
|
MAXRIDECULELENGTH = 40,
|
||||||
MAXSAVEGAMES = 10,
|
MAXSAVEGAMES = 10,
|
||||||
|
|
|
@ -67,7 +67,7 @@ endevent
|
||||||
gamevar alpha 0 0
|
gamevar alpha 0 0
|
||||||
gamevar tmp 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
|
ifactor LIZTROOP
|
||||||
{
|
{
|
||||||
getactor[THISACTOR].mdflags tmp
|
getactor[THISACTOR].mdflags tmp
|
||||||
|
|
31
polymer/eduke32/source/lunatic/test/sprite_addtv.con
Normal file
31
polymer/eduke32/source/lunatic/test/sprite_addtv.con
Normal 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
|
Loading…
Reference in a new issue