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
Goober5000
98e501acc7
remove the orientation field for submodels
...
Change the `orientation` field to `frame_of_reference` and remove it from submodel instance calculations.
2021-01-13 13:52:48 -05:00
Goober5000
5f538fa514
make model_set_up_techroom_instance a bit more robust
...
Follow-up to #3137 . I missed two important details in the first implementation: the triggered animation needs to be an "initial position" type, and `model_update_instance` needs to be run on all subobjects, not just turrets.
This should really fix #3123 . I still can't see the destroyed collector, but the Rahu no longer flickers when it spins around.
2021-01-13 13:17:31 -05:00
Goober5000
eeb6f5b091
properly use model instances for tech room and briefing popups
...
These two situations mostly relied on the obsolete model code which didn't include model instances. Data for submodel positions and for whether a submodel is blown off are now stored exclusively in model instances, not the model itself.
This fixes #3124 .
2021-01-12 23:15:37 -05:00
Fabian Woltermann
18cb07dc72
Merge pull request #3134 from EatThePath/tube-light-attenuation-recalc
...
Properly recalculate tube light attenuation
2021-01-11 20:28:19 +01:00
JohnAFernandez
3a4df0d89a
Send them to Github instead of Mantis
2021-01-11 14:06:03 -05:00
JohnAFernandez
398f4d9053
Remove Unused ClientDamage Commandline Option ( #3132 )
...
This option was likely part of an attempt to fix multi that never went anywhere. We now have rollback, which is on by default.
2021-01-11 14:02:52 -05:00
David Gibson
069947e397
Added a recalculation of tube light attenuation in fragment shader after proper distance is determined. fixes slash beam and penetration lighting issues
2021-01-11 11:55:45 -06:00
Baezon
4bf93e08df
fix collision culling for slow weapons
2021-01-11 00:45:42 -05:00
Fabian Woltermann
6f0dec4169
When setting the ambient factor in the lab, recalculate ambient lighting
2021-01-10 19:44:24 +01:00
Goober5000
3b99402a0a
Merge pull request #3121 from Goober5000/background_warning
...
make FRED validate all backgrounds, not just the active one
2021-01-10 09:21:45 -05:00
Fabian Woltermann
6c6ade116f
Merge pull request #3120 from Goober5000/fix_3101
...
fix 3101
2021-01-10 12:43:47 +01:00
Baezon
c486843e5f
fix a bug with glowpoint timing
2021-01-10 03:11:25 -05:00
Goober5000
ec93ac4c0e
fix 3101
...
Always update the ship class and loadout information in a ship's parse object, even if it is present at mission start.
2021-01-10 01:53:14 -05:00
Goober5000
2307d05086
make FRED validate all backgrounds, not just the active one
...
The background validation checks are somewhat convoluted, and misleading with multiple backgrounds, so this PR disables the standard main-background check if FRED is running. It then adds a new FRED-specific background check that covers all backgrounds.
Additionally, this PR fixes a bug in an error message in `stars_get_first_valid_background`.
Fixes #3116 .
2021-01-10 01:48:43 -05:00
Baezon
ac7bdbf269
fix bug in scripted targeting brackets
2021-01-08 17:30:28 -05:00
Goober5000
ddf00588d6
Merge pull request #3076 from Goober5000/hash_stuff
...
preprocess alt names before mission start
2021-01-08 16:03:10 -05:00
Goober5000
e76fdea8b9
interim patch for get_user_vec3d_value
...
As described in #3079 , the old parsing of fvec and uvec used strtod and some POFs rely on this format. This is a quickfix that uses the new parsing method for only `get_user_vec3d_value`.
2021-01-07 18:08:27 -05:00
Goober5000
726ce953c7
Merge pull request #3089 from Goober5000/fix_submodel_debris
...
de-parent live debris
2021-01-07 15:24:49 -05:00
JohnAFernandez
a545a4ec27
Merge pull request #3087 from Baezon/lock-restriction-safety
...
Safety for lock restriction handling
2021-01-07 15:01:31 -05:00
Fabian Woltermann
fc0662a9c4
Merge pull request #3080 from JohnAFernandez/Vectorize-Tech-Lists
...
Vectorize tech lists
2021-01-07 15:16:09 +01:00
JohnAFernandez
e5685ded86
Keep the lists from being cleared early by removing unneeded the loops.
2021-01-07 00:33:21 -05:00
JohnAFernandez
226cbf1204
The true fix, check the correct value
2021-01-07 00:32:52 -05:00
Goober5000
043466309a
de-parent live debris
...
It appears that live debris is not supposed to have a parent submodel; see the retail NTF Boadicea. This removes the parent from any live debris that might have it.
This should fix #3078 .
2021-01-07 00:02:49 -05:00
Baezon
766624600d
update name
2021-01-06 18:04:59 -05:00
Baezon
dab9a41f45
remove redundant check
2021-01-06 17:45:32 -05:00
m!m
51d8ab13d8
Merge pull request #3088 from EatThePath/fix-empty-secondaries-locking
...
off-by-one fix in early exit update_aspect_lock_information()
2021-01-06 23:25:53 +01:00
Baezon
b93d30e12b
unused variable
2021-01-06 14:46:44 -05:00
David Gibson
945db25578
corrected off-by-one issue in the early exit condition of update_aspect_lock_information()
2021-01-06 13:46:05 -06:00
Baezon
67de007ecb
lock restrictions safety
2021-01-06 14:28:27 -05:00
Baezon
e10522a2c7
safety for check_for_docking_collision
2021-01-06 13:18:27 -05:00
JohnAFernandez
9f33b432fc
Simply this check
2021-01-05 00:07:07 -05:00
Goober5000
bdccb25b6e
Merge pull request #3083 from Baezon/comment-delta-ang
...
Improve comment on vm_vec_delta_ang
2021-01-04 23:06:27 -05:00
JohnAFernandez
7a0578a797
Ok CI, I'll use nullptr
2021-01-04 22:14:36 -05:00
Baezon
fc7e1f0e40
improve comment on delta_ang
2021-01-03 22:51:17 -05:00
JohnAFernandez
ecf2dfb8f9
Update Comments for #548
2021-01-03 22:28:18 -05:00
JohnAFernandez
b81825326c
Signed Vs Unsigned
...
AKA C'Mon CI!
2021-01-03 21:54:31 -05:00
JohnAFernandez
b8c2c975c0
Change to a pointer
...
So that we can release bitmaps and animations properly.
2021-01-03 21:36:50 -05:00
JohnAFernandez
dc0272e664
Fixes Part 1
2021-01-03 20:56:30 -05:00
JohnAFernandez
3e329d64dd
Check the correct value in the animation code
2021-01-03 15:15:51 -05:00
JohnAFernandez
882ac2b1a1
Possibly Fix Memory Corruption Issue
...
Remove Unused Var
2021-01-03 15:14:11 -05:00
Goober5000
b3153df6be
preprocess alt names before mission start
...
For compatibility purposes some mods want alt names to truncate at the hash symbol. But we can't actually do that at mission load,
since we have to save them again in FRED. So this commit processes the names just before the mission starts.
To further complicate things, some mods actually want the hash to be displayed. So this commit introduces the double-hash as an escape sequence for a single hash.
2021-01-02 14:31:59 -05:00
Goober5000
b0fbf93055
fix model_update_instance to handle LODs
...
Add back the copying of model instance information to submodels in other LODs. This was inadvertently removed in commit 88c1d8a02a .
2021-01-02 14:26:59 -05:00
Goober5000
2d942989e6
Merge pull request #3075 from JohnAFernandez/Fixing-Small-Fred-Mission_Save-Bug
...
Keep fred from adding extra texture replacements to mission file
2021-01-02 02:47:35 -05:00
Goober5000
1fcfa82184
Merge pull request #3072 from JohnAFernandez/Add-Starting-Amoo-to-Scripting-Functions
...
Make sure that scripting changes the starting ammo as well as the weapon
2021-01-02 02:09:27 -05:00
JohnAFernandez
c7ea110652
Remove whitespace change
2021-01-02 01:41:15 -05:00
JohnAFernandez
8a81b18200
Keep fred from adding extra texture replacements to mission file
2021-01-02 01:37:37 -05:00
Goober5000
4182ea7fae
fix a couple of issues
...
Prevent model instances from being overridden when they conflict with the model. Fixes #3062 .
Also fixes another spot that might be a problem.
2021-01-02 01:08:54 -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