SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-15-11, 08:31 AM   #1
DrJones
Samurai Navy
 
Join Date: Jun 2009
Location: Germany, 50 Kilometers away from Kiel
Posts: 576
Downloads: 341
Uploads: 0
Default

Sorry postet the wrong piece of code... to find in line 879 - 907

this is the right one

def Station_Activated( station ):
import UserInteractionStationsManager
if station == UserInteractionStationsManager.UserInteractionStat ionsManager.ActiveStation:
PageDefaultHud_EnterNearbyStationButton.Tooltip = "Leave station"
from ObservationPeriscope import ObservationPeriscopeStation
from AttackPeriscope import AttackPeriscopeStation
from UZO import UZOStation
if station == ObservationPeriscopeStation or station == AttackPeriscopeStation or station == UZOStation:
global FeedBackModeWasMinimizedWhenEnteringPeriscope
global FeedBackMode
FeedBackModeWasMinimizedWhenEnteringPeriscope = FeedBackMode == FeedBackModes.Minimized
SetMapLayer( PageDefaultHud_MapGroup_Mapcontrol, MapLayer_Periscope, True )
if Game.Mission.IsTutorial:
SetFeedBackMode( FeedBackModes.Minimized, Instant.Yes )
else:
SetFeedBackMode( FeedBackModes.TAI, Instant.No )
if station == ObservationPeriscopeStation:
#DisplayPlayerGuidanceButton( PageDefaultHud_PlayerGuidance_Small_ObservationPer iscope )
Game.SubmarineCommands.ExecuteCommand( "Rise_whole_obs_periscope" )
if station == AttackPeriscopeStation:
#DisplayPlayerGuidanceButton( PageDefaultHud_PlayerGuidance_Small_AttackPeriscop e )
Game.SubmarineCommands.ExecuteCommand( "Rise_whole_periscope" )
from Hydrophone import HydrophoneStation
if station == HydrophoneStation:
SetMapLayer( PageDefaultHud_MapGroup_Mapcontrol, MapLayer_Hydrophone, True )
if ScriptManagerManaged.IsScriptLoaded( "DeckGun" ):
from DeckGun import DeckGunStation
if station == DeckGunStation:
DisplayPlayerGuidanceButton( PageDefaultHud_PlayerGuidance_Small_Cannon )

the rest is trying how it works

greeting
DrJones is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.