Build 9720
GIT-
zero player .horizRecenter and .horizSkew when zeroing return_to_center from CON
SVN handles and Git names are merged into one person.
zero player .horizRecenter and .horizSkew when zeroing return_to_center from CON
additional gamevar verification when loading savegames
add predefined MAXLEVELS and MAXVOLUMES for CON
in EVENT_LOADGAME, give RETURN a default value equaling the userbytever field from the savegame header and relax sv_loadheader() check
Add events EVENT_PREUPDATEANGLES and EVENT_POSTUPDATEANGLES
These events trigger once every frame and provide access to the input struct value updates of each frame. This makes it possible to alter input.q16avel and input.q16horz again, even with smooth mouse aiming. Addresses terminx/eduke32#132
Improve the CON_ADDLOGVAR command
Changes: - Passing struct members and player vars as argument now works. - If struct members are accessed without specifying the index, the command will display which index was used by the CON VM. - Enable use of constant values for array indexing in addlogvar - Enable logging of integer constants with addlogvar - General refactoring and code improvement.
Update g_animPtr before and after cutscene loops
This will allow all CUTSCENE events to use the ifcutscene command. Before, only EVENT_CUTSCENE for ANM files could use it.
break from CON while loops on VM_RETURN
This should fix terminx/eduke32#16
CON control over player height and other properties
You're gonna have to talk to me or read the source for full details on usage, sorry. These are also all still liable to change in future builds, either in name or in functionality.
per-player gravity control through .gravity member of player struct
The default value is 256 (GRAVITATIONALCONSTANT value from USER.CON + 80).
fix incorrect sound_t struct member type
This didn't really affect anything because this functionality isn't exposed to CON yet.
remove STATIC prefix from the CON dynamic label preprocessor definitions because it's ugly
This also adds bounds checking to the DYNAMICSOUNDMAP and DYNAMICTILEMAP macros, and reduces the size of the corresponding arrays to something more reasonable.
expose gotsector[] to CON for checking to see if a particular sector was drawn during the last frame
Fix buffer overflows with parsing out of range strings in CON files
remove INTERNAL ERROR messages from Gv_GetVarIndex() and Gv_GetArrayIndex()
This is only ever used for refreshing pointers to certain special gamevars and for checking if variables in savegames exist in the currently running script--it doesn't need to print errors to the console.
get rid of separate check for common gamevar types before the switches in getvar__ and setvar__
It wasn't any faster.
mark compiled CON_MOVE/CON_AI/CON_ACTION with a trailing value
This is so I can tell the difference between actor .t_data[] values that are actually set to something defined in CON versus bullshit arbitrary internal usage of the same variable, which I need for a future commit.
remove extraneous call to videoNextPage() when handling savegames initiated from CON
use timerGetPerformanceCounter() instead of timerGetHiTicks() for CON performance profiling
this is intended to fix an issue where CON VM errors within a CON_FOR loop could cause an infinite loop