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

IL-2 Sturmovik: Cliffs of Dover Latest instalment in the acclaimed IL-2 Sturmovik series from award-winning developer Maddox Games.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-27-2011, 08:40 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Quote:
CoD possible Damage Types are:
Great you have found this out. I need some help with a script to destroy bots in online missions.

There are 2 issues with online currently:

1) when a player exits a plane AI takes control resulting in too many AI flying around at a server. There is a script to destroy AI after player exit http://forum.1cpublishing.eu/showpos...5&postcount=16
the problem with this script is that if a player exits while under attack his plane would disappear making the attacker very disappointed. Discussion is here http://forum.1cpublishing.eu/showthr...t=21518&page=3

Possible solution: damage an aircraft upon player exit to make it fall down and destroy it later in 10 minutes after it hits the ground.

2) When AI bombers are scripted to reappear on a server as time goes by the server can become very crowded with AI bombers making it unplayable. Mission example http://forum.1cpublishing.eu/showpos...8&postcount=24

The solution would be to damage AI bombers one by one (with 1-2 min intervals) in 15-25 minutes after their last waypoint. OnTaskCompleted()? Then when they fall down destroy them in 10 minutes.

Ideally damage applied to aircraft should be different (say 10 different types of damage) but deadly enough to make aircraft fall down in 1-3 minutes.

If you can make such a script it would be very useful for community I think. Anyway any advice on how to do it would be appreciated as I am not familiar with C#

You are welcome to join our discussion here if you are interested http://forum.1cpublishing.eu/showthr...t=21518&page=4

Last edited by Ataros; 04-27-2011 at 08:44 AM.
Reply With Quote
  #2  
Old 04-27-2011, 10:26 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Quote:
Originally Posted by Ataros View Post
Great you have found this out. I need some help with a script to destroy bots in online missions.

There are 2 issues with online currently:

1) when a player exits a plane AI takes control resulting in too many AI flying around at a server. There is a script to destroy AI after player exit http://forum.1cpublishing.eu/showpos...5&postcount=16
the problem with this script is that if a player exits while under attack his plane would disappear making the attacker very disappointed. Discussion is here http://forum.1cpublishing.eu/showthr...t=21518&page=3

Possible solution: damage an aircraft upon player exit to make it fall down and destroy it later in 10 minutes after it hits the ground.

2) When AI bombers are scripted to reappear on a server as time goes by the server can become very crowded with AI bombers making it unplayable. Mission example http://forum.1cpublishing.eu/showpos...8&postcount=24

The solution would be to damage AI bombers one by one (with 1-2 min intervals) in 15-25 minutes after their last waypoint. OnTaskCompleted()? Then when they fall down destroy them in 10 minutes.

Ideally damage applied to aircraft should be different (say 10 different types of damage) but deadly enough to make aircraft fall down in 1-3 minutes.

If you can make such a script it would be very useful for community I think. Anyway any advice on how to do it would be appreciated as I am not familiar with C#

You are welcome to join our discussion here if you are interested http://forum.1cpublishing.eu/showthr...t=21518&page=4
The easiest way to get a plane down would be to disable its engine and elevator:
.hitNamed(part.NamedDamageTypes.ControlsElevatorDi sabled);
.hitNamed(part.NamedDamageTypes.Eng0TotalFailure);
//for 2mots
.hitNamed(part.NamedDamageTypes.Eng1TotalFailure);
//then wait 10min
Timeout(600.0, () => {
.Destroy();
});

An Alternative for destroying would be to give the plane a new waypoint (Airport) and Action (landing).

At the moment i ve not the possibility to test the script, i will take a look at it, later.
Reply With Quote
  #3  
Old 09-09-2011, 12:26 AM
Mington Mington is offline
Approved Member
 
Join Date: Apr 2008
Posts: 29
Default

I must say we are greatly in your debt Kodiak (and Ataros of course!), especially for the heads-up to Microsoft Visual C# 2010 Express software that you told us about earlier in the thread, all very interesting

Your damage script worked perfectly Kodiak when I inserted it into a training mission - in the main map not the Islands map. I landed and got the Excellent message. Scripting seems robust, good work mate

Ming
Reply With Quote
  #4  
Old 09-09-2011, 09:22 AM
Allons! Allons! is offline
Approved Member
 
Join Date: Jan 2011
Location: Germany
Posts: 196
Default

Thx to god i already made it through the A-license at JFS..
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 07:52 PM.


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