MjnMixael
50cd91bd86
Damage, swarm, corkscrew info virtvars ( #4798 )
...
* Add access to damage type, swarm, and corkscrew data
* Also return if the weapons have the appropriate flags
* Return nil for invalid handle and clarify documentation
2022-10-19 21:51:22 +09:00
Asteroth
4c6f043274
Add a bunch of movement stats to ship class script api ( #4797 )
...
* add a bunch of script physics values
* fix
* small doc fix (its just called "damp" barely worth mentioning)
2022-10-18 20:54:30 -04:00
Fabian Woltermann
9e56ba43a5
Merge pull request #4783 from MjnMixael/render_no_lighting
...
Allow option to choose to render with no lighting
2022-10-17 19:30:40 +02:00
mjn-mixael
32b059ae07
fix documentation
2022-10-17 08:09:26 -05:00
mjn-mixael
1af0a1082b
int to bool
2022-10-17 08:04:02 -05:00
MjnMixael
09a307b17d
Virtvar to access the energy a weapon consumes ( #4784 )
...
* Virtvar to access the energy a weapon consumes
* quick fix
2022-10-15 09:54:44 -04:00
mjn-mixael
7a5a54d009
Allow option to choose to render with no lighting
2022-10-14 09:00:35 -05:00
Goober5000
da7228cedb
model.Submodels fix
...
Guard against the indexer being invalid, e.g. if the model isn't loaded yet.
2022-10-14 02:07:35 -04:00
MjnMixael
d323421817
Use a local int for model storage in renderTechModel ( #4779 )
...
* Use a local int for model storage here
* null -> nullptr
2022-10-13 17:06:03 +00:00
Goober5000
e95d214143
Merge pull request #4756 from Goober5000/ship_entry_and_related
...
Add Lua API for ship registry
2022-10-11 19:24:54 -04:00
Goober5000
3850acdd23
documentation updates
2022-10-10 22:45:14 -04:00
MjnMixael
bc6282b34b
These were reversed ( #4770 )
2022-10-10 17:48:47 +09:00
Goober5000
663474516f
Merge pull request #4752 from Goober5000/arrival_departure_info
...
add arrival and departure info for wings, ships, and parse objects
2022-10-07 12:26:59 -04:00
Goober5000
a47b2440d3
add ship registry
2022-10-06 20:43:09 -04:00
Goober5000
7d6f261221
add getWing() to parse_object
2022-10-06 20:43:09 -04:00
Goober5000
473521f5ed
Merge pull request #4759 from Goober5000/wing_flags
...
add wing flags
2022-10-06 18:58:00 -04:00
Goober5000
6ce8963e13
Merge pull request #4757 from Goober5000/animated_effects_to_timestamp
...
make animated ship effects use the new timestamps
2022-10-05 16:39:08 -04:00
Goober5000
364741ef8f
additional flag error checking
2022-10-05 11:40:54 -04:00
Goober5000
8694c042f7
add wing flags
...
Add setFlag and getFlag for wings, just like for ships and parse objects
2022-10-04 23:59:30 -04:00
Goober5000
3f86fbc7ad
removeSoundByIndex should be 1-based
...
Looks like no mods use this script method, so this change should be safe.
2022-10-04 23:40:10 -04:00
Goober5000
afeca7cc8f
add the same for ships and parse objects
2022-10-04 21:45:56 -04:00
Goober5000
f0542553d6
make animated ship effects use the new timestamps
...
In addition to type-safety, this now adjusts ship effects properly for time compression and pausing.
2022-10-04 21:42:47 -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
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
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
Goober5000
20653ece8e
add WaypointSpeedCap
...
As requested by FotG
2022-10-02 00:13:50 -04: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
MjnMixael
4d620bb3c7
API for checking and setting if a slot is filled or empty ( #4729 )
2022-09-30 16:45:06 +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
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
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
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
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