View previous topic :: View next topic |
Author |
Message |
SeaQueen
Joined: 23 Jun 2005 Posts: 358 Location: Washington, DC
|
Posted: Sat Mar 25, 2006 12:07 pm Post subject: Randomizing Target Speeds |
|
|
One of the best ways to frustrate an opponent's TMA is to vary one's speed. AIs don't seem to do this naturally, though. Do any of you guys have any good tricks for randomizing a computer controlled submarine's speed? I have some thoughts on how to do it, but I wondered if anyone else out there had an easier way than what I'm thinking of. |
|
Back to top |
|
|
LuftWolf
Joined: 09 May 2005 Posts: 1872 Location: Free New York
|
Posted: Sat Mar 25, 2006 2:02 pm Post subject: |
|
|
Can't you run a script to set the platform speed, which will then expire and refire depending on how often you want the speed/course to vary?
I've definately seen this in several missions I have downloaded, both successfully and unsuccessfully implimented... in unsuccessful cases, the platforms constantly speed up and slow down like they are all spastic. :huh:
Although this last problem may actually be from something else, but I assume it's from something the mission designer put in. :hmm: |
|
Back to top |
|
|
Fish
Joined: 21 Sep 2001 Posts: 2412 Location: Netherlands
|
Posted: Sat Mar 25, 2006 2:48 pm Post subject: |
|
|
Well, thats a easy one.
I did that for TMA training. Use the waypoints for speed/depth changes, works perfectly.
And yes, you can made multiply objects and place them in a dynamic group, no need for scrips.
Last edited by Fish on Sun Mar 26, 2006 8:23 am; edited 1 time in total |
|
Back to top |
|
|
MaHuJa
Joined: 10 Jan 2002 Posts: 447 Location: 59.96156N 11.02255E
|
Posted: Sat Mar 25, 2006 3:23 pm Post subject: |
|
|
LW, from what I hear, this mode of operation is the norm for submarines - perhaps one could make a doctrine for this? Perhaps the "custom" bits in the database can provide some data on the sub for this sort of purpose, telling the doctrine what sort of sub it is, and the doctrine acting accordingly?
Just how to make it still run on schedule, and reach the waypoints, though... that may be a challenge... |
|
Back to top |
|
|
SeaQueen
Joined: 23 Jun 2005 Posts: 358 Location: Washington, DC
|
Posted: Sat Mar 25, 2006 3:46 pm Post subject: |
|
|
LuftWolf wrote: | Can't you run a script to set the platform speed, which will then expire and refire depending on how often you want the speed/course to vary?
I've definately seen this in several missions I have downloaded, both successfully and unsuccessfully implimented... in unsuccessful cases, the platforms constantly speed up and slow down like they are all spastic. :huh:
Although this last problem may actually be from something else, but I assume it's from something the mission designer put in. :hmm: |
Yeah... but then it'd have to be deterministic wouldn't it? I want a scenario where *I* don't know what's going to happen even though I wrote it. |
|
Back to top |
|
|
LuftWolf
Joined: 09 May 2005 Posts: 1872 Location: Free New York
|
Posted: Sat Mar 25, 2006 3:48 pm Post subject: |
|
|
Ok, then you can make multiple version of the same object with different combinations of scripts associated with each one... if you make 10 of those as dynamic objects with only one allowed to spawn then I think that would be sufficiently random.
But, I am quite a novice at making missions... I have made over 100, and not one of them has a goal trigger or briefing, and all their names start with "z". |
|
Back to top |
|
|
Miika
Joined: 10 Oct 2005 Posts: 60 Location: Helsinki
|
Posted: Mon Mar 27, 2006 3:03 am Post subject: Random groups does it. |
|
|
I know it takes a lot of work, but in my missions I usually use about 6-10 different subs with different random starting locations, routes and behaviour to represent 1 submarine (or some other platform). In that way I can't predict the behaviour in advance. The point, though, is to create the first one to be complete with all goals, scripts, waypoints, etc. attached to it. You can then copy/paste the rest and modify the differences, after which you attach them to a random group with 1 being created. Check my missions to see what I mean.
I also typically change the speed and depth using waypoints, and I think they work... I might be wrong, though, but I use LwAmimod, and the hostiles usually behave hostile enough without any extra scripts.
Miika |
|
Back to top |
|
|
OKO
Joined: 10 Jan 2002 Posts: 468 Location: Solar system, mainly on earth
|
Posted: Mon Mar 27, 2006 8:29 pm Post subject: |
|
|
SeaQueen wrote: |
Yeah... but then it'd have to be deterministic wouldn't it? I want a scenario where *I* don't know what's going to happen even though I wrote it. |
take a look at this one =>
http://okof4.free.fr/missions/DW/MP4_Diesel_slick_v1.01.mu
position, speed and depth are randomized for the HAN and the XIA
I used scripts and not different platforms to avoid redondant work on triggers (there is 12 different possibilities here, easily done with scripts, near impossible with different platforms without using 12 times more platforms/triggers ... and a big headache).
Really saved lots of development time here. |
|
Back to top |
|
|
Tusipex
Joined: 10 Jan 2002 Posts: 252 Location: from Poland , in Wales . .
|
Posted: Wed Apr 26, 2006 12:11 am Post subject: |
|
|
For the Fishing boats , I ussually place Area waypoint , with speed changes . I use two points to make two different "fish hunt" areas with Ladder box, random box or perimeter box. And two other points to rise the speed between search areas. Of course you have to set the time for "perimeter", and all the rest of tactics.
You could mix it with above techniques. |
|
Back to top |
|
|
Fish
Joined: 21 Sep 2001 Posts: 2412 Location: Netherlands
|
Posted: Wed Apr 26, 2006 12:18 pm Post subject: |
|
|
Tusipex wrote: | For the Fishing boats , I ussually place Area waypoint , with speed changes . I use two points to make two different "fish hunt" areas with Ladder box, random box or perimeter box. And two other points to rise the speed between search areas. Of course you have to set the time for "perimeter", and all the rest of tactics.
You could mix it with above techniques. |
Adding tactics to waypoints doesn't work, at least not before 103. |
|
Back to top |
|
|
Bellman
Joined: 14 Feb 2004 Posts: 1724
|
Posted: Thu Apr 27, 2006 3:52 am Post subject: |
|
|
I use Miikas method which is laborious but effective. But with tactic changes Fishs statement 'at least before 1.03' is a teaser.
What new 'tactic' choice features are present in 1.03 ?
The Stock manual does not appear to have been updated from the original release so what other 'new features,'
if any, have been quietly introduced ? :hmm: |
|
Back to top |
|
|
Fish
Joined: 21 Sep 2001 Posts: 2412 Location: Netherlands
|
Posted: Thu Apr 27, 2006 12:50 pm Post subject: |
|
|
Bellman wrote: | I use Miikas method which is laborious but effective. But with tactic changes Fishs statement 'at least before 1.03' is a teaser.
What new 'tactic' choice features are present in 1.03 ?
The Stock manual does not appear to have been updated from the original release so what other 'new features,'
if any, have been quietly introduced ? :hmm: |
No features as far as I know, but I didn't try if it was resolved in 103. |
|
Back to top |
|
|
|