Baezon
7015818ea5
review tweaks
2021-02-05 12:56:03 -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
Goober5000
37e92e01b6
default display names for script/sexp-created ships
...
Now that the hash truncation logic is part of the ship display name, ships created by script or sexp should check this as well.
2021-01-22 23:06:48 -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
Baezon
ac7bdbf269
fix bug in scripted targeting brackets
2021-01-08 17:30: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
asarium
57f73ab8dc
Update deprecation version of drawMonochromeImage
...
This was 20.1 since I erronously thought that the "current" nightly
version was lower than that. This updates the version to a release that
has not been built yet.
2020-12-27 11:53:10 +01: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
m!m
77adaa6d86
Merge pull request #3004 from asarium/scripting/monochromeUv
...
Add AA bitmap support for standard gr.drawImage
2020-12-24 16:14:44 +01:00
asarium
c2f4d5f2b6
Use correct generic anim function to get hi-res support
2020-12-24 12:54:09 +01: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
asarium
f25d98cebd
Add AA bitmap support for standard gr.drawImage
...
Since that function already has full support for UV scaling it makes
sense to unify the behavior in one function instead of having a separate
monochrome function that does weird things.
Also deprecates that function since all its use cases are now covered by
drawImage.
2020-12-21 12:48:58 +01:00
Goober5000
fe4661ec9f
Merge pull request #2997 from SelfGamer/missionAwarenessAPI
...
Add Scripting API isNebula and isSubspace
2020-12-20 14:53:15 -05:00
Birk Magnussen
dfe6858b21
Fix Type
2020-12-20 21:14:30 +09:00
Birk Magnussen
64b35534de
Modernize functions
2020-12-20 21:03:05 +09:00
Birk Magnussen
ce614d330d
Modernize nullptr
2020-12-20 20:46:22 +09:00
Birk Magnussen
20bc769daa
Add Scripting API isNebula and isSubspace
2020-12-20 20:17:34 +09: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
08fee6f807
Added more lua erros for bad warp effects
2020-12-06 20:48:49 +09:00
Birk Magnussen
16c4097992
Added error when using too short duration for warp effect
2020-12-06 20:42:19 +09:00
Birk Magnussen
042cd0682d
Fixed Warning due to unused variable
2020-12-05 08:48:45 +09:00
Birk Magnussen
2fa8d1e23b
Fixed Error in createWarpeffect, added createExplosion
2020-12-05 08:32:04 +09:00
Birk Magnussen
67ebbddb09
Added Fireball lua API + added createWarpeffect
2020-12-05 07:23:14 +09:00
Birk Magnussen
4def488a11
Fixed new HUD Scripting API Variable for Gauge Count
2020-12-02 05:35:00 +09:00
Birk Magnussen
47af4b5652
Fixed Warning in new HUD API
2020-12-02 05:30:39 +09:00
Birk Magnussen
f2d013ae0d
Updated HUD Scripting API Docs Again
2020-12-02 05:03:27 +09:00
Birk Magnussen
a30a289f68
Updated HUD Scripting API Docs
2020-12-02 03:36:35 +09:00
Birk Magnussen
dacf61cf80
Moved HUD-Scripting API changes to newe function
2020-12-02 03:34:03 +09:00
Birk Magnussen
76c28ddccc
Fixed HUD set Color call to use in game HUD instead of configs
2020-12-02 02:52:42 +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
Baezon
899f03c8ff
review tweaks
2020-11-11 01:32:22 -05:00
Baezon
4b28f56edb
actually deprecate old function
2020-11-10 12:53:51 -05:00
Baezon
08f590b383
fix frametime
2020-11-08 22:32:21 -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
asarium
f71a86f2db
Use a stack for scripting hook variables
...
Previously, if a script called a function that called another scripting
hook, some hook variables might be removed. This was the case since
after executing the hook the code would remove the set hook variables
again. If these variables had the same name as previously set variables,
they would overwrite and corrupt the state the original script expected.
This was unexpected behavior for script writers so this puts values on a
stack and only adds or removes from the stack instead of overwriting
values. This should make the hook variable state consistent for scripts
even if scripting hooks are called indirectly.
2020-10-03 15:37:20 +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
Taylor Richards
f5a2cae122
Merge pull request #2608 from notimaginative/ipv6
...
IPv6 support
2020-09-20 09:46:44 -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