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
3797171fb0
Merge remote-tracking branch 'upstream/master' into turret-inaccuracy
2021-02-16 02:23:45 -05:00
Baezon
028e40a43b
add turret-set-inaccuracy sexp
2021-02-16 02:21:54 -05:00
Goober5000
303787d97c
Merge pull request #3206 from Goober5000/retail_hybrid_translation_behavior
...
restore retail behavior of XSTR
2021-02-12 17:48:23 -05:00
Goober5000
1e756d1a67
restore retail behavior of XSTR
...
This is a follow-up to #2390 . Retail used a weird hybrid approach where internal strings were translated but external strings were not. This restores that behavior by adding another language, LCL_RETAIL_HYBRID, which is the default. The game can still be run in completely untranslated or completely translated mode.
All three modes have been tested and translate strings, or not, as expected. The `$Use tabled strings for the default language:` flag has also been tested and still works.
2021-02-11 19:47:12 -05:00
JohnAFernandez
bd7450c4e6
Merge pull request #3198 from Baezon/landmark-logging
...
Add 'landmark' logging
2021-02-10 20:40:40 -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
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