![]() |
Editing the "Raise/Lower SD Antenna" button
Help!
I'm using TMO and want to edit the Raise/Lower SD Antenna button in OrdersBar.cfg so that it is lit "active" just like the periscope buttons. I just can't find a lock command that works. The attack periscope uses the command Button2CommandToCheckIfIsChecked=Is_AttackPeriscop e_risen_at_all to see if the periscope is up; and if so to place the button in the active state. I want this same function available to the SD Antenna. I want to know if the antenna is raised or lowered without having to use the external camera to check. How does the game know if the SD antenna is up or down? I searched all the .cfg files I could find, but could not find any reference to the lock commands. Can anyone point me in the right direction? Thanks, SB |
Good question. Sorry, but i don't have an answer.
However, I think there is an IsSurfaced variable (or something similar to "isSurfaced") so it might be possible to restrict the button when surfaced or submerged. Not sure, and you might lock yourself into having it one way or the other . At any rate the functionlality of the SD antenna, is shoehorned out of legacy code from SH3 - raise and lower SNORKEL. (Maybe it helps when you know what your dealing with? ) |
Below a list of all commands I am aware of (from the addon). I have not found anything that you could use, but maybe I missed it:
Code:
Unknown |
Quote:
Now that... is interesting. |
That is very interesting!
Since I wanted the Raise/Lower SD Antenna (toggle_snorkel) button to behave like the periscope button, I tried to edit commands used by the periscope: "Button4CommandToCheckIfIsChecked=Is_ObservationPeriscope_risen_at_all" was edited to "Button6CommandToCheckIfIsChecked=Is_snorkel_risen_at_all" in OrdersBar.cfg. I tried all the lock commands from the cfg file: Is_snorkel_risen_at_all, Is_snorkel_moving, Is_snorkel_active, Is_snorkel_on... Apparently, one cannot simply edit the ordersbar.cg to create a new set of conditions to check. skwasjer where did you locate that list of commands?1? Are the commands editable? All I'm trying to do is have the menu button switch from inactive to active when the antenna is raised. It seemed like a good idea at the time... |
Scott,
with the Menumaker you get an menumaker.ini file. There you will see all the commands, listed in categories, i've found for the Sh4. Here you cann checked with skwasjer list and add new commands to get them available in your Sh4Menumaker. |
Quote:
No, the list is not editable. Each command internally maps to an id, and is basically linked to a fixed function. Adding textual command strings won't do anything because the game has no mapping to an existing function (if there even is a function defined for that purpose). Very unfortunate, I can think of more commands that would be useful. [edit] This list can also be used together with S3D. Some controllers have fields where commands must be entered. I'll make sure to integrate this list in S3D as well... [edit2] Oh and jimi, feel free to integrate the full list into MenuMaker as well... :up: |
Thanks for the explanation.
Also, thanks for the time and effort that you guys put into making this game better than ever. Now I have no excuse, It's time to start a new career! :sunny: |
All times are GMT -5. The time now is 12:11 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.