settable mobj lightlevel from lua
This commit is contained in:
1 parent
09e901b31b
commit
d2ca916043
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),
|
||||
|
||||
@@ -2177,6 +2177,9 @@ static void LoadMobjThinker(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