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
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
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
zookeeper
c12fa5c183
Small scripting documentation fix: modeltextures -> modeltextures_h.
2012-01-21 15:52:31 +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
Echelon9
5bf63e8c8d
Third part of fixing jump_nodes refactor, remove the union approach to linking Jump_nodes into Objects[]. First go at clearing the FRED errors.
2011-11-19 04:07:30 +00:00
Zacam
69ec80042e
From zookeeper: Correction to the getAnimationDoneTime in lua.cpp time_s calculation.
2011-11-14 09:45:20 +00:00
The_E
c8d456a784
Moving this up a bit more
2011-10-28 11:21:25 +00:00
The_E
2a80a598f7
This line shouldn't have been removed in m previous commit. No idea how that happened, but I moved it closer to where it's actually used.
2011-10-28 10:41:01 +00:00
The_E
327afbc262
From zookeeper: Adds kill() function to asteroid objects
2011-10-28 10:01:54 +00:00
The_E
681c2a356e
From m!m: Reworked scripting sound API
2011-10-28 09:59:31 +00:00
Echelon9
b45a5ee281
From m\!m: access to the Viewer_mode as I need to know if the view is currently in the cockpit or not
2011-10-09 12:57:39 +00:00
The_E
4237db0536
Fixes issue with the mn.Asteroids and mn.Debris scripting tables, as these were accidentally 0-indexed instead of the Lua-standard way of starting indices from 1.
2011-10-06 15:09:26 +00:00
The_E
939f1f949f
Damn, wrong line changed.
2011-09-30 17:54:01 +00:00
The_E
766486b103
Update to ad.playMusic to allow control over whether or not to loop the passed sound file.
2011-09-30 17:53:06 +00:00
The_E
4ce7dfe9e4
Revert 7789
2011-09-24 17:42:56 +00:00
The_E
24d6ca3bad
PVS Studio related: False alarms
2011-09-24 15:46:24 +00:00
The_E
5b53430da5
From m!m: Adds isTurret() and isAfterburnerActive() Scripting functions
2011-09-17 12:59:54 +00:00
IssMneur
0717ad3d13
PVS-Studio fix: V512 A call of the 'memcpy' function will lead to overflow of the buffer '& x'. (pstypes.h:131)
2011-09-08 05:39:53 +00:00
IssMneur
dd3404b441
PVS-Studio: These are not false positives. Variable args can only be PODs, changing the "class" to a structure makes ade_odata a POD which should stop PVS-Studio from flagging this.
2011-09-08 05:38:21 +00:00
Valathil
a67f2d4f29
Enable alpha channel on render to texture targets and provide scripting functions with alpha capabilities
2011-09-01 16:16:03 +00:00
The_E
0525e871d0
PVS Studio related: Mark false alarms as such.
2011-08-30 17:46:49 +00:00
Goober5000
3ce69f150a
waypoints and waypoint paths now have dynamic limits
2011-08-30 03:35:42 +00:00
Echelon9
cb07f76f6c
Documentation: Clean up lua.cpp
2011-08-28 08:54:10 +00:00
The_E
fe0ec8dffa
Update for the ad.playMusic() function so that it accepts a volume parameter
2011-08-24 15:20:04 +00:00
Echelon9
c2e41e4a95
PVS-Studio fix: V524 It is odd that the body of 'l_Object_getrvec_f' function is fully equivalent to the body of 'l_Object_getfvec_f' function (lua.cpp, line 4735).
2011-08-24 14:52:05 +00:00
Echelon9
a248a37d58
PVS-Studio: Fix V805. Decreased performance. It is inefficient to identify an empty string by using 'strlen(str) > 0' construct
2011-08-24 13:37:01 +00:00
The_E
14ac7a3cbf
object:checkRayCollision() for scripting, from m!m
2011-08-22 12:57:01 +00:00
Echelon9
fe1c83e4eb
PVS-Studio fix: Expression 'i >= 0' is always true. Unsigned type value is always >= 0.
2011-08-11 14:18:26 +00:00
The_E
e6f0e0e956
Ooops, meant to use a pointer there.
2011-08-04 13:34:33 +00:00
The_E
4dd9021e9c
Resolve an "uninitialized Variable" warning
2011-08-04 13:33:35 +00:00
The_E
ac8b7c4c10
From m!m: Adds access to collision data to the Lua API.
2011-08-04 11:05:25 +00:00
The_E
47b1f57435
Adding the function "ship::addShipEffect(string name, int duration)" to the LUA API.
2011-08-04 10:58:28 +00:00
The_E
7f5c3d343e
Valathil's code cleanup patch.
2011-07-20 18:04:43 +00:00
The_E
c57dd1ed07
From m!m: Gives scripting access to debris chunk size data
2011-07-18 17:58:49 +00:00
The_E
59cbde3d9e
Adds sexps to manipulate a ships' collision groups. If two objects are members of the same collision group, they will not collide with each other.
2011-06-28 08:36:54 +00:00
The_E
4b5d6f939a
From m!m: Patch for Mantis 2459 (Calling ts.createParticle with an invalid effect handle causes an Int3())
2011-06-27 12:49:42 +00:00
The_E
590cbf0b2b
Patch from m!m to give scripting access to debris metadata
2011-06-25 14:15:44 +00:00
The_E
c71012a829
Patch for Mantis 2421 from m!m: Adds scripting controls for particles.
2011-06-01 19:41:07 +00:00
The_E
a1acb0601d
And more from m!m, as seen here: http://www.hard-light.net/forums/index.php?topic=44821.msg1487355#msg1487355
2011-03-19 21:49:42 +00:00
The_E
808a3dd1e0
A few tweaks and additions by nuke
2011-03-19 21:37:51 +00:00
The_E
9d8caf5f2a
m!m's corrections to subsystem:fireWeapon() as seen here: http://www.hard-light.net/forums/index.php?topic=44821.msg1486751#msg1486751 . Slightly adjusted to use model instances. Also tweaked ship_get_global_turret_gun_info() to use model instances.
2011-03-18 21:47:17 +00:00
The_E
9f9a294e9d
More lua stuff from m!m
2011-02-13 19:45:12 +00:00