Цитата Сообщение от adonys Посмотреть сообщение
I'm still waiting for that code (only if you had something different in your mind than the way I've did it in the above code), please.
no, i meant that we don't make such a function at all . Parts damages just on some conditions like overheat, bullet hit and so on. Your damage code looks good enough, i think it should work.
Цитата Сообщение от adonys Посмотреть сообщение
Yeah, I knew that, but I couldn't make it work (I've tried with the AiAircraft.hitLimb(part.LimbNames.WingL0); and AiAircraft.cutLimb(part.LimbNames.WingL0);, but I couldn't managed it to work). Can you please tell my how?
part can be cut away if it presents at this aircraft AiAircraft.cutLimb(part.LimbNames.WingR2) for example works try it


Цитата Сообщение от adonys Посмотреть сообщение
Question: Can you explain this
Код:
int personIndex = GamePlay.gpPlayer().PlacePrimary();
                    if (personIndex < 0)
                        personIndex = GamePlay.gpPlayer().PlaceSecondary();
                    AiPerson person = (GamePlay.gpPlayer().Place() as AiCart).Person(personIndex);
                    if (person.Health <= 0)
                        return;
                    if (Campaign != null) {
                        if (Campaign.battleSuccess != null)
                            return;
                        Campaign.battleSuccess = true;
                    }
                    GamePlay.gpHUDLogCenter("MISSION COMPLETE");
piece of code, please? it makes no real sense to me. IT's from the official gb campain and can be found in several missions at the end of the inherited OnActorDead function (for example in the "Stuka Intercept.cs" script). It looks like is checking to see if the player is still alive.. yet.. why check a secondary place (I assume PlaceSecondary it's a second seat, like the gunner in a Stuka), as the player is in a single seated aircraft, and why the as AiCart part, instead as AiAircraft? Please have mercy and try to enlighten me
That code was written as pattern i think (i'm not author )- for any type of player controlled unit - single or multicrew, and used in different missions. AiCart - is base class for units that contains "peoples" so it is used instead AiAIrcraft to get Person and its health. And yes, this code checks if the "player" still alive


Цитата Сообщение от adonys Посмотреть сообщение
Regarding the "CustomSayToAirgroup" function, we need to can put text in mouth of existent actors (AiAircraft or AiCart), or general (for control tower/radar/etc. speaking).
Yes, we discuss it same way.

Цитата Сообщение от adonys Посмотреть сообщение
A list of these characteristics would be wonderful, from where can I get the members of the getParameter class, please?
part.ParameterTypes is what you need

Цитата Сообщение от adonys Посмотреть сообщение
Thank you again for everything, you've been very kind, sir
Sorry i was very busy today, and has no time to compile compaign dll - i leave for two weeks vacation and should finish a lot of things, sorry again. By the way you can use C#compiler that was installed when you install Framework4 it is called "csc" and can be found in "WINDOWS\Microsoft.NET\Framework\v4.0.30319" folder .

Цитата Сообщение от Geniok Посмотреть сообщение
Такой вопрос назрел:
Как из кода подключится к тому или иному серверу?
Поясню вопрос, как в настоящий момент реализована функция подключения например на странице выбора серверов.
Пробовал функцию void connectNew(int channel, string address, int port), но что-то не хочет работать.
Ну и сразу вдогонку вопрос, за что отвечает параметр "channel" в ней?
channel - это номер канала по которому связывается сервер с игроком, если не ошибаюсь - у каждого игрока свой канал. А вот как связаться - увы не знаю, сейчас уже спросить не могу