settable mobj lightlevel from lua
This commit is contained in:
1 parent
c379db831c
commit
01208a858d
2 files changed
+4
No files matched your search
@@ -97,6 +97,7 @@ static const udata_field_t mobj_fields[] = {
|
||||
FIELD(mobj_t, spritexoffset, udatalib_getter_fixed, udatalib_setter_fixed),
|
||||
FIELD(mobj_t, spriteyoffset, udatalib_getter_fixed, udatalib_setter_fixed),
|
||||
FIELD(mobj_t, touching_sectorlist, mobj_touching_sectorlist_unimplemented, mobj_touching_sectorlist_unimplemented),
|
||||
FIELD(mobj_t, lightlevel, udatalib_getter_int16, udatalib_setter_int16),
|
||||
FIELD(mobj_t, subsector, udatalib_getter_subsector, mobj_nosetpos_subsector),
|
||||
FIELD(mobj_t, floorz, udatalib_getter_fixed, mobj_nosetpos_floorz),
|
||||
FIELD(mobj_t, ceilingz, udatalib_getter_fixed, mobj_nosetpos_ceilingz),
|
||||
|
||||
@@ -2158,6 +2158,9 @@ static void LoadMobjThinker(savebuffer_t *save, actionf_p1 thinker)
|
||||
// Timer for slam sound effect
|
||||
mobj->slamsoundtimer = 0;
|
||||
|
||||
// extra mobjlightlevel
|
||||
mobj->lightlevel = 0;
|
||||
|
||||
//}
|
||||
|
||||
if (diff & MD_REDFLAG)
|
||||
|
||||
Reference in new issue
Block a user