View Single Post
Old 08-05-22, 02:18 PM   #86
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 873
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by propbeanie View Post
What CrewRating do you have the planes or AirBase set to kapuhy?
Default setting (that I used in video above) is Veteran. I've tested it again with Elite today, with mixed results:

Try 1: 1 plane crashed (Liberator), 1 minute to kill U-Boat
Try 2: 2 planes ran into each other and fell on U-Boat, killing it
Try 3: 1 plane crashed (Liberator), 2 minutes to kill U-Boat

So, mostly better in my first test but very inconsistent. I don't know what to make of it.

Also, some planes (Liberator for example) crash a lot more than others.

Quote:
Originally Posted by Jeff-Groves View Post
One would need to release the scripts for others to check.
Just saying something means nothing so gives us nothing to work with.
I'm also wondering about any other attempts to do such things.
I don't recall details of HOW one did thimgs.
I agree and the only reason I didn't simply attach files to this thread for anyone to test is I'm not sure I can, copyright-wise - after all, I just changed a bunch of lines in TDW's scripts, wouldn't uploading modified files on forum require his permission first?

That said, I'm pretty sure I can post exact changes I made. In Airplane.aix there's a strategy "BombCoursePopUp". I replaced it with this:

 
strategy BombCourseStrafe(Plane)
{
precond
{
Plane:GetContactRelDistOnWater() <= 3500 and Ship:GetContactSpeed() > 5
}
action
{
Plane:Strafe(1.0);
}
}

strategy BombCourseSlow(Plane)
{
precond
{
Plane:GetContactRelDistOnWater() <= 3500 and Ship:GetContactSpeed() <= 5
}
action
{
Plane:SetCourseBombs();
}
}


By the way, I have no idea what does the number in brackets after Strafe stand for. Tried various values here and plane behaviour seemed similar.

Quote:
Originally Posted by Jeff-Groves View Post
Just a quick look at the Scripting for AI Units?
I can't find any reason one could not do Scripts for the Land Units.
Even scanning the base files in SH5 leads me to believe it can be done.
Then it is certainly worth trying
kapuhy is offline   Reply With Quote