Echelon9
e21ad72877
Utilise the CLAMP() utility macro in a further range of appropriate locations
2012-05-02 15:15:48 +00:00
karajorma
e5b2ebd02e
Fix the bug in closing the event editor that caused it to take minutes with some missions rather than seconds.
2012-04-30 07:26:44 +00:00
Echelon9
51ad3f97eb
Eradicate the memset(this...) paradigm within ade_table_entry
2012-04-22 11:25:15 +00:00
Sushi
5669c03872
Add support for weapon spread over time (+FOF Spread Rate, +FOF Reset Rate, +Max FOF)
2012-04-21 15:40:06 +00:00
Echelon9
fd74d06398
warning C6246: Local declaration of 'exp' hides declaration of the same name in outer scope. For additional information, see previous declaration at line '8063'
2012-04-15 07:02:18 +00:00
Goober5000
908557be9f
fix for Mantis #2630
...
(LUA is not mentioned, but the problem might affect that too)
2012-04-13 07:01:45 +00:00
Goober5000
63a78e79fd
modular credits.tbl, courtesy of m!m
...
(with a few tiny tweaks)
2012-04-12 03:49:47 +00:00
Echelon9
a10b5ae804
warning C6011: Dereferencing NULL pointer 'wp->turret_subsys'
2012-04-11 14:44:59 +00:00
Echelon9
a0e59defd6
CJumpNode class code convention; convert to UpperCamelCase for class and function name; ensure all private variables adopt m_ prefix
2012-04-07 11:07:30 +00:00
The_E
6badeadd54
As per discussion for Mantis 2633, Reverting revision 8544 due to timer drift.
2012-03-31 20:30:09 +00:00
Goober5000
8cd3cbc721
considering that both the HUD and sexp_replace_variable_names_with_values work with SCP_string, just use SCP_string directly and remove the character limit
...
also, MESSAGE_LENGTH isn't 32 characters
2012-03-16 04:09:30 +00:00
karajorma
2b445b41c0
Fix a rather unhelpfully vague piece of the SEXP documentation.
2012-03-16 03:28:57 +00:00
Swifty
bebf5e8fbf
Added hud-clear-messages. Clears active messages currently displayed.
2012-03-14 05:25:07 +00:00
Swifty
d84d9a8f5d
Allowed hud-set-directive and hud-set-message to set custom gauge text up to MESSAGE_LENGTH instead of NAME_LENGTH.
2012-03-13 06:54:13 +00:00
niffiwan
5a873d6646
Fix gcc compile error with yet more const ness
2012-03-08 10:55:22 +00:00
Goober5000
b146b10403
MOAR const-correctness!
2012-03-08 08:12:56 +00:00
Goober5000
a378cfe005
sexp strings are now SCP_string
2012-03-08 06:48:44 +00:00
Goober5000
7d4fd7ee2a
convert briefing and debriefing to use SCP_string
2012-03-07 05:23:21 +00:00
Goober5000
5127340279
per discussion with mjn.mixael, fix error function so that it doesn't break on messages that are too long
2012-03-07 01:52:30 +00:00
Goober5000
1e23f07948
fix the algorithm for trimming whitespace
2012-03-06 05:11:55 +00:00
Goober5000
0d3f28e8d4
enhance vsprintf for SCP_string to be more intelligent in how it handles specifiers
2012-03-05 09:09:15 +00:00
Goober5000
97002e90ca
use SCP_string internally in stuff_and_malloc_string to remove the need for huge temporary buffers
...
also fix a Volition derp with the function prototype: if you're mallocing a string, you don't need a maximum length
2012-03-05 06:20:23 +00:00
Goober5000
79e4c58064
just derping along
2012-03-05 05:49:25 +00:00
Goober5000
d22ad134fd
a vsprintf equivalent is useful
2012-03-05 05:24:15 +00:00
zookeeper
8e8d11962b
Fixed the inability to use ship:TargetSubsystem to set the player's subsystem target during one frame even if the ship was not already being targeted.
2012-03-04 13:48:40 +00:00
Echelon9
9ae918ead4
Fix SCP_string parselo code - std::string.c_str() function means it's a string being passed to Error(), not the whole std::string object
2012-03-04 07:50:47 +00:00
Goober5000
e2ccd37673
derp
2012-03-04 06:54:56 +00:00
Goober5000
83b09269f4
add variants of replace_one and replace_all
2012-03-04 03:59:29 +00:00
Goober5000
02def13365
add SCP_string variants of parselo functions
2012-03-04 00:20:09 +00:00
Goober5000
abeb98a566
change stuff_vector to stuff_vec3d for clarity, since "vector" now refers to a dynamic list and "vec3d" now refers to the three-float struct
2012-03-02 04:26:44 +00:00
zookeeper
e98ff51535
Eli2's minimal timer fix patch(es) from http://www.hard-light.net/forums/index.php?topic=79070.0
2012-03-01 19:16:31 +00:00
karajorma
caf038d3fc
Commit game_settings.tbl / -mod.tbm
2012-02-29 07:13:49 +00:00
zookeeper
535c0f3bb5
Added subsystem:NextFireTimestamp scripting variable, exposing the ship_subsys->turret_next_fire_stamp variable to Lua.
2012-02-20 10:10:50 +00:00
zookeeper
56a62f6a46
Added subsystem:TurretLocked scripting variable, providing a way of directly getting/setting the locked status of a turret (also without the random delay incurred by the turret-free SEXP).
2012-02-20 10:07:38 +00:00
zookeeper
6198e29bad
Added weapon:ParentTurret scripting variable, providing a handle to the turret (if any) which fired the weapon. This allows $On Turret Fired hooks to easily get a handle to the fired turret.
2012-02-20 09:59:34 +00:00
zookeeper
9f3bc98876
Fixed a few typos in scripting documentation.
2012-02-20 09:53:24 +00:00
zookeeper
9dfb30b67d
Added subsystem:getModelName() scripting function, returning the original subsystem name as it appears in the model file, which is useful for example as a unique subsystem identifier.
2012-02-09 19:51:23 +00:00
Swifty
dd1c4a436c
Fixed Mantis 2413. hud-set-color changes to the HUD will no longer reset when pausing or entering options menu. Introduced Color entry fields for hud_gauges.tbl.
2012-02-06 10:01:01 +00:00
Valathil
eb658ce53e
Fix for Mantis 2458: Initialize stuff before calling the point_to_vec function so it has the right matrices for calculation, also fixed scripted sphere drawing
2012-01-30 09:29:32 +00:00
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
zookeeper
c12fa5c183
Small scripting documentation fix: modeltextures -> modeltextures_h.
2012-01-21 15:52:31 +00:00
zookeeper
ab34afd212
Added the $On Turret Fired scripting hook.
2012-01-21 15:16:53 +00:00
Echelon9
cccabac1af
Fix for #2567 - LLVM warning: Semantic issue in lua.cpp
2012-01-14 00:31:14 +00:00
Echelon9
7270d1fb88
Fix for #2566 - GCC warning: NULL used in arithmetic in lua.cpp (lua_getstack(L,n+1, ar) == NULL)
2012-01-14 00:22:58 +00:00
Echelon9
a24370a2e2
Fix for #2565 - GCC warning: Use of unary operation that may not be intended in lua.cpp (type =- 1;)
2012-01-14 00:17:03 +00:00
The_E
6b1bf3ea0f
Various scripting patches from m!m:
...
--Eyepoint access to the model handle
--getCollisionDistance() to the collision info handle to get the precomputed distance to the hit point
--A Disabled variable for the ship handle
--getTimeUntilExplosion() for the ship handle to get the time until the ship finally explodes
--A change to the documentation of ad.play3DSound() to reflect that the function also takes position parameters
2012-01-13 17:46:36 +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
chief1983
dd4026f82a
Make sure to include the right lua headers on all platforms, as pointed out by rhl.
2011-12-28 19:53:50 +00:00
Goober5000
c7b38b0b92
fix for Mantis #2547
2011-12-18 08:45:47 +00:00