Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

"Dead" doctrine ?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DW Mod Workshop
View previous topic :: View next topic  
Author Message
Amizaur



Joined: 22 Nov 2002
Posts: 549
Location: Poland

PostPosted: Mon Apr 04, 2005 10:55 pm    Post subject: "Dead" doctrine ? Reply with quote

Can somebody tell me please what is "dead.txt" doctrine used for ? Just tried for an hour to check if it works and nothing worked, just realised that
"THEN" is not the same as "THEN {" Smile)) But still I'm not sure what this doctrine does, know only that it's called after platform is destroyed and shutdown command removes the wreck from the game. But it not removes in SC... It's called only once or few times and never reaches 300s time counter.

Second question, devenloping doctrines or database changes for DW is a pain because I have to reload the game after each change... In SC I even didn't have to reload the scenario, just launch next torpedo, and for DB changes the game reloades few times faster than DW. Have anyone figured if detection ranges for passive and active sonars are the same in SC and DW with same parameters, are generally similar (all works in the same way with minor changes to sonar model?) or different ? I wonder If I could make all doctrine and sensor development in SC and after all move it to DW ? Of course something may work differently in DW (like torp doctrines) but general sensor sensivity, noise levels and det ranges should be OK ? This would save me a lot of time and stress...
Back to top
View user's profile Send private message Send e-mail
xnonix



Joined: 14 Jul 2004
Posts: 32

PostPosted: Mon Apr 04, 2005 11:13 pm    Post subject: Reply with quote

hi amizaur...
lets see:

Code:
var expireTimer

; Set Timer
IF INIT THEN {
   expireTimer = ( TIME + 300 )
} ELSE {
   ; Remove
   IF TIME >= expireTimer THEN
      Shutdown
   ENDIF
} ENDIF


1. firstly it defines a variable that is the actual time + 300 seconds

2. then check if the actual time is equal to the expiretimer we defined in step 1.

3. if the condition is true the dead ship is removed.

*IMPORTANT*
i think this script starts when the platform hit the botton of the sea... in this point the timer start. So if you want to check, check when the ship is quiet at the botton.

**** EDIT ****
When you want to execute more than one command inside an if structure you must use {}
{
Command 1
Command 2
.
.
.
}

if is only 1 comand {} arent needed... this is like C language.


cheers,
--xnonix
Back to top
View user's profile Send private message
XabbaRus



Joined: 21 Sep 2001
Posts: 6949

PostPosted: Tue Apr 05, 2005 12:24 am    Post subject: Reply with quote

The thing is if the code stops torps homing on dead hulks ther's no point in stopping the game from removing the object.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Molon Labe



Joined: 16 Jun 2004
Posts: 1052
Location: Bloomington, IN, USA

PostPosted: Sat Apr 09, 2005 2:39 pm    Post subject: Reply with quote

submarine navigation hazard in shallow water. =)

Also, I think the removal of the objects prevent triggers concerning a kill on that object from firing.

For example, if you had a "kill all threats" trigger, which fired if the platform damage for all enemy platforms was 100%, and the first ship to die was removed before the last to die was killed, then the trigger's test will not detect the first ship and will not fire.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DW Mod Workshop All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group