You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--- Returns 2 passed numbers in order from smaller to bigger. Expands them further apart by 200, because this is meant to be used by `reset_view()` and to have a bit more space around visible objects.
--- Returns 2 passed numbers in order from smaller to bigger. Expands them further apart by 200, because this is meant to be used by `reset_view()` and to have a bit more space around visible objects.
localhelp="Script for Doom engine games by feos and kalimag.\n\n"..
1469
+
1470
+
"Shows player info. If you have several players in-game you can hover on player info and scroll the mouse wheel to show info for different players.\n"..
1471
+
"Shows current tic, in-game time, and RNG index along with value at that index.\n\n"..
1472
+
1473
+
"Shows Automap consisting of linedefs, sectors, and things (toggled via the 'Map' button).\n"..
1474
+
"Shows blockmap grid (toggled via the 'Grid' button).\n"..
1475
+
"The 'Reset View' button zooms and pans the automap to make all things visible.\n"..
1476
+
"The 'Follow' button makes the camera stick to the player that is currently selected on the left panel.\n"..
1477
+
"The 'Hilite' buttons enables highlight/selection mode where you can hover on sectors, linedefs, and things to see their info on the left, in corresponding colors.\n"..
1478
+
"Use Mouse Wheel to zoom in and out, and mouse movement with the 'Space' key held down to pan.\n\n"..
1479
+
1480
+
"Buttons for adding things, lines, and sectors allow to track those entities. If more than one object of a given type is tracked, you can hoven on them and scroll through them with the mouse wheel. They can also be removed from the tracked list by hitting the red cross button that appears on hover. \n\n"..
1481
+
1482
+
"Tracked entity lists and Automap config are saved when the script is stopped or restarted or when you add or remove tracked entities. To manually edit the config file, disable the script, edit the 'doom.settings.lua' file if it exists, then start the script again. Editing it while the script is running will overwrite your edits later. Config also stored Angle type which has no other way to change it.\n\n"..
1483
+
1484
+
"You can log which thing has used or crossed linedefs, with options being None, Player, and All\n\n"..
1485
+
1486
+
"You can log various info every time a P_Random() call happens with a class that changes the RNG value. Log prints tic count when the call happened, which call it is per that tic, the RNG index, the value at that index, and the call stack (while file and line called P_Random() within which function).\n\n"..
1487
+
1488
+
"You can display intercepts on the Automap: tracelines and blockmap blocks where intercepts happen. Red color means an intercept happened on this tic, then the color fades to grey.\n\n"..
1489
+
1490
+
"And the most complicated feature is intercept logging. It will inform you when the intercept count exceeded a user-defined limit, which is 128 by default but can be changed in config (the 'InterceptLimit' value). If the intercept count exceeded exactly 128 (regardless of user defined limit), a button will appear that will print info on all the intercepts that caused the overflow, as well as info on all the vanilla addresses they corrupted. Boom fixed intercept overflow, so in Boom complevel this feature is disabled."
1491
+
1492
+
print(help)
1493
+
end
1494
+
1467
1495
--- Doom uses left mouse clock for firing and if we're running unpaused we don't want clicking script buttons to trigger fire. Currently only blocks first player fire. TODO: block for all players
1468
1496
functionsuppress_click_input()
1469
1497
ifMAP_CLICK_BLOCKandMAP_CLICK_BLOCK~="" then
@@ -1595,6 +1623,8 @@ end
1595
1623
--#endregion
1596
1624
1597
1625
1626
+
--#region LOOKUPS
1627
+
1598
1628
-- Additional types that are not identifiable by flags alone
0 commit comments