Subversion Repositories eduke32


Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
5047 2238d 10h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua CON: Add EVENT_DISPLAYROOMSCAMERA and EVENT_DISPLAYSTART.

EVENT_DISPLAYROOMSCAMERA functions exactly like EVENT_DISPLAYROOMS, including RETURN values, but for the ud.camerasprite >= 0 case.
EVENT_DISPLAYSTART is executed immediately after the screen background is cleared and drawn. Ensure its RETURN value is zero, because it is currently not being used.

WARNING: Consult the devs before using EVENT_DISPLAYSTART. Its position in the display code sequence is not finalized.
5046 2238d 10h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua CON: Add EVENT_DISPLAYCAMERAOSD. Set RETURN to -1 to disable it.

From this event, if "getactor[THISACTOR].htg_t 0" is zero, then the camera is functional. Nonzero values indicate the camera has been destroyed, which is only possible when the CAMERASDESTRUCTABLE parameter of gamestartup has been enabled.
5045 2238d 10h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua CON: Add EVENT_DISPLAYLEVELSTATS. Set RETURN to -1 to disable them.  
5039 2242d 15h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua CON: Add "resetplayerflags". Flag 1 means "don't ask the user if they want to load".  
5036 2245d 3h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua LunaCON: add 'definevolumeflags' to keyword pattern, re-apply some changes of r5026.

5031 2251d 19h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua CON: Rename "cutscene" command to "startcutscene".  
5029 2251d 22h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua Lunatic: update user_defs, CPLUSPLUS=0 in, disable 'cutscene' for now.

5008 2257d 1h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua LunaCON: add 'cutscene' and 'ifcutscene' as NYI commands. DONT_BUILD.  
5003 2263d 10h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua Replace erroneous use of EVENT_DISPLAYCROSSHAIR with new event EVENT_DISPLAYCURSOR.  
4977 2265d 12h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua CON: Add undefinevolume, undefineskill, and undefinelevel.  
4972 2265d 23h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua CON: Amend retrieval of STR_*TIME for qgetsysstr, fixing LunaCON and possible oob.

- Add declarations of C functions to defs.ilua, names to dynsymlist,
fix typo in con_lang.lua, ffi.string() calls in control.lua
- Assert that G_LastMapInfoIndex() is always called with ud.last_level >= 1.
(A stricter requirement than necessary to prevent follow-up oob accesses, but
logically the most meaningful.)
- In G_PrintParTime() and G_PrintDesignerTime(), return "<invalid>" if the above
does not hold. This can happen from EVENT_NEWGAME, for example. Add a test to
lunatic/test/qgetsysstr.con. DONT_BUILD.
4970 2266d 9h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua CON: Add read-only access to ud.config.MusicToggle through the "musictoggle" member.  
4969 2266d 9h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua CON: Add STR_YOURTIME, STR_PARTIME, STR_DESIGNERTIME, and STR_BESTTIME to qgetsysstr.  
4968 2266d 9h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua Factor out generation of strings for time values in the bonus screen. This involves the creation of ud.playerbest.  
4956 2269d 1h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua Add SFLAG_NOWATERDIP, unconditionally preventing actors from dipping into ST1 water.

By default, the following enemies have this flag set: OCTABRAIN, COMMANDER, DRONE.
4945 2280d 5h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua Add events EVENT_DISPLAYINACTIVEMENU and EVENT_DISPLAYINACTIVEMENUREST and userdef members m_origin_x and m_origin_y.

This allows for CON screen display code to use menu animations. The following is an example of how to adapt screen features that should animate.


ifvare current_menu 0 // main menu
setvar x 1
setvar y 1
rotatesprite x y zoom ang tilenum shade pal orientation 0 0 xdim ydim


state DisplayMenuCommon
ifvare RETURN 0 // main menu
getuserdef[THISACTOR].m_origin_x x
getuserdef[THISACTOR].m_origin_y y
addvar x 65536
addvar y 65536
rotatesprite16 x y zoom ang tilenum shade pal orientation 0 0 xdim ydim

onevent EVENT_DISPLAYMENUREST state DisplayMenuCommon endevent
onevent EVENT_DISPLAYINACTIVEMENUREST state DisplayMenuCommon endevent
4928 2288d 17h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua CON: Add new commands "getmusicposition" and "setmusicposition" that operate on the playback position of the current music track.

// Example: Switch between tracks like radio stations.
getmusicposition temp
starttrackvar next_music_track
setmusicposition temp

Only implemented for Ogg Vorbis, FLAC, and XA. Consult the devs before using these commands.
4814 2322d 19h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua LunaCON: expose more members, properly handle setting ud.screen_size.

4800 2329d 20h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua voxmodel.c: fix Polymost rendering of voxels.

This reverts/corrects two semantic changes of r4639 as far as what is now
voxmodel.c (formerly part of mdsprite.c) is concerned. One correction ends
up having no effect (m->bscale is always 1.f for voxel models, as far as I
can see), but is the proper rewrite.

Also, in osdcmds.c:registerosdcommands(), tweak two help strings.
4732 2358d 19h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua LunaCON: player[].loogcnt, userdef[].color, minor fixes.  

Show All