SUBSIM Radio Room Forums



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

Go Back   SUBSIM Radio Room Forums > Sub/Naval + Other Games > Classic Subsims
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-23-06, 10:10 PM   #1
Darkfold
Watch
 
Join Date: Mar 2005
Posts: 28
Downloads: 0
Uploads: 0
Default UDF Question

Functionally, is this:

[SENSOR2]
Type = RADAR
#if between(19420201,date,19420831)
System = RadarUS_SC1
#endif
#if between(19420901,date,19460101)
System = RadarUS_SC2
#endif

the same as this:

#if between(19420201,date,19420831)
[SENSOR2]
Type = RADAR
System = RadarUS_SC1
#endif

#if between(19420901,date,19460101)
[SENSOR2]
Type = RADAR
System = RadarUS_SC2
#endif

?
__________________
Darkfold (formerly Captain Beefheart)
Darkfold is offline   Reply With Quote
Old 05-25-06, 03:07 PM   #2
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,099
Downloads: 109
Uploads: 2


Default

Yes. Since the lack of, say, a sensor 2 before a sensor 3, will be ignored by the game, the effect is the same (It will jump to the next number in order)
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 05-27-06, 10:34 PM   #3
Darkfold
Watch
 
Join Date: Mar 2005
Posts: 28
Downloads: 0
Uploads: 0
Default

Good. I see arranging Sensors and Weapons with two or three consecutive date ranges - i.e., one type of RADAR replacing another - using the first method as being better because it takes up less room (smaller file), and is easier to understand because it's easier to deal mentally with one Sensor or Weapon at a time and easier to see the date ranges.

I'm going through all the UDFs and making them all consistent. Anal-retentive? Who, me? Nope, just an old technical writer who likes everything to look the same.

All right, maybe I'm just a little bit anal-retentive.
__________________
Darkfold (formerly Captain Beefheart)
Darkfold 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 02:39 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.