Goober5000
c5ae4ca2b9
very small fix to multi_sexp_close_sound_from_file
...
The default fade argument is `true`, as specified by the sexp help, not false. This probably doesn't matter here as the multi packet should receive all sexp arguments anyway, but better to be consistent.
2019-11-28 13:00:21 -05:00
Goober5000
6433181607
correctly set and recalculate subsystem info when using subsys-set-random
2019-11-07 19:20:25 -05:00
Goober5000
a8cf7f2c69
Merge pull request #2118 from Goober5000/maneuver_flags
...
Enhanced ship maneuvers
2019-10-26 14:10:40 -04:00
Goober5000
99c23b11cd
Merge pull request #2115 from Goober5000/play_sound_from_file_improvements
...
allow multiple simultaneous sexp-controlled audio streams
2019-10-26 14:09:25 -04:00
Goober5000
8b7e99c4cb
Merge pull request #2122 from Goober5000/small_sexp_h_fix
...
add OP_NONCAMPAIGN_FLAG to a couple sexps
2019-10-26 14:09:14 -04:00
Goober5000
fc3ae5f93d
add OP_NONCAMPAIGN_FLAG to a couple sexps that shouldn't be used in campaign files
2019-10-22 19:57:42 -04:00
Goober5000
5f8192d1ee
actually figure out instantaneous acceleration, and refactor a bit
2019-10-20 16:30:38 -04:00
Goober5000
ab3388f397
add sexp and script support for maneuvers with new CIF_ flags
2019-10-20 00:59:43 -04:00
Goober5000
3a9855ac69
allow multiple simultaneous sexp-controlled audio streams
...
Enhances play-sound-from-file, etc. to allow more than one audio stream to be played at the same time, provided all stream are referenced by audio handles contained in variables.
2019-10-18 23:23:00 -04:00
MageKing17
c1e6aca72b
Correcting a couple debug typos.
...
"glowpoint present" should be "glowpoint preset", and there is no "op_num function".
2019-10-17 13:38:11 -07:00
Goober5000
58a4825d9b
fix bug in copy_text_until error message
...
This bug has been around since the original public source code release!
The error message character calculation did not agree with the actual error check. This PR fixes that. Thanks to Novachen on Discord for discovering this.
2019-10-15 14:21:22 -04:00
Goober5000
7703b27e64
Merge pull request #2105 from Goober5000/grant_medal_xstr
...
miscellaneous XSTR cleanup
2019-10-14 00:55:56 -04:00
Goober5000
334f392eb1
change token string, per m!m's review
2019-10-13 13:50:37 -04:00
Goober5000
01102e14be
Merge pull request #2102 from Goober5000/fix_for_counter
...
fix default loop increment in for-counter
2019-10-13 13:36:06 -04:00
Goober5000
93effdd31b
Merge pull request #2106 from Goober5000/command_sender_enhancement
...
implement Mantis 3204
2019-10-13 13:30:17 -04:00
Goober5000
09f1de6efe
ohcomeon.gif
2019-10-12 16:21:09 -04:00
Goober5000
15c9533089
Merge pull request #1540 from z64555/enchancement/parse_bookmarks
...
Extends the existing parse pausing system (used by bmpman) to use a
2019-10-12 13:17:47 -04:00
Goober5000
2de323eb5d
fix const conflict
2019-10-12 13:12:41 -04:00
Goober5000
6895276aea
implement Mantis 3204
...
This adds a mission flag to use the Command Sender as the source of any messages sent from #Command.
2019-10-12 12:53:09 -04:00
Goober5000
ff31bebc9c
now CTEXT will never be NULL
2019-10-12 11:46:57 -04:00
Goober5000
6006670439
restore the original grant-medal and was-medal-granted sexps
2019-10-12 11:27:32 -04:00
Goober5000
e91ee3dd4f
the variable can never be uninitialized here, but Travis is too dumb to realize it
2019-10-12 01:26:11 -04:00
Goober5000
53ec0d45cb
this isn't actually needed
2019-10-11 23:51:18 -04:00
Goober5000
a34d696c29
add xstr capability for medals
...
The grant-medal and was-medal-granted sexps will now translate medal names, in the same way that tech-add-intel-xstr translates intel entries. There is also some minor cleanup and the specifying of correct default -1 numbers for the xstr-capable sexps.
2019-10-11 21:51:16 -04:00
Goober5000
f9e4a4bb2a
fix default loop increment in for-counter
...
The default loop increment is 1, not 0. When for-counter was converted to use eval_nums in PR #2035 , this was inadvertently broken.
2019-10-11 01:17:31 -04:00
Tom Crayford
1cd22ba827
update set-object-facing and set-object-facing-object sexp help
...
As per the discussion in https://github.com/scp-fs2open/fs2open.github.com/issues/2092 ,
if you specify the turn time, these can behave quite weirdly.
Some mods that we don't want to break backwards compatability with use
that mode, but at least we can note the pitfalls in help.
2019-09-07 18:36:35 +02:00
Goober5000
13d4ebaceb
leave a 'node' variable pointing to the beginning of the sexp node list so that we can manipulate it later
2019-08-19 23:35:55 -04:00
Goober5000
ed6a780898
Revert "fix for issue #2081 "
2019-08-19 23:19:30 -04:00
Goober5000
f0b9929cd3
Merge pull request #2083 from Goober5000/eval_nums_redo
...
fix for issue #2081
2019-08-19 18:13:45 -04:00
Goober5000
f315caad95
fix a bug, and use Error instead of Warning since this indicates a programming error
2019-08-19 16:29:49 -04:00
Goober5000
b5a47e651f
fix for issue #2081
...
This re-implements the eval_nums function to use C varargs, instead of C++11 template parameter packs. This is necessary because Visual Studio has a bug where template parameter packs corrupt heap memory somehow.
2019-08-19 16:19:53 -04:00
Tom Crayford
3b0bb79d79
fix typo: defualt->default
2019-08-11 11:09:13 +01:00
Goober5000
60bcdefac0
remove unneeded header
2019-07-25 15:14:45 -04:00
Goober5000
5d8ac3cc11
bring up to date with another eval_num
2019-07-25 15:14:45 -04:00
Goober5000
e0bc2f188b
help the compiler out a bit, per Gasbow's suggestion
2019-07-25 15:14:45 -04:00
Goober5000
d13bbdd534
move eval-num derivatives out of the header file
2019-07-25 15:14:45 -04:00
Goober5000
44b09d137f
let's try a function pointer instead of std::function
2019-07-25 15:14:45 -04:00
Goober5000
4439edcb4d
more complaints
2019-07-25 15:14:45 -04:00
Goober5000
a9ddeda40e
edits and clang-tidy
2019-07-25 15:14:45 -04:00
Goober5000
d606e4d952
complaints and stuff
2019-07-25 15:14:44 -04:00
Goober5000
2fa8a0bd84
that const crept back in again
2019-07-25 15:14:44 -04:00
Goober5000
f9d178d46b
additional small fixes
2019-07-25 15:14:44 -04:00
Goober5000
989235936e
when evaluating numeric SEXPs, handle NaN properly
...
NaN should propagate through the SEXP tree, but not all SEXPs do this properly. The problem was made worse after I introducted `eval_num()` which silently ignored NaN values. This commit adds new boolean arguments to `eval_num()` to flag NaN results, and changes all calls of `eval_num()` to properly handle the new arguments. Additionally, this adds `eval_nums()` and `eval_array()` functions to more smoothly handle cases where many numbers appear in a row.
2019-07-25 15:14:44 -04:00
Goober5000
f6408113f2
fix stuffing of vector pointer
2019-07-15 13:15:21 -04:00
Goober5000
da9f71dac0
might as well do set-object-facing and set-object-facing-object as well
2019-07-14 23:26:18 -04:00
Goober5000
03f1344794
might as well do set-object-orientation too
2019-07-14 21:24:22 -04:00
Goober5000
59e9d7cb0c
add missing break to case
2019-07-14 21:20:33 -04:00
Goober5000
910595880a
Allow set-object-position to work on ships yet to arrive
...
This adds `set-object-position` functionality for ships and wingmen still on the arrival list. Requested by JSRNerdo.
2019-07-13 14:24:06 -04:00
Goober5000
c6d93275c2
address clang complaint
2019-06-24 13:03:38 -04:00
Goober5000
a98fd2cb54
use the new 'mission_check_ship_yet_to_arrive' function when appropriate
2019-06-24 02:11:35 -04:00