Build 10626
GIT-
Add userdef quote_yoffset
Show details
Allows adjustable Y-offset for in-game quotes from CON. Input expects higher precision coordinates similar to rotatesprite16.
SVN handles and Git names are merged into one person.
Add userdef quote_yoffset
Allows adjustable Y-offset for in-game quotes from CON. Input expects higher precision coordinates similar to rotatesprite16.
Add EVENT_OPERATEACTIVATORS
EVENT_OPERATEACTIVATORS is run against each STAT_ACTIVATOR with a matching lotag when a typical Duke3D button/touchplate is triggered. Current sprite will be stored in THISACTOR and setting RETURN -1 will skip the normal processing of any remaining activator logic. This does not work with Masterswitches as they use a completely different logic instead.
Implement `includeoptional` in Mapster32's CON parsing
Add "includeoptional" CON token, that doesn't error out if the included file is absent.
allow frame drawing between segments of EVENT_WORLD/EVENT_PREWORLD chains
add CON_YIELD
Allows long-running CON execution to yield to rendering and player input handling.
support sensible conversions between gamearray types when loading savegames
add .ang member for walls in CON
allow the user to choose whether to continue with internal scripts once bad CON files are encountered in their game directory
use internal CONs if external CON compilation fails, like the DOS version did.
I see now that Todd was actually very wise.
fix a rare input issue involving creating savegames while the CON script execution is lagging
detect invalid .sectnum and .statnum with setactor
fix bug in CON EVENT_SCREEN where keypresses weren't being cleared between loop iterations, preventing animations where each keypress skips a segment without bailing out of the whole thing
Add missing GAMEVAR_RAWQ16PTR case in VM_GAMEVAR_OPERATOR
EVENT_PRE/POSTWEAPONSHOOT: Set ud.return[0]/userdef.return 1 to the number of the current shot we're processing in a burst
Give EVENT_POSTWEAPONSHOOT the return value of A_Shoot.
Port EVENT_PREWEAPONSHOOT and EVENT_POSTWEAPONSHOOT from NetDuke32.
* Setting RETURN to non-zero in EVENT_PREWEAPONSHOOT cancels the shot.
Add warning when `terminate` found outside state or event
Add warning when `break` found inside loop (and not inside `switch`)
Add terminate
Add exit and continue
Add prependstate and appendstate
Duke3D/Editor: Add "whilevare" CON command
Also fix editor checking for "else" tokens on whilevarl.
weapons.sample.con: Implement EVENT_DISPLAYTIP and EVENT_DISPLAYACCESS
weapons.sample.con: Fix knuckle shade and position
weapons.sample.con: Replace "ifand N xor N" with "and -N-1"
weapons.sample.con: Make use of scalevar where appropriate
weapons.sample.con: Replace multiplications by -1 with inv and abs
Add screentext.con as previously present under source/duke3d/src/lunatic
change crouch jump handling to short-circuit CON VM "ifp pducking" instead of short-circuiting how the player code chooses which autostep value to use
fix m32script crash
add an EVENT_INIT that fires once per explicit `include` of a script filename from the console (including from within m32_autoexec.cfg)
Introduce actor event 'EVENT_PREACTORDAMAGE'
This event is executed when an actor runs A_IncurDamage(), and is placed just before subtracting 'htextra' from 'extra' and updating the actor's owner (i.e. just before damage is applied to the actor). For useractors, this normally occurs when ifhitweapon is called. Set RETURN to a nonzero value to skip applying the damage. This will also cause the 'ifhitweapon' conditional to skip the branch. Note that doing so will not automatically reset htextra to 0.
Print script name and line if gamevar/struct index error occurs
improve CON VM debug dump output
Replaces more or less useless offsets from script pointer with filename and line number and consolidates parameters passed to CON commands into the same line in the output.
add debug vm_preempt cvar to control CON VM preemption by frame drawing
This doesn't save to the .cfg because it's a tool for debugging and is not intended to be used as a user preference.
add projectile flags to CON default definitions
disallow drawing frames between EVENT_PREGAME iterations
stupid CON VM optimizations
Replaces VM_ASSERT macro with new VM_ABORT_IF macro, ~1-2% perf increase in real world tests using heavy scripts (Ion Fury)