![]() |
|
|||||||
| IL-2 Sturmovik: Cliffs of Dover Latest instalment in the acclaimed IL-2 Sturmovik series from award-winning developer Maddox Games. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Quote:
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. |
|
#2
|
|||
|
|||
|
Quote:
.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. |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
Thx to god i already made it through the A-license at JFS..
|
![]() |
|
|