![]() |
|
|
|
#1
|
|||
|
|||
|
Quote:
As for the list and array business, I only want to send the message to blue players, so I need to create an array that contains only the players on blue team. The problem is that I don't know how many blue players there are beforehand and when you create an array you can't resize it. That's where the list comes in. The list can be dynamically resized. When I'm ready to send the message, I can use the ToArray() method of the list to get an array that contains only the blue players. |
|
#2
|
|||
|
|||
|
This has now been fixed. I also placed static aircraft in the small hangers so 110s shouldn't spawn in them and blow up. The downloads have been updated.
|
|
#3
|
|||
|
|||
|
Great news! Thanks a lot. It is worth mentioning in the CoD multiplayer section.
The original code for actors destruction comes from oreva at sukhoi.ru forums btw and then was improved by ZaltisZ from 1C forums. Maybe also worth mentioning. |
|
#4
|
|||
|
|||
|
Actually ZaltysZ corrected oreva's code to be more friendly to single-engined AC. Sorry, did not notice earlier.
Code:
int iNumOfEngines = (aircraft.Group() as AiAirGroup).aircraftEnginesNum();
for (int i = 0; i < iNumOfEngines; i++)
{
aircraft.hitNamed((part.NamedDamageTypes)Enum.Parse(typeof(part.NamedDamageTypes), "Eng" + i.ToString() + "TotalFailure"));
}
Sorry for multiple posts. Do you plan to develop the mission further, say including a movable frontline and having ground forces to actually push an enemy to the channel waters? Dunkerque tragedy is a remarkable event in history and deserves further development imho. I am slowly working (mostly studying C# actually) )) with this script to have movable frontlines in Calais area. At this point there is no generator to generate waypoints for ground groups and all submissions should be created manually. In future we could combine our submissions into one mission covering half of existing France map if we use the same script and the same submission naming convention. Last edited by Ataros; 06-06-2011 at 08:46 AM. |
|
#5
|
|||
|
|||
|
Quote:
It seems like as soon as I fix one problem, another comes up. In the future though, for sure we'll see. |
|
#6
|
|||
|
|||
|
Quote:
BTW with your level of C# knowledge I would target not less then writing a waypoints generator for tank groups and supply convoys |
|
#7
|
|||
|
|||
|
~S~
Can`t get it work ......... as soon as I start server, everything looks fine, I just cant select army... any advise?
__________________
![]() Asus P6T V2 Deluxe, I7 930, 3x2 GB RAM XMS3 Corsair1333 Mhz, Nvidia Leadtek GTX 470, Acer 1260p screen projector, Track IR 4 OS ver5, Saitek Pro Flight Rudder, Saitek X52, Win 7 x64 ultimate |
|
#8
|
|||
|
|||
|
Quote:
1) You're playing in multiplayer mode instead of single player. 2) You're starting opDynamo.mis and not any of the other .mis files. 3) Make sure the game is extracted to the correct directory. It must look like this: missions/Multi/Dogfight/OpDynamo/opDynamo.mis |
![]() |
|
|