MjnMixael
e369cf98d3
API access to weapons allowed on a ship class and/or in a specific bank ( #4697 )
...
* API access to weapons allowed on a ship class and/or in a specific bank
* Allow just checking the ship and not banks
* # This is a combination of 2 commits.
syntax fix
Add method to get number of primary and secondary banks
* We don't need these
* get default weapons for each bank
* # This is a combination of 2 commits.
documentation
return secondary not primary
* fix merge error
* Address feedback
2022-09-29 16:18:14 +09:00
MjnMixael
44d042edb8
Make Wss_slots writable ( #4717 )
...
* Make Wss_slots writable
* cleanup
2022-09-28 22:53:45 +09:00
Goober5000
ac57537f94
Merge pull request #4718 from Goober5000/script_vecmat_copy
...
a couple of scripting enhancements
2022-09-26 21:21:34 -04:00
Goober5000
1794ba87b3
address feedback
2022-09-26 19:54:18 -04:00
Goober5000
e2dbfca1c3
allow customizing of debug particle color
2022-09-26 18:45:19 -04:00
Goober5000
00746f1f92
add copy methods for matrixes and vectors
2022-09-26 18:43:50 -04:00
mjn-mixael
eb3c8a25fb
MAX_SHIP_WEAPONS
2022-09-26 08:03:40 -05:00
mjn-mixael
1e7ee8b345
Lua API read-only access to the actual loadout
2022-09-24 16:30:44 -05:00
EatThePath
367e19b751
Merge pull request #4694 from MjnMixael/ScpuiShipSelect
...
Scpui ship select
2022-09-24 15:15:13 -05:00
EatThePath
7c3e07ab7b
Unify default filters and consolidate the new lua category
2022-09-22 21:58:24 -05:00
Goober5000
b0e8f260bb
Merge pull request #4695 from Goober5000/more_sexps_to_scripts
...
a few more script enhancements
2022-09-22 18:50:11 -04:00
MjnMixael
f7d84dfe76
Update ui.cpp
...
return
2022-09-22 09:13:27 -05:00
mjn-mixael
601a41bb60
return invalid handle
2022-09-22 08:17:19 -05:00
MjnMixael
5f183832e1
Scpui api briefing map ( #4656 )
...
* API version of the briefing map
* Cleanup
* Further cleanup
* # This is a combination of 2 commits.
Fix resizing and cleanup remaining static anim calls
Revert changes completely
* Fix documentation
* implement initBriefing and rearrange map drawing methods to match.
* Documentation
* nullptr
2022-09-22 16:04:14 +09:00
Goober5000
c7b1092a96
a few more script enhancements
...
1) Add the "no-thrusters" ship flag to the list of flag that can be used by alter-ship-flag or the ship's setFlag function
2) Add a `FireRateMultiplier` virtvar to control the firing rate of turrets (fulfills #4300 )
3) Add a `setGlowPointBankActive` function to do the same thing as `activate-glow-point-bank`/`deactivate-glow-point-bank`
2022-09-22 02:12:17 -04:00
mjn-mixael
764c996361
Swap order
2022-09-21 18:39:58 -05:00
mjn-mixael
2f5ccc5b1a
unused parameter
2022-09-21 18:02:52 -05:00
mjn-mixael
3a171493b0
Cleanup
2022-09-21 17:29:20 -05:00
mjn-mixael
655fe8d7f1
Loadout wing API (+4 squashed commit)
...
Squashed commit:
[83e8522d1] Comments
[50686ce6a] Wing Slot data
[450a0f6e1] Common Init
[0c603313e] Rough in WIP
2022-09-21 17:27:38 -05:00
MjnMixael
3d700589c5
Give Lua access to the select anims and images ( #4687 )
2022-09-22 05:31:24 +09:00
EatThePath
33f24f1b4d
-luadev flag and lua log filter ( #4681 )
...
* Adds new default 'lua' filter category for all lua errors and output
Adds -luadev flag that currently only makes lua errors non-fatal.
* Correcting unreachable code.
* Missed a halting code path for luadevmode
* comment fix
2022-09-22 05:31:06 +09:00
Goober5000
5e3f72229c
Merge pull request #4684 from Goober5000/set_and_get_ship_flags
...
add setFlag and getFlag for ships and parse objects
2022-09-21 12:39:00 -04:00
Goober5000
fdb5506d41
make autodoc happy
2022-09-20 20:16:54 -04:00
Goober5000
7ff6da8b8b
Merge pull request #4664 from Goober5000/script_model_queue_render
...
use queued rendering instead of immediate rendering for scripts
2022-09-20 20:09:34 -04:00
Goober5000
ce4563867d
Merge pull request #4682 from MjnMixael/MissionTime
...
Mission time
2022-09-20 20:09:25 -04:00
Goober5000
9c71a3a1a0
allow an arbitrary number of flag arguments
2022-09-20 20:06:11 -04:00
MjnMixael
eddda373d3
Allow API to optionally not start the next mission. ( #4679 )
...
* Allow API to optionally not start the next mission.
* false -> true
2022-09-21 08:16:04 +09:00
wookieejedi
7926366ee6
Update max priority for scripting AIgoals ( #4685 )
2022-09-20 19:09:16 -04:00
Goober5000
a379411d7a
add ParsedShips indexer and update terminology
2022-09-20 16:08:43 -04:00
Goober5000
a89ba892a2
add setFlag and getFlag for ships and parse objects
...
This mirrors alter-ship-flag and are-ship-flags-set.
2022-09-20 14:43:24 -04:00
mjn-mixael
931cfdebb0
explicit bool
2022-09-19 20:34:10 -05:00
mjn-mixael
f7b19553c8
nullptr while I'm here
2022-09-19 19:36:11 -05:00
mjn-mixael
6579719a04
documentation
2022-09-19 19:17:34 -05:00
mjn-mixael
68f03b5328
Add isInMission and always return getMissionTime
2022-09-19 19:05:54 -05:00
Goober5000
7fea61f618
Merge pull request #4669 from TRBlount/feature/movie_alpha
...
Allow movies to be alpha blended through the LUA Movie Player API
2022-09-19 18:50:20 -04:00
Goober5000
9a2a85198a
Merge pull request #4680 from MjnMixael/ReverseHasDebriefing
...
This needs to be reversed to return the expected value
2022-09-19 17:25:06 -04:00
mjn-mixael
cbd3d7da24
This needs to be reversed to return the expected value
2022-09-19 15:26:09 -05:00
mjn-mixael
41dd60d111
Fix returning int when bool expected
2022-09-19 08:48:17 -05:00
Goober5000
56803e7c9f
Merge pull request #4615 from MjnMixael/ScpuiDebriefingLibrary
...
Scpui API debriefing library
2022-09-18 18:36:33 -04:00
mjn-mixael
ac82d8349c
Virtvar -> Func
2022-09-17 22:24:48 -05:00
Tyler Blount
0d78538a91
Update video shader and add alpha controls to VideoPresenter API
2022-09-17 15:53:04 -07:00
Goober5000
622c99fa2f
add stopLoopingSubmodelAnimation
...
A script command to mirror the SEXP operator.
2022-09-17 17:45:28 -04:00
Goober5000
85c1ae1f4b
use queued rendering instead of immediate rendering for scripts
...
Scripts that render models in the On Object Render hook were effectively doing immediate renders in the middle of queued renders. This caused some data, such as model orientation, to 'leak' between renders. It might also have something to do with why the bug in #4637 had the particular graphical side effects that it did.
Anyway, changing the immediate renders to queued renders fixes the leaky orientations, and is probably a good upgrade for other reasons as well.
2022-09-16 17:27:50 -04:00
Fabian Woltermann
ef496f08e0
Merge pull request #4657 from Goober5000/4602_followup
...
additional polishing of the briefing API
2022-09-16 15:47:49 +02:00
Goober5000
c9ca58f504
update
2022-09-15 20:09:55 -04:00
Goober5000
c13e262bb8
Merge pull request #4640 from Goober5000/hud_scripting_enhancements
...
several minor HUD enhancements
2022-09-15 18:34:36 -04:00
mjn-mixael
ce9dd1eaf3
cleanup includes
2022-09-15 10:41:57 -05:00
mjn-mixael
54b6efcf25
Address feedback
2022-09-15 10:27:45 -05:00
mjn-mixael
925aa44ebb
Compare pointer to nullptr instead of 0
2022-09-15 10:27:42 -05:00
mjn-mixael
f0f23b5fd0
Address feedback
2022-09-15 10:27:38 -05:00