SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   Mods Workshop for Cold Waters (https://www.subsim.com/radioroom/forumdisplay.php?f=285)
-   -   How to make torpedoes to guide at "noisemakers" (https://www.subsim.com/radioroom/showthread.php?t=243400)

JhonSilver 12-22-19 04:18 PM

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 ?

Onkel Neal 01-08-20 11:43 AM

Can you detail what this does? thx:up:

JhonSilver 02-24-20 01:58 AM

Quote:

Originally Posted by Onkel Neal (Post 2643756)
Can you detail what this does? thx:up:


This code change the torpedo behavior.
The torpedo will home at "noisemakers", as if its are real targets.


So "noisemakers" works as false targets for torpedo.


(Assembly-CSharp.dll)


------------
btw, this code suitable for the wake homing torpedo simulation, as a basis. (one of possible variants)

Julhelm 02-24-20 07:28 AM

Interesting! How do you edit the compiled dll's? Hex edits?

JhonSilver 02-27-20 02:00 PM

Quote:

Originally Posted by Julhelm (Post 2651120)
Interesting! How do you edit the compiled dll's? Hex edits?


dnSpy tool

Exocet25fr 02-29-20 09:32 AM

Where is the file location to modify, and what is the file name ?:06:

Very mysterious!:hmmm:

Badger343rd 03-22-20 10:28 AM

I'm confused...don't they do this already?How does this differ to the way decoys work now?

also is this how they do wakehoming in epic mod?

partycat 04-26-20 06:07 PM

This mod does that. Although it's kinda broken at the moment, makes your MOSS, Noisemakers and Knuckles useless once the hostile torpedo acquire on your sub :(

subsim.com/radioroom/showthread.php?t=240032


All times are GMT -5. The time now is 08:30 AM.

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.