Goober5000
cd7874e856
two new sexps, signum and trigger-submodel-animation
...
also, fix a smattering of missing sexp stuff from other people's commits such as argument types, validity checking, putting things in submenus, and using is_sexp_true
2012-01-28 07:56:26 +00:00
Zacam
b0d077677b
From Eli2: Mantis #2538 : Fade-in time limitation.
...
Testing in Multiplayer as well, no drastic incompatibility found. (If the host is patched but the client is not, then the timing returns are a little funny, but it doesn't cause for any crashes)
2012-01-24 05:54:55 +00:00
karajorma
4be0d29712
Switch from the directive-is-variable SEXP to the more powerful directive-value one.
2011-12-31 06:46:47 +00:00
Goober5000
c7b38b0b92
fix for Mantis #2547
2011-12-18 08:45:47 +00:00
Goober5000
47a51b8e37
make sexp category stuff accessible
...
fix Mantis #2551
2011-12-18 08:43:37 +00:00
Zacam
1ad0e977ff
Fix to the sexp_ship_effect causing an assert when used against ships that get destroyed before the event triggering it fires off. (From The E)
2011-12-13 16:32:17 +00:00
chief1983
40372c53e4
Fix stdint's existence breaking OS X compiling.
2011-12-08 23:05:56 +00:00
The_E
e767e7dc01
Oops, infinite loops are bad in a sexp.
2011-12-06 17:09:00 +00:00
The_E
2538ed6814
Adds a sexp to switch the thrusters on a given ship or list of ships on and off.
2011-12-04 17:29:02 +00:00
Zacam
fd66bdcab3
From CommanderDJ: Nebula distance check for set-object-position's regeneration of local nebula.
2011-11-29 01:54:34 +00:00
Echelon9
19ae6528e0
Cases of commented out Int3() indicate areas of old, redundant code.
2011-11-17 11:07:53 +00:00
Goober5000
6147c19496
clean up ship maneuvers
...
significantly improve sexp help for those sexps
2011-11-15 09:36:27 +00:00
Goober5000
1eec8f5093
add is-in-mission sexp
2011-11-13 09:59:10 +00:00
Zacam
98b93e572d
As per commit message r7963, uint64_t is not supported on MSVC out of the box. This is because stdint.h is not shipped with MSVC, so <include>ing it doesn't do any good when it doesn't exist. Since stdint.h can be distributed without modification, it is now in globalincs and the include is ifdef'd to MSVC to use the globalincs version, all other platforms will use the C++ ISO standard library version.
2011-11-12 06:45:39 +00:00
The_E
e7e279ca10
uint64_t is not supported out of the box on MSVC.
2011-11-09 09:36:23 +00:00
The_E
f92eae073f
Fix for Mantis 2533 from Eli2: Integer overflow in mission-time-msecs
2011-11-09 09:25:59 +00:00
The_E
fff1a1c60b
Reverting 7938: Bugfix breaks existing missions relying on old behaviour.
2011-11-05 19:20:17 +00:00
Echelon9
9f711bf53e
Documentation: General code cleanup for 64bit
2011-11-05 08:12:04 +00:00
The_E
96ef05f89c
From Eli2: Fix for Mantis 2533 (integer overflow in mission-time-msecs)
2011-11-02 11:40:51 +00:00
Goober5000
d5ee76453f
enhance are-waypoints-done-delay to allow ships to complete waypoint paths multiple times
...
make count check more robust in has-docked-delay and has-undocked-delay; Assert shouldn't be used for mission data entered in FRED
2011-10-06 04:33:52 +00:00
Goober5000
d6b23cc1c0
PVS-Studio V581 in revision 7779 was actually a false alarm; overzealous cleanup created a condition where a negative array index could occur, triggering either an assert or a crash (Mantis #2514 )
2011-10-04 06:34:47 +00:00
karajorma
e28573fe30
CommanderDJ's fix for Mantis 2276 set-object-speed SEXPs don't work in multiplayer.
2011-10-04 05:03:09 +00:00
The_E
42fcf8052c
Make force-jump cancel glide mode.
2011-10-01 20:09:00 +00:00
Sushi
2b6ef14077
Add set-docked SEXP
2011-09-27 03:32:05 +00:00
The_E
6b90b35f56
FRom CommanderDJ: Patch for Mantis 2307, set-object-position weirdness when in nebula
2011-09-25 07:50:07 +00:00
The_E
0f51dc1925
Redo 7777 without breaking anything else in the process
2011-09-24 19:47:47 +00:00
Echelon9
82a36997cb
PVS-Studio fix: V581 The conditional expressions of the 'if' operators situated alongside each other are identical. Check lines: 2172, 2186 (sexp.cpp)
2011-09-23 20:26:32 +00:00
Echelon9
efcdac911e
PVS-Studio fix: V581 The conditional expressions of the 'if' operators situated alongside each other are identical. Check lines: 1977, 1986 (sexp.cpp)
2011-09-23 20:24:43 +00:00
Goober5000
fd4dc268d4
made show/hide jumpnode work on more than one argument
2011-09-08 06:41:38 +00:00
karajorma
7e97177a75
Fix Mantis 2492 (Confusing help messages for the get-x-ammo SEXPs)
2011-09-06 02:29:47 +00:00
Goober5000
d94416f71b
remove unreferenced variable
2011-09-05 19:50:26 +00:00
Echelon9
1de8a20958
PVS-Studio fix (courtesy of niffiwan): This is a false positive, BUT IT REALLY SHOULD be rewritten with an STL container
2011-09-05 12:47:12 +00:00
The_E
5ea6138708
A bit of cleanup here. Removed unnecessary "if (true)" and changed the sexp code to use the already written armor_type_get_idx function
2011-09-04 19:33:09 +00:00
Goober5000
0e278350d7
d'oh... in most cases, atoi(CTEXT(n)) should be eval_num(n)
2011-09-03 21:46:49 +00:00
Echelon9
67658b89c8
Documentation: A few documentation fixes so that Doxygen 1.7.5.1 outputs a clean log
2011-09-03 08:25:53 +00:00
Goober5000
3b5512d60a
whoops
2011-09-03 04:30:23 +00:00
Goober5000
70a1873c86
a bunch of small PVS-Studio fixes (mostly duplicate assignments)
2011-09-03 02:25:39 +00:00
The_E
27e0c1b3b2
PVS Studio fix: V547 Expression 'character <= 127' is always true. The value range of signed char type: [-128, 127].
2011-08-30 17:26:57 +00:00
Goober5000
2ef9fa11b6
add fire-beam-at-coordinates, which is as awesome as it sounds
2011-08-30 07:29:57 +00:00
Goober5000
3ce69f150a
waypoints and waypoint paths now have dynamic limits
2011-08-30 03:35:42 +00:00
karajorma
caff640862
Documentation for the Multiplayer SEXP system.
2011-08-30 00:18:32 +00:00
Echelon9
b55516dfdb
Documentation: Code cleanup of sexp.cpp
2011-08-28 15:10:07 +00:00
Echelon9
81c9c92479
PVS-Studio fix: V516 Consider inspecting an odd expression. Non-null function pointer is compared to null: 'jumpnode_get_by_name == 0' (sexp.cpp).
...
Ironic that check_sexp_syntax() appeared to have a mistake in it's check functions.
2011-08-28 09:49:02 +00:00
Echelon9
80a027a400
PVS-Studio fix: V803 Decreased performance. In case 'tvs' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator.
...
For further discussion see, http://www.viva64.com/en/b/0093/
The scenarios where it will improve performance are under Debug builds. This improvement will however allow quicker use of other profiling tools that need to run on Debug builds.
Note. Code with size_t does not see the performance improvement comparison to iterators due to absence of array overrun check.
2011-08-28 08:31:25 +00:00
Goober5000
9ef2aac09a
return special exp values to ints, per discussion with Zacam awhile ago
...
while we're at it, change kamikaze damage to int since it's treated as such
2011-08-27 05:08:39 +00:00
Goober5000
7f5d1b362f
enhance end-mission to possibly dump player to main hall
2011-08-27 04:39:18 +00:00
karajorma
56f758967a
Fix several SEXPs for multiplayer use. This should fix Mantis issues 2401, 2483 and 2382.
...
In addition, fix a bug caused by SEXPs that do a callback but don't send any data.
2011-08-24 08:37:11 +00:00
Goober5000
f5ad44950a
change the units on rotation acceleration to bring them in line with rotational velocity
...
this is not a compatibility break because acceleration didn't work until just a few days ago :D
2011-08-24 02:41:07 +00:00
karajorma
9aa338ecd8
Add a version of the event-true-delay SEXP which works using milliseconds rather than seconds.
2011-08-22 10:44:41 +00:00
Goober5000
a74ae93a14
wow... it looks like the subsystem acceleration sexp never worked until now...
2011-08-22 08:38:02 +00:00