SimHQ
Previous Thread
Next Thread
Print Thread
Rate Thread
Hop To
#4622564 03/12/23 08:43 AM
Joined: Apr 2002
Posts: 12,504
Likes: 2
Veteran
Veteran
Joined: Apr 2002
Posts: 12,504
Likes: 2
The combination that I tried in this host-only test was an escort mission of torpedo armed Avengers with a Japanese carrier as the target.
I wanted to check that the torpedo code was working OK.

There were no AI interceptors and the Avengers released their fish appropriately:

[Linked Image]

This will make a nice GameRanger mission with the Avengers set as the AI friendly planes but with Interceptors to be downed by the Allied escorts smile


Fly EAW online at GameRanger: GameRanger Site

FaceBook Pages
UAW 160 downloads
EAW Club

Mark Twain: I am quite sure now that often, very often, in matters concerning religion and politics a man's reasoning powers are not above the monkey's.

I am now of an age at which I no longer need to suffer fools gladly
Joined: Aug 2000
Posts: 7,496
Likes: 9
EAW Old Timer and Bodger
Hotshot
EAW Old Timer and Bodger
Hotshot
Joined: Aug 2000
Posts: 7,496
Likes: 9
thumbsup

Will be looking at torpedo missions for one of the Italy/Balkan scenarios.

Joined: Apr 2002
Posts: 12,504
Likes: 2
Veteran
Veteran
Joined: Apr 2002
Posts: 12,504
Likes: 2
I have a torpedo plane-set. The first loadout slot is supposed to be empty so that you get the unladen plane. However, in this plane-set the first slot has the torpedo loadout. There are no other slots, and this only applies to the torpedo carrying planes such as the Avenger and the B5N2 Kate.

Testing torpedo missions can be time consuming, especially if you are flying the plane with the torpedo.
Often the torpedo will sink when it is released, making the test a waste of time.

This routine in the UAW160 exe can help:

Code
	fp = fopen("Torpedo.mpf", "r");

		
	if (fp != NULL) 
	{ 
		fscanf(fp, "%d\n", &TorpMaxHeight); 
		fscanf(fp, "%d\n", &TorpMaxSpeed);

		fclose(fp); 
//		MPSetAlDone = 0; 
	}
	else
	{	TorpMaxHeight = 100;
		TorpMaxSpeed = 160; //153;
	}


By default the torpedo will sink if it released at a height of more than 100 feet or a speed of more than 160 knots.
However, if you make a "Torpedo.mpf" file with two values of 2000, and put it in the root folder, then they will only sink if they are released at a height of more than 2000 feet or a speed of more than 2000 knots.

In the screenie the height of the AI Avenger was 98 feet and its speed was 138 mph which is 120 knots so the code for the AI torpedo run was working very well.
It was host-only multiplayer, so I can set the altitudes for all the planes to a low value. This uses less time for getting the AI plane down to the correct height on the release run.

[Linked Image]



Fly EAW online at GameRanger: GameRanger Site

FaceBook Pages
UAW 160 downloads
EAW Club

Mark Twain: I am quite sure now that often, very often, in matters concerning religion and politics a man's reasoning powers are not above the monkey's.

I am now of an age at which I no longer need to suffer fools gladly
Joined: Feb 2006
Posts: 4,859
3DZ / campaign designer
Senior Member
3DZ / campaign designer
Senior Member
Joined: Feb 2006
Posts: 4,859
Why not just make the settings in the torpedo.mpf default rather than have the player add the file to the root directory?

Joined: Apr 2002
Posts: 12,504
Likes: 2
Veteran
Veteran
Joined: Apr 2002
Posts: 12,504
Likes: 2
It is for the modder to add the file for testing purposes, not the player. I does not make sense for a plane to be able to release a torpedo from 500 feet at 300 mph.

My post was a reply to Moggy who wrote "Will be looking at torpedo missions for one of the Italy/Balkan scenarios."


Fly EAW online at GameRanger: GameRanger Site

FaceBook Pages
UAW 160 downloads
EAW Club

Mark Twain: I am quite sure now that often, very often, in matters concerning religion and politics a man's reasoning powers are not above the monkey's.

I am now of an age at which I no longer need to suffer fools gladly
Joined: Aug 2000
Posts: 7,496
Likes: 9
EAW Old Timer and Bodger
Hotshot
EAW Old Timer and Bodger
Hotshot
Joined: Aug 2000
Posts: 7,496
Likes: 9
Thanks, makes it easier to wrap my head around the torpedo side of things.

Joined: Feb 2006
Posts: 4,859
3DZ / campaign designer
Senior Member
3DZ / campaign designer
Senior Member
Joined: Feb 2006
Posts: 4,859
Seems to me there should be a 'happy medium" built into the game, balancing game play vs real life.

Truth is, default torpedo runs in EAW have always been very difficult to perform because of the limitations of the EAW virtual world. Keeping the plane under 100 feet and 160 knots isn't easy to do. many of the planes involved are rather sluggish at that speed, making it too easy to go over the 100 foot limit or hit the water. It's not like in the real world where the pilot could look out to the side to judge his height.

Why not make it a default of say 250 feet and 200 knots? Regular players won't notice the difference (except maybe they'll have more successful drops) yet modders can add the .mpf file for testing purposes.

Just a thought.


Link Copied to Clipboard
Quick Search
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
God Forbid they want to have a bit of fun at work
by NoFlyBoy - 09/22/26 08:50 PM
How a 5" 38 Caliber US Naval Gun Works
by F4UDash4 - 09/19/26 01:20 AM
100% commission based sales
by PanzerMeyer - 09/18/26 04:47 PM
Relativity
by Terl9999 - 09/18/26 04:34 AM
HOA's
by Terl9999 - 09/18/26 04:12 AM
Football
by Terl9999 - 09/18/26 02:42 AM
Flags
by Terl9999 - 09/15/26 10:03 PM
September 15th Battle of Britain Day.
by RedToo - 09/15/26 08:06 PM
Population Patterns
by PanzerMeyer - 09/15/26 03:43 PM
"Problem occurred in connection"
by F4UDash4 - 09/14/26 01:41 PM
Popular Topics(Views)
7,067,880 SAM Simulator
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 8.0.1