FreeSpace Releases > Scripting Releases

In-Mission Techroom Script v0.4 (Updated 19/06/2013)

<< < (2/8) > >>

FelixJim:

--- Quote from: niffiwan on February 08, 2013, 03:24:04 am ---very cool  :yes: We should figure out how to give LUA a pause hook (or whatever it's called, I'm noobish with the whole C++/LUA integration thing)

--- End quote ---
I was thinking about asking how hard one of these would be to add, but by then I'd got the rotating model working and I doubt I'd be able to do that if the game was entirely paused. It's not exactly necessary, but it does look good.

EDIT: Added installation instructions to first post.

Admiral MS:
Looks great. Why did I never get the idea to do this?  :yes:


--- Quote ---On pressing Alt-2, the game is "paused" (well, no, time compression is set to 1%, this was the best I could manage)
--- End quote ---

--- Code: ---mn.runSEXP("set-time-compression !0.001!")
--- End code ---
does also work and give you something closer to a paused game. I don't think this would affect your rotation.

FelixJim:

--- Quote from: Admiral MS on February 08, 2013, 10:26:21 am ---
--- Code: ---mn.runSEXP("set-time-compression !0.001!")
--- End code ---
does also work and give you something closer to a paused game. I don't think this would affect your rotation.

--- End quote ---

I always assumed using sexps = must use integers , so thanks for pointing this out to me. And no, the model rotates on a frame by frame basis, so it's immune to time compression effects. Updated script in first post with reduced time compression.

FelixJim:
Bump for new version of the script with new features. First post edited accordingly.

Apollo:
What build does this require? I crashed on pressing ALT-1 and I'm not sure if it's a scripting error or an incompatibility.

EDIT: I tried to reproduce it with a debug build, but it crashes when I commit.



[attachment deleted by ninja]

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version