Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 05-03-2012, 11:57 PM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default Counting planes in an airgroup

I've been experimenting with persisting squadrons during a battle. ie:
1. count squadron plane numbers at battle start.
2. Count squadron numbers when they land.
3. Destroying & respawning squadron for next mission with just their remaining numbers of aircraft.

I'm using the code below to test squadron/staffel numbers on aircraft takeoff & landing, but it's giving odd results.
(1) The console reports the correct plane total & alive numbers as each aircraft in a squadron/staffel takes off.
(2) The console always reports 1, 1, 0 when each aircraft in a squadron/staffel lands. ie. 1 total aircraft in group; 1 alive; 0 dead. irrespective of how many group aircraft are actually alive or dead at the time.
(3) The console always reports no killed or destroyed aircraft in any group, even when squadron/staffel aircraft are destroyed during a mission.

My question is, is this a game bug? or have I got the code screwy?

code removed by author
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash.

Get the latest COD Team Fusion patch info HERE

Last edited by salmo; 10-18-2012 at 09:25 AM.
Reply With Quote
  #2  
Old 05-04-2012, 04:32 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Its a bug, sometimes the Airgroups are "splittering" into different parts.

btw. you can also use:
(.. as AiAirGroup).InitNOfAirc; //start number
(.. as AiAirGroup).NOfAirc; //current number
(.. as AiAirGroup).DiedAircrafts; // number of destroyed
but these also work sometimes not correct at the moment, maybe the next patch fix the problem.
Reply With Quote
  #3  
Old 05-04-2012, 07:31 AM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default

Thanks once again Kodiak. That stuffs up anything you want to do with peristent squadron states. I hope the patch fixes this, but I doubt it somehow.
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash.

Get the latest COD Team Fusion patch info HERE
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. The time now is 05:06 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.