Subversion Repositories eduke32

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
5043 2233d 10h hendricks266 /polymer/eduke32/source/gamestructures.c C-CON: Add read-only userdef members "usevoxels", "usehightile", and "usemodels".  
4970 2261d 10h hendricks266 /polymer/eduke32/source/gamestructures.c CON: Add read-only access to ud.config.MusicToggle through the "musictoggle" member.  
4968 2261d 10h hendricks266 /polymer/eduke32/source/gamestructures.c Factor out generation of strings for time values in the bonus screen. This involves the creation of ud.playerbest.  
4945 2275d 5h hendricks266 /polymer/eduke32/source/gamestructures.c 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
 
4897 2289d 13h terminx /polymer/eduke32/source/gamestructures.c Faster/better optimized access to game structures from C-CON.  
4747 2339d 5h terminx /polymer/eduke32/source/gamestructures.c Part 1 of attempting to adhere to C standard section 7.1.3. It turns out it's illegal to use identifiers that begin with _ or have __ anywhere in them. DONT_BUILD.  
4738 2344d 10h hendricks266 /polymer/eduke32/source/gamestructures.c Set up mouse cursor display in menus, with idle timeout fully implemented. No functionality yet. DONT_BUILD.  
4703 2363d 1h terminx /polymer/eduke32/source/gamestructures.c Clean up some player code a bit... make bobposx/bobposy a vec2_t, make fricxv/fricyv a per-player vec2_t (TODO: CON access), promote angvel in input_t to int16_t and allow for player angle changes that result in odd numbered angles (we were effectively artificially limiting the angle to 1024 values before), fix some HUD model ID stuff that should help with the weapons in the HRP, clean up a bunch of random functions (P_FireWeapon(), P_DisplayTip(), P_DisplayAccess(), P_DisplayWeapon(), P_GetInput(), etc). Also clean up G_SetupFilenameBasedMusic() to loop through flac/ogg/mid when searching for usermap music replacements. Some of this really needs a BYTEVERSION bump, but these commits aren't for synthesis to build so we're not doing it yet. DONT_BUILD.  
4680 2367d 14h terminx /polymer/eduke32/source/gamestructures.c Another 5000 lines of pain and tears. DONT_BUILD.  
4623 2392d 14h terminx /polymer/eduke32/source/gamestructures.c More Polymost cleanup, also consolidate tilesizx and tilesizy into a single tilesiz vec2_t to ensure both x and y are always in the same cache line. I may add a new vec2_16t later. Still need to take care of emulating the old flat array for the sake of CON access.  
4541 2464d 9h hendricks266 /polymer/eduke32/source/gamestructures.c Replace the funkily-formatted GNU.TXT with the FSF's official gpl-2.0.txt. Also, update the FSF's address in all source files that contain it.

DONT_BUILD.
 
4537 2477d 19h hendricks266 /polymer/eduke32/source/gamestructures.c Miscellaneous get/set(this)projectile cleanup.  
4416 2570d 6h helixhorned /polymer/eduke32/source/gamestructures.c 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)
 
4305 2626d 3h helixhorned /polymer/eduke32/source/gamestructures.c In the C code, rename sprite[].filler to 'blend'.

Also, fix a missed .filler -> g_ambiencePlaying[] rewrite in the editor.
In C-CON, 'detail' is kept as alias to C-side (former) .filler / now .blend,
but that name is *deprecated*.
 
4215 2669d 22h helixhorned /polymer/eduke32/source/gamestructures.c Minor stylistic tweaks of code related to weapon switching.  
4146 2715d 1h helixhorned /polymer/eduke32/source/gamestructures.c CON: add sprite pseudo-member 'isvalid', getting 1 if the sprite is valid.

And 0 otherwise. Before accessing a sprite that is not not known to be
definitely valid (e.g. a loop over all sprites from 0 to MAXSPRITES-1),
one should check for validity before accessing it in any other fashion.
 
3866 2870d 1h helixhorned /polymer/eduke32/source/gamestructures.c CON: add projectile member .userdata and predefined label PROJ_USERDATA.

It is a 32-bit signed integer. No version bump necessary, although CON code
accessing this new member will not work with earlier revisions (obviously).
 
3429 3005d 22h helixhorned /polymer/eduke32/source/gamestructures.c CON parser: don't accept read-only gamevars for 1st arg of *sprite{sect,stat}.  
3314 3038d 4h helixhorned /polymer/eduke32/source/gamestructures.c Pack actor_t's bposx/bposy/bposz members into a vec3_t named "bpos".  
3238 3065d 9h hendricks266 /polymer/eduke32/source/gamestructures.c Fix warnings involving printf() requiring explicit casts on tracked types.  

Show All