To prevent errors, please make sure to add your vsconds to the root table when using IncludeScript().
Example: IncludeScript("addvscond/conditions/EXAMPLE_readme.nut", ROOT);
Compiler functions updated
VSCONDS_CLEANUP()
Removed a few checks to prevent rerunning on failed attempt,
Now runs before compiling anything, to prevent attachments staying on map,
Runs when a vsconds order is rearranged, for the same reason above.
VSCONDS_ADD_CONDITION()
For testing vsconds, any time the same vscond is reprocessed, it runs VSCONDS_CLEANUP() and rewrites vscond ID numbers.
Fixed bug with GetVSCondDuration() returning 0 if duration was infinite (or -1)
Now prints funny number 1e30
Updated "Big Think" Script
Now runs VSCONDS_CLEANUP() on I/O firing RoundSpawn, and same function when spawned in
Starts as classname filter_activator_tfteam, then changes to move_rope to preserve itself through map restarts,
Pauses itself thinking when VSCONDS_CLEANUP() running.
Updated VSCONDS_CLEANUP()
Added two checks before running cleanup,
Check one makes sure vsconds implementation queue not active, if so run delay
Check two is if cleanup is already running, don't run at all.
Overhauled VSCONDS_COMPILE() and boot process
Removed compiler.nut and simplified the whole thing,
Can only add conditions via this function:
VSCONDS_ADD_CONDITION( "MyVSCondEXAMPLE" );
^ Requires it to be in string format and a class.
Kinda got annoyed that the new conditions I want to add in my map were being limited by the compiler, so I just remade it. I hope it's simpler for everybody.
Other stuff:
AddVSCond() default provider is now entity given the vscondition
if provider = null, then provider becomes worldspawn.
Added new setting addcondIgnoreDeathState
Allows entity to still receive AddVSCond(), even if "m_lifeState" > 0,
Useful for Engie buildings being ignored by bots when netprop "m_lifeState" = 1.
Example VSCond "VS_COND_TEAMSWAP" now switches teams based off provider's team.
Example VSCond "VS_COND_SHIELD" shield now matches scale and centers with entity bounding box.
Added settings for conditions, so you can prevent vsconds from clearing on resupply, changeclass, changeteam, death, and even the RemoveVSCond() itself!
These are the variables you can add in the VS_COND_BASE class
If this is your first time logging in after the migration (Feb 8, 2022), you must reset your password to log in. Follow this guide if you're having trouble