Subversion Repositories eduke32


Go to most recent revision | Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
4567 2642d 16h helixhorned /polymer/eduke32/source/lunatic/defs.ilua A couple of Lunatic updates. DONT_BUILD.

- LunaCON: support for setting userdef[].m_volume_number, getting .last_level
- bump con_lang.MAXEVENTS
- fix compilation of astub.c
4515 2689d 10h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua By request, implement EVENT_ACTIVATECHEAT.  
4472 2719d 21h hendricks266 /polymer/eduke32/source/lunatic/defs.ilua Replace some constants with preprocessor macros.  
4428 2757d 15h helixhorned /polymer/eduke32/source/lunatic/defs.ilua CON: in rotatespritea and screentext, if alpha < 0, make -alpha denote blend.

For convenience, orientation gets bit 1 (translucency) set automatically.
Again, test/screentext.con is updated to show off this functionality (the
code there assumes that additive blending tables are loaded at blend
numbers 101 -- 132).

4378 2781d 19h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Fix the "fix for flying/jumping monsters getting stuck in water".

In C and Lunatic, split 'jumptoplayer' of enum amoveflags_t / action.MOVFLAGS
into 'jumptoplayer_bits' and 'jumptoplayer_only' (see updated Lunatic doc).
4376 2782d 20h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: fix 'spawn' OSD command when running with -Lopts=strict.

4375 2782d 20h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: fix DBG_.testmembread after r4290.  
4374 2782d 20h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: for gameactor(), deprecate AF.replace_hard, make AF.replace default.

That is, always bitwise-OR the per-tile actor flags with the existing ones.
4371 2782d 20h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Add new actor flag and predefined CON label SFLAG_NODAMAGEPUSH.

This flag is set from C for some enemies that should not be pushed back when
damaged, such as TANK. Both the tile flag and the per-sprite flag are used
(i.e. the ultimate flag value is the XOR of the two).
Add currently non-functional example to test.lua that attempts to set this bit
4370 2782d 20h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: implement passing string label to 'spawn' OSD command.

Unlike in C-CON, it only tries an exact match with the given and uppercased
label, not "full" case-insensitive search.
4291 2823d 23h helixhorned /polymer/eduke32/source/lunatic/defs.ilua LunaCON: implement 'precache'.  
4285 2825d 12h helixhorned /polymer/eduke32/source/lunatic/defs.ilua LunaCON: error on userdefs accesses with non-local current player.

Add lunatic/test/getuserdef.con.
4262 2837d 13h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: document engine.*shadetab() functions. DONT_BUILD.  
4260 2841d 13h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: make gv.current{Level,Episode} one-based and document them.

Also, in LunaCON, make player .palette member read-only. BUILD_LUNATIC.
4236 2856d 22h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: add 'engine' module, currently allowing to create custom shade tables.

Available in the game and editor. Provide test/shadexfog.lua, containing a
function to creating a set of 32 shade tables corresponding to different shades
of the same fog palookup table, together with some tests and convenience

- Add LUNATIC_FIRST_TIME in the global env for the game
- defs_m32.lua: add reload() convenience function
- Failed attempt at recreating the base shade table. It is NOT a linear ramp
of the base palette colors to (0,0,0). That is, it's not created by
4217 2861d 14h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: expose player[].gotweapon, document it and *_weapon() methods.  
4209 2864d 0h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: error on invalid static data read like 'sprite.picnum'.  
4206 2867d 15h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Scripting: Add EVENT_DAMAGEHPLANE and document it in Lunatic doc Appendix B.

Also add test/damagehplane.lua with these demonstrations:
- custom breakable ceilings
- breakable TROR glass
4179 2889d 12h helixhorned /polymer/eduke32/source/lunatic/defs.ilua LunaCON: disable some player members, tweak decls of others.

The ones disabled are because they were found to not be used in any mod I
tested. Exposing members directly is rarely good API.

- bool toggle_key_flag -> const uint8_t ... (because value 2 is used)
- make scream_voice, cheat_phase read-only
4147 2906d 17h helixhorned /polymer/eduke32/source/lunatic/defs.ilua Lunatic: add 'fs' module containing 'listpath' function, 'd' in global env.

See the updated documentation for (ATM sparse) details.

Show All