Black Magic 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5
|
Quote:
Originally Posted by Abd_von_Mumit
Wouldn't it be better and more consistent to set it to TCxOnMessageBoxTextDesiredTCLevel value?
As to the script I came to this so far:
[COMMANDS]
Activate_NavMap_Station,0,0,0,0,0,0,1
Set_Time_Compression,128,0,0,0,0,0,1
Set_new_depth,20,0,0,0,0,0,60
All_stop,0,0,0,0,0,0,5
Report_nearest_sound_contact,0,0,0,0,0,0,10
Surface,0,0,0,0,0,0,60
Set_new_speed,7.5,0,0,0,0,0,3240
Loop,-1,0,0,0,0,0,0
[COMMANDS_END]
If Trevally. doesn't mind I'd publish it after some more testing as a mod.
EDIT: Also if you put it into a command, it won't give user ability to terminate the script on an event. Also it won't let them to terminate the script on other contacts (like a plane). You would also need to modify number of options for some commands only, which would be inconsistent, wouldn't you?
EDIT 2: I found a bug: script doesn't recognize that game TC level changed and its [internal?] clock is still set to x128 when the game is for example in TC1.
|
change these commands:
Activate_NavMap_Station,0,0,0,0,0,0,1
Set_Time_Compression,128,0,0,0,0,0,1
to:
Activate_NavMap_Station,0,0,0,0,0,1,1
Set_Time_Compression,128,0,0,0,0,1,1
what the second to last 1 says is execute this command only once. This is used in loops where there's no need to be executing the command more than once.
Script will terminate just fine if I add bit 12. All it will do it set TC to 1 if bet 12 is set.
Explain your edit 2 more. I'm not following you.
I won't use parameter 5 for the TC level. I like your suggestion of using TCxOnMessageBoxTextDesiredTCLevel value
|