SUBSIM Radio Room Forums


SUBSIM: The Web's #1 BBS for all submarine and naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Modern-Era Subsims > Mods Workshop for Cold Waters
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 12-22-2019, 04:18 PM   #1
JhonSilver
Watch
 
Join Date: Jul 2017
Posts: 23
Downloads: 19
Uploads: 0
Default How to make torpedoes to guide at "noisemakers"

in

private bool CheckTargetInSensorCone()

add this code below line 23
---------------------------------------

for (int j = 0; j < UIFunctions.globaluifunctions.playerfunctions.sens ormanager.noisemakerObjects.Length; j++)
{
if (this.CheckWithinSensorAngles(UIFunctions.globalui functions.playerfunctions.sensormanager.noisemaker Objects[j].gameObject.transform) && !this.passiveHoming)
{
this.targetTransform = UIFunctions.globaluifunctions.playerfunctions.sens ormanager.noisemakerObjects[j].transform;
this.DisableSnake();
return true;
}
}

------------------------------------
------------------------------------


Can I give a link to my page here ?
JhonSilver is offline   Reply With Quote
Old 01-08-2020, 11:43 AM   #2
Onkel Neal
Born to Run Silent
 
Onkel Neal's Avatar
 
Join Date: Jan 1997
Location: Cougar Trap, Texas
Posts: 18,340
Downloads: 417
Uploads: 205


Default

Can you detail what this does? thx
__________________
There have been a lot of U-boat games in the past but nothing like Wolfpack.
Good hunting and don't forget to close the hatch!

Onkel Neal is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 05:19 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 1995- 2020 Subsim