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 > SH4 Mods Workshop > SH4 Mission Designers' Forum
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-23-2021, 09:44 PM   #1
Pilot_76
Frogman
 
Join Date: Mar 2010
Location: São Paulo, Brazil
Posts: 301
Downloads: 421
Uploads: 0
Default Target intercept, TDC Training Mission.

Hi skippers,

This has been posted a while ago by me, and I'd like to give it a shot again.

I want to design a TDC training mission and once the mission starts a random ship will show up in a random position and within X distance from Ownship (our Sub) following a random waypoint.

How to design in such a way that the mission will choose a single ship from a list? My guess is that if I assign a percentage chance from a lot of units the game will spawn many units each one with its own percentage. So I will end up with many ships at once. I want just one from a list.
Pilot_76 is offline   Reply With Quote
Old 03-24-2021, 12:22 AM   #2
KaleunMarco
Admiral
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Chicago area
Posts: 2,187
Downloads: 341
Uploads: 13


Default

Quote:
Originally Posted by Pilot_76 View Post
Hi skippers,

This has been posted a while ago by me, and I'd like to give it a shot again.

I want to design a TDC training mission and once the mission starts a random ship will show up in a random position and within X distance from Ownship (our Sub) following a random waypoint.

How to design in such a way that the mission will choose a single ship from a list? My guess is that if I assign a percentage chance from a lot of units the game will spawn many units each one with its own percentage. So I will end up with many ships at once. I want just one from a list.
i believe you will have to build a GROUP (RGG) and use the parameter that will limit the Maximum number of ships spawned.

so you create a Group, add various ships with spawn percentages, then set the Max parameter to one.

i am not sure what would happen if the percentages worked against you and zero ships were spawned.

anyway, that's how i would do what you are trying to do.

good luck.

__________________
there are only two things in the world: submarines and targets.
Fortiter et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 03-24-2021, 12:33 AM   #3
Pilot_76
Frogman
 
Join Date: Mar 2010
Location: São Paulo, Brazil
Posts: 301
Downloads: 421
Uploads: 0
Default

tks Marco,

Good idea on the "group" subject. Haven't thought about it.
Pilot_76 is offline   Reply With Quote
Old 03-24-2021, 12:36 PM   #4
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: The Crossroads of Mid-America
Posts: 7,616
Downloads: 379
Uploads: 1


Default

An RGG though, always has a "boss" ship that all others follow, so it will always spawn at 100%. In the RGG though, you can have it listed as GENERIC Merchant, or GENERIC Tanker or whatever class. As for where it spawns, where you place the RGG is the "center" point, but you can use the "RandStartRadius=" line (which defaults to "0.000000") to have it spawn anywhere inside of the radius of that figure. However, the group will always head toward waypoint 1. You can set "loop" points though, for the ship to choose a variety of different possible routes after Waypoint 1 is reached, which might be a bit easier to have variety. The player always starts in one single defined spot inside a Single Mission, and the RGG always spawns with a given radius of a defined location, but after that, with the use of "Loop" at the different waypoints, you can have all kinds of "chance" fun. The player's boat has to be at least 30+km away from where the group spawns, so that should give you plenty of chance encounter to deal with...
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie 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 07:07 PM.


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