Commit Graph
547 Commits
Author SHA1 Message Date
karajorma 3bc9a692af Fix Mantis 1774 (when-argument within when does nothing) 2008-09-30 17:36:12 +00:00
Goober5000 89d3b62524 make CAR and CDR fail-safe 2008-09-28 19:28:22 +00:00
karajorma 58fc12fc57 KeldorKatarn's afterburner lock SEXPs 2008-09-13 22:21:38 +00:00
Swifty 7e047b5c98 WMC's fix for RTT indexing and fix unnecessary slewing for 3D HUD elements. 2008-09-06 07:51:50 +00:00
karajorma 04e4095b36 Arguments within arguments (again). It should work this time round. 2008-09-04 20:38:14 +00:00
karajorma 3b6e62805f Fix Mantis 1545 & 1754 (Order SEXP doesn't work with wings or destroy subsystems properly)
Add the Query-Orders SEXP 
Deprecate the Order SEXP
2008-08-31 21:04:44 +00:00
WMCoolmon 4bff232cad Change set-fov back to a global override 2008-08-30 19:48:20 +00:00
WMCoolmon ddf75fc7e0 Final scripting, camera code updates. 2008-08-30 11:05:48 +00:00
karajorma 81a851e33a Revert argument changes till I can figure out why they crashing VC6 builds but not 2005 ones. 2008-08-20 20:45:45 +00:00
karajorma 672e34c166 Fix the -argument SEXPs to allow them to cope with conditionals being used within them.
Clean up some code from in-sequence that never worked anyway.
2008-08-19 19:00:54 +00:00
karajorma 69b61ceaa4 Hmmmmmm. Using a VC2005 keyword as a variable name is just asking for trouble. 2008-08-16 08:13:43 +00:00
karajorma bcdc1c1589 Fix Mantis 1731 (CTEXT reporting the variable value if a block variable of the same name existed) 2008-08-03 11:39:05 +00:00
WMCoolmon bf23eb17c8 add isPXOEnabled scripting function to Testing library 2008-07-29 04:21:58 +00:00
karajorma e44f2c1911 Fix Mantis 1732 (Ship-Guardianing ships destroyed before mission start)
Add change-player/team-score SEXPs
2008-07-24 20:01:30 +00:00
taylor 9231692e48 basic commit of a few Xt tree changes
- updated OpenGL code (basic shader support, etc.)
 - new ships lab code
 - scripting RTT fixes
 - don't let FRED hog CPU time
2008-07-16 02:49:19 +00:00
Goober5000 b57c41c6f7 fix incompatibility in sexps between retail and SCP 2008-06-26 21:18:46 +00:00
Wanderer ccbdf0ead1 added startMission lua function 2008-06-24 12:27:49 +00:00
WMCoolmon 89f5949071 The new scripting hooks for mouse/keyboard. 2008-06-23 07:50:47 +00:00
Backslash 8c0bc5ab59 Minor typos. Also an fspeed -> speed change. 2008-05-30 03:33:27 +00:00
Swifty 464fd54392 Modified fireball handling; ship class or type specific explosions. 2008-05-29 03:26:23 +00:00
karajorma eec030d092 Fix a couple of those pesky scoping in for loops problems. 2008-05-26 16:39:59 +00:00
karajorma 2c55d4caeb Blowfish's port of Turey's ship template code. 2008-05-26 15:54:29 +00:00
karajorma 7452c98564 Allow priorities higher than 89 for orders in FRED. Clean up unused parameters from several AI methods. 2008-05-26 13:29:53 +00:00
WMCoolmon 6bdf192fec Scripting:
- Add On Mission Start, On Mission End hooks; swap Warpin and Warpout to Warp In and Warp Out
- Safer handle helper structs
- Improved math, eg matrix interpolation and vector multiply/divide
- Filesystem read AND write support
- Initial scripting orders support
- Better waypoints support
- Assorted requested scripting functions
bmpman:
- Safer bm_get_filename
cfile:
- Support for RW, rather than just R or W, file modes.
model:
- Safer texture_info struct. Taylor, I know we talked about this, but I realized that it was just a lot better for what it does and it shouldn't be too much trouble to replace with the new system (operations tend to be much more concise and clear). Let me know if any unexpected difficulties arise.
2008-05-25 22:52:05 +00:00
WMCoolmon 65bc5b7e5c Don't quit the game when -output_sexps is used, and move the bulk of the code to a more appropriate location. 2008-05-25 20:13:35 +00:00
phreak 0ca63f3c96 Mantis #1462
non-local SSMs home in on objects instead of points to they can track moving targets.

ship_apply_tag and ssm_create take "team" arguments now to indicate which team fired the ssm strike.

ship-tag sexp also has an optional team argument added.  Team 0 is used if the team is not defined.

missiles that are fired without a parent and are locked will travel at their max velocity and not 1/4 of their max.

bugfixes where sometimes an animation may sometimes have a duration of zero and cause an infinite loop.
2008-05-16 01:29:19 +00:00
karajorma a711c256b4 Fix various crashes, assertions and Int3s caused by SEXPs unable to find subsystems after the player changes class during loadout. 2008-05-14 19:36:17 +00:00
karajorma 604faf652f Nope. I don't know why I thought that would work either. 2008-04-22 10:13:43 +00:00
karajorma 77f6c1bc9c Fix ship-subsys-guardian-threshold so it can be used with ships in loadout.
Add the set-persona SEXP
2008-04-20 18:31:47 +00:00
Backslash 759872d98b A few more tweaks for ship name end_string_at_first_hash_symbol support.
Make FPS and status displays hide when hud is toggled with shift-O.
2008-04-16 03:21:37 +00:00
karajorma 86c74f9211 Add the is-player SEXP 2008-04-02 18:38:12 +00:00
taylor 04df95e8c9 line sizes are figured at EOL breaks, so be sure that we account for those when splitting too (Mantis #1152) 2008-03-31 00:02:54 +00:00
taylor 88693b7388 fix various compiler warnings 2008-03-29 06:30:20 +00:00
WMCoolmon 46a1a343c5 Fix for mantis 0001527 2008-03-23 08:34:45 +00:00
WMCoolmon e5ef92c7a8 Fix for mantis #0001580 2008-03-23 08:19:16 +00:00
WMCoolmon 51717c49b1 Fix for mantis 0001637 2008-03-23 07:33:11 +00:00
WMCoolmon 15f6909279 $Application hook for mantis 0001574 2008-03-23 07:00:54 +00:00
WMCoolmon 40317c8642 - Nearly all functions and variables have one return type, which defaults to 0, "", or an invalid handle if the function fails.
- All functions use seconds for time
- Syntax update for scripting.html
- Minor bugfixes
- gamestate and gameevent handles
- getState is now getCurrentGameState
- setEvent is now postGameEvent
- drawMonochromeImage arguments reduced in anticipation of agreeing with drawImage arguments
- Fixed numerical indexing of weapon classes
2008-03-23 06:07:23 +00:00
Goober5000 bc98ea3946 make the self-destruct sexp actually work for more than one ship 2008-03-22 03:59:29 +00:00
karajorma 0ae2a6891e Remove a couple of extra Int3()s in the transfer-cargo SEXP. 2008-03-21 21:49:50 +00:00
karajorma a4987ce6ae Add SEXPs and table entries to WMCs subsystem name changing system 2008-03-21 20:25:12 +00:00
taylor 6aa46ca8d2 update to newest FS2NetD client code 2008-03-20 21:29:41 +00:00
taylor c9081ee3d5 fix memory leak
address some compiler compaints and add a newline to debug message
2008-03-20 18:26:58 +00:00
taylor f88b444d93 fix some variable types/init 2008-03-20 18:25:08 +00:00
WMCoolmon f6ba4a5e7d Fix bug with drawImage and drawMonochromeImage as reported by Wanderer 2008-03-16 06:41:34 +00:00
WMCoolmon a67ab3b802 Use change_ship_class rather than straight variable set (this is the proper way) 2008-03-15 09:16:34 +00:00
WMCoolmon 7e7d77c8d7 *Drumroll* The official scripting system commit to the stable branch! 2008-03-15 08:56:43 +00:00
karajorma a67a2182ce Ensure that the chatbox is closed when going to debriefing.
Some general clean up.
2008-03-14 20:27:41 +00:00
Goober5000 4993ca93fd add ship-copy-damage, which clones damage stats (hitpoints and subsystem damage) from an existing ship onto another existing ship or a ship on the arrival list 2008-03-11 06:11:26 +00:00
karajorma c4f9f9b53e Fix Mantis 1621 2008-03-08 15:29:46 +00:00