Subversion Repositories eduke32

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
4977 2365d 13h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua CON: Add undefinevolume, undefineskill, and undefinelevel.  
4972 2366d 0h 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 2366d 11h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua CON: Add read-only access to ud.config.MusicToggle through the "musictoggle" member.  
4969 2366d 11h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua CON: Add STR_YOURTIME, STR_PARTIME, STR_DESIGNERTIME, and STR_BESTTIME to qgetsysstr.  
4968 2366d 11h 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 2369d 2h 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.
DONT_BUILD.
 
4945 2380d 7h 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.

before:

onevent EVENT_DISPLAYMENUREST
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
}
endevent

after:

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
}
ends

onevent EVENT_DISPLAYMENUREST state DisplayMenuCommon endevent
onevent EVENT_DISPLAYINACTIVEMENUREST state DisplayMenuCommon endevent
 
4928 2388d 18h 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 2422d 20h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua LunaCON: expose more members, properly handle setting ud.screen_size.

BUILD_LUNATIC.
 
4800 2429d 22h 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 2458d 21h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua LunaCON: player[].loogcnt, userdef[].color, minor fixes.  
4570 2549d 23h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua LunaCON: properly initialize values of session (NODEFAULT) gamevars.  
4567 2556d 1h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua 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 2602d 20h hendricks266 /polymer/eduke32/source/lunatic/con_lang.lua By request, implement EVENT_ACTIVATECHEAT.  
4475 2632d 9h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua LunaCON: add read-only variable 'Numsprites', r/w userdef member .mouseaiming.  
4448 2660d 20h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua CON: add getactor[]/sprite[] member 'movflags'.

This is exactly the same as the actor[].movflags member in the Lunatic build:
http://lunatic.eduke32.com/lunatic.html#actor
 
4416 2675d 7h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua Rename sector[].filler member to '.fogpal'. From CON, keep the '.alignto' alias.

The overall situation is thus as follows:
- in C and from Lua, that member is called 'fogpal'
- In CON (both C-CON and LunaCON), it's 'fogpal' with 'alignto' being an alias;
'filler' wasn't available before, either.
- In m32script, it's 'fogpal' or 'alignto' ('filler' is not available any more)
 
4396 2685d 22h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua LunaCON: provide access to wall[].blend.  
4372 2696d 5h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua LunaCON: warn if using reserved bits in 'spriteflags'.

Reserved bits are those that have no predefined SFLAG_* label in CON.
 
4371 2696d 5h helixhorned /polymer/eduke32/source/lunatic/con_lang.lua 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
for NEWBEAST.
 

Show All