JohnAFernandez
735e00d839
Fix Missile Syncing Between Server and Client
2021-03-20 06:49:11 -04:00
Asteroth
8b94e58596
Merge pull request #3284 from Baezon/fix-rand-circle-sphere-bias
...
Fix probability distribution of vm_vec_random_in_circle/sphere
2021-03-19 02:23:31 -04:00
JohnAFernandez
609ed4ed94
Remove the fireball limit ( #3224 )
...
* Remove the fireball limit
* Handle Feedback
(Without the main PC, so really hoping I don't do any typos)
2021-03-17 14:21:06 -04:00
Baezon
643cb6a2be
update scripting functions
2021-03-14 15:37:43 -04:00
Goober5000
5bb9f427b4
a few turret fixes
...
This correctly calculates the turret position from the center (zero position) of its submodel instead of using the offset from the main model.
This patches a few more parts of the code and also adds a missing locale argument.
2021-03-09 22:39:13 -05:00
Goober5000
a12a33b189
Merge pull request #3277 from Goober5000/movable_turret_fov_fix
...
Turrets on movable submodels
2021-03-07 21:29:28 -05:00
Goober5000
9a3fc507d6
Merge pull request #3261 from BMagnu/lua_campaignswitch
...
Lua add campaign switch function
2021-03-07 13:10:01 -05:00
Goober5000
d75b0f4b4b
additional minor cleanup
2021-03-06 20:03:59 -05:00
Goober5000
106da3c95f
allow two SEXPs to be used in multiplayer that previously couldn't be
...
1) The ship-vanish SEXP (and script function) was already multiplayer-ready
2) The is-ship-visible SEXP was enhanced to add a second argument, which defaults to the player's ship in single-player mode
2021-03-03 13:22:50 -05:00
Goober5000
3b1aac26e8
remove most of turret_matrix stuff
2021-02-28 23:41:56 -05:00
Birk Magnussen
2233d2eb9b
Reflect used player object
2021-03-01 01:32:13 +09:00
Birk Magnussen
e9b2047769
Add function to switch campaign
2021-03-01 01:27:14 +09:00
Birk Magnussen
f0d5c5a499
Remove redundant close
2021-03-01 00:13:49 +09:00
Birk Magnussen
530916e0fa
Changed File not closed error to a warning and automatic file close
2021-02-28 23:47:07 +09:00
m!m
e393503eb2
Merge pull request #3244 from the-maddin/default_volume_issue
...
Set default volume on audiostream creation
2021-02-27 22:41:03 +01:00
asarium
0fb712ed39
Add full type coverage for return types and variables
...
This introduces type parsing for all types used within the scripting
documentation. This improves the generated JSON output and also
validates new code via the unit test.
2021-02-26 22:37:37 +01:00
the-maddin
26aab09b8e
Update scripting documentation audio_stream:play()
...
to reflect what the implementation actually does.
2021-02-24 02:16:01 +01:00
BMagnu
fd60dd342f
Add vanish Lua function to some objects ( #3238 )
...
* Add vanish function to some objects
* Modify vanish function return. Modify fireball access
* Remove dedunant check for ship vanish
2021-02-21 11:59:49 +00:00
JohnAFernandez
19b3f85eea
Merge pull request #3220 from Baezon/turret-inaccuracy
...
Add turret-set-inaccuracy SEXP
2021-02-20 21:07:47 -05:00
Goober5000
69c1398368
add SimHitpointsLeft
2021-02-20 16:13:14 -05:00
Baezon
592855c35d
NULL -> nullptr
2021-02-16 02:27:11 -05:00
Baezon
028e40a43b
add turret-set-inaccuracy sexp
2021-02-16 02:21:54 -05:00
Goober5000
dd92a0f0bb
add vm_vec_is_normalized and use it in several places
2021-02-06 13:46:54 -05:00
Goober5000
e699d991d1
add useful function
2021-02-06 00:19:57 -05:00
Goober5000
868715867d
Merge pull request #3056 from Goober5000/model_rotation_arbitrary_axis
...
Allow submodels to rotate around an arbitrary axis
2021-01-31 13:17:27 -05:00
JohnAFernandez
679f7f20d7
Switch the correct ammo variable.
...
The previous pr was supposed to fix what ammo capacity the ship was reloaded to, but instead it was changing how much ammo was in the magazine.
2021-01-14 09:23:52 -05:00
Goober5000
554bbb884d
remove angles from the submodel instance
2021-01-13 14:01:34 -05:00
Goober5000
020f14fb51
allow rotating submodels to rotate around an arbitrary axis
2021-01-13 14:01:28 -05:00
JohnAFernandez
04f668651b
Make sure that scripting changes the starting ammo as well as the weapon
2021-01-01 22:22:56 -05:00
Goober5000
3a5e49b0c3
Merge pull request #3021 from Goober5000/turret_refactor
...
some refactor and cleanup
2020-12-27 09:33:49 -05:00
Goober5000
21f6591be2
some refactor and cleanup
...
1) modify and prune some turret function definitions
2) clean up KeldorKatarn's submodel orientation parsing
2020-12-24 22:50:49 -05:00
asarium
4af292af5a
Add scripting API to access briefing color tags
2020-12-24 12:54:09 +01:00
SelfGamer
a47cfb7e7c
Expose disposing FBO's to scripting ( #3003 )
...
* Expose disposing FBO's (with the option to keep the Bitmap Alive) to scripting
* Modernize nullptr
* Moved RenderTarget clearing to own public API
* Fixed Obsolete Comment
* Fix bad deletion of FBOs
* Resolve Memory Leak
* Change FBO cleanup to not reuse old ID's
* FIx oversight
* FIx oversight 2
2020-12-23 21:54:03 +01:00
Goober5000
0c5b04c427
additional null checks
...
Found a null pointer CTD in modelanim that slipped through initial testing. Also added some defense-in-depth null checks to scripting.
2020-12-22 04:22:10 -05:00
Goober5000
88c1d8a02a
consolidate model instance code
2020-12-18 01:32:43 -05:00
Goober5000
7c92dd9f7c
hoist model_get and model_get_instance out of a bunch of functions
2020-12-16 11:55:31 -05:00
Goober5000
41851bbd1e
fix a bit of improper referencing in rotateTurret
...
The object `instance` field is the index into Ships, not Objects. In any case, position and orientation can be referenced directly.
2020-12-16 02:23:18 -05:00
Birk Magnussen
1e5652ea07
Adapt change requests by Goober for Fireballclass
2020-12-07 07:04:09 +09:00
Birk Magnussen
67ebbddb09
Added Fireball lua API + added createWarpeffect
2020-12-05 07:23:14 +09:00
Fabian Woltermann
6f8763346c
Expose the power output in the ship class to sexps and scripting
2020-11-26 16:36:19 +01:00
Baezon
4024ff197d
separate rotational and lateral maneuvers
2020-11-23 00:30:19 -05:00
Baezon
c90171d8a3
add no_override flag to maneuvers
2020-11-22 11:58:15 -05:00
asarium
bb0631ab6e
Support vararg specifiers in Lua documentation
...
This was the last thing that was missing for complete support of all
function parameter declarations.
To ensure parameter lists stay valid a unit test was added that will
validate the argument lists and cause the test to fail if they cannot be
parsed.
2020-10-12 17:59:57 +02:00
Goober5000
53ad0ea163
fix CTD when running ship:kill() with no parameters
2020-10-03 00:02:46 -04:00
Goober5000
df53e49abf
make the scripted turret firing code a bit more robust
...
The scripted code previously didn't check to see if a weapon bank was valid before firing it, which could have led to memory problems and starting March 15 would actually crash the game. This adds a few safety checks.
2020-09-23 21:24:41 -04:00
Goober5000
8a3556b648
Merge pull request #2738 from Goober5000/file_fixes
...
fix getPath() and add getName()
2020-09-15 11:55:07 -04:00
Goober5000
d1af5ed467
shut up clang, this wasn't even part of the PR
2020-09-15 04:12:29 -04:00
m!m
2a90d1f823
Merge pull request #2717 from asarium/lua/serializer
...
Add Lua API for serializing values
2020-09-14 22:25:26 +02:00
Goober5000
12fad41962
fix getPath() and add getName()
...
The getPath() function would crash if the id was -1. Also, there was no function for getting the file name.
2020-09-13 17:02:56 -04:00
Goober5000
8b3b15b4b2
add tb.ShipTypes
...
Add ShipTypes as a collection to complement ShipClasses.
Also check the correct init variable.
2020-09-13 00:46:28 -04:00