Goober5000
afeca7cc8f
add the same for ships and parse objects
2022-10-04 21:45:56 -04:00
Goober5000
cfefaef385
add arrival and departure info for wings
...
Virtual variables corresponding to the same fields as in `set-arrival-info` and `set-departure-info`. Plus more variables. Some refactoring as well.
2022-10-04 20:59:52 -04:00
Goober5000
90638ce534
Merge pull request #4751 from Goober5000/ship_arrival_script_functions
...
Ship/Wing arrival script functions
2022-10-04 20:56:30 -04:00
MjnMixael
36b0fa046b
Move rendering of the 3d overhead to it's own method and create an api ( #4749 )
...
* Move rendering of the overhead model to it's own method and create an API to call it.
* fix typos
2022-10-05 02:52:38 +09:00
Goober5000
c1d687f560
prevent redundant arrivals and return whether ships were created
2022-10-03 19:41:26 -04:00
Goober5000
61ceeff893
and also for wings
2022-10-03 19:36:27 -04:00
Goober5000
ae3bbd2959
make a parse object arrive
2022-10-03 19:36:27 -04:00
Goober5000
0702a38e1c
Merge pull request #4750 from Goober5000/lua_mission_music_scores
...
add getMusicScore and setMusicScore
2022-10-03 19:09:56 -04:00
Goober5000
064d3a7549
add getMusicScore and setMusicScore
...
Two new Lua API methods, plus some minor refactoring.
2022-10-03 17:14:33 -04:00
EatThePath
e32e01eb50
Added an API function to allow clearing the log during play. ( #4741 )
...
* Added an API function to allow clearing the log during play.
* document test fix maybe
* return something
2022-10-04 04:17:53 +09:00
MjnMixael
d902c7612b
Api to render the 3d selection effect ( #4737 )
...
* Api to render the 3d selection effect
* Missing include
* documentation
* error message for effect type
* documentation
2022-10-03 08:25:15 +09:00
BMagnu
979d305afe
Add screenToBlob scripting function ( #4738 )
...
* extract base64 routines
* Add screenToBlob scripting method
* Fix variable shadow
* Fix variable shadow again
* Fix usused variable
2022-10-03 07:33:46 +09:00
Goober5000
f14acf9fc1
Merge pull request #4744 from Goober5000/lua_cap_waypoint_speed
...
add WaypointSpeedCap
2022-10-02 16:54:52 -04:00
MjnMixael
419c56d012
check if weapon is required by current mission ( #4731 )
2022-10-02 20:23:36 +09:00
MjnMixael
e30931b6d2
API to save the current loadout to the player file ( #4739 )
...
* API to save the current loadout to the player file
* cleanup
2022-10-02 20:23:31 +09:00
Goober5000
20653ece8e
add WaypointSpeedCap
...
As requested by FotG
2022-10-02 00:13:50 -04:00
Fabian Woltermann
77476edd73
Merge pull request #4735 from The-E/fix/lua_rendering_outside_of_objectrender
...
When rendering stuff outside of ON OBJECT RENDER hooks, use immediate mode
2022-10-01 22:06:37 +02:00
Fabian Woltermann and Goober5000
e69f2b3fec
Update code/scripting/api/libs/graphics.cpp
...
Co-authored-by: Goober5000 <[email protected] >
2022-10-01 21:39:08 +02:00
MjnMixael
f5c83fbb40
primary -> secondary ( #4740 )
2022-10-01 08:44:55 -04:00
MjnMixael
7819d8262d
Only check for greater than, not equal to ( #4734 )
2022-10-01 08:43:20 -04:00
MjnMixael
1edf63c617
take userdata and return int ( #4736 )
2022-10-01 08:43:13 -04:00
Fabian Woltermann
b2ab98a979
When rendering stuff outside of ON OBJECT RENDER hooks, use immediate mode
2022-10-01 10:49:39 +02:00
MjnMixael
ef850ad302
Handle errors from create_wings() in an API friendly way ( #4730 )
2022-09-30 16:46:45 +09:00
MjnMixael
4d620bb3c7
API for checking and setting if a slot is filled or empty ( #4729 )
2022-09-30 16:45:06 +09:00
MjnMixael
e963cfda93
return the actual number of starting wings ( #4728 )
2022-09-30 16:44:58 +09:00
MjnMixael
384e228347
Reset loadout to default and handle commit mission error returns ( #4719 )
...
* Reset loadout to default and handle commit mission error returns
* Return enum instead of int codes
* comment
2022-09-29 22:35:09 +09:00
MjnMixael
35ee34b86a
isDisabled returns if the ship is used in the mission + some documentation fixes ( #4725 )
2022-09-29 16:19:05 +09:00
MjnMixael
2149a0e1ee
API access to the remaining ship class strings ( #4721 )
...
* API access to the remaining ship class strings
* copy paste errors
* Actually return the string
2022-09-29 16:18:50 +09:00
MjnMixael
5979d29463
Scpui loadout pools ( #4698 )
...
* API Access to the ship and weapon pools
* func to indexer
* Make ship and weapon pools writable
2022-09-29 16:18:26 +09:00
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