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 05-11-2011, 12:02 PM
xnomad xnomad is offline
Approved Member
 
Join Date: Jul 2010
Location: Sydney, Australia
Posts: 265
Default

Pardon my ignorance in all things C# or perhaps for stating something that has already been tried but if you have a script that destroys aircraft can't you use a sleep command to pause execution? e.g.

Thread.Sleep(6000);

I'm not a software developer and get by with most of my server scripts written in 'lowly' bash so I could be completely wrong here with the above command.

A minutes delay to allow the pilot-less plane to crash and burn would be cool though and would clean up the server too.
Reply With Quote
  #2  
Old 05-11-2011, 12:14 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

At both Repka servers we run a script that first disables AI engine, fuel pump and controls and destroys the aircraft only in 5 minutes when it is already down. Game engine also removes these damaged aircraft from an airfield very quickly if a player exits an aircraft at an airfield before takeoff.

http://forum.1cpublishing.eu/showthr...=21518&page=10

Last edited by Ataros; 05-11-2011 at 12:16 PM.
Reply With Quote
  #3  
Old 05-11-2011, 12:15 PM
ATAG_Bliss ATAG_Bliss is offline
Approved Member
 
Join Date: Mar 2010
Posts: 1,156
Default

Yeah, we've tried that. The scripts seem to behave differently on different beta patches. Sometimes they work, sometimes they don't work at all. Tried all sorts of delays, but with the patch we are running right now (the most stable for the server) they simply don't work right. Ataros has been building up quite an impressive list of scripts in the MP thread, they just don't seem to work in the build we are using right now.
__________________

ATAG Forums + Stats
Reply With Quote
  #4  
Old 05-11-2011, 12:20 PM
ZaltysZ's Avatar
ZaltysZ ZaltysZ is offline
Approved Member
 
Join Date: Sep 2008
Location: Lithuania
Posts: 426
Default

Quote:
Originally Posted by xnomad View Post
Pardon my ignorance in all things C# or perhaps for stating something that has already been tried but if you have a script that destroys aircraft can't you use a sleep command to pause execution?
.
Yes, it was.

1) You make assumption that it will crash. Depending on trim it can fly straight or do loops for a while.

2) Plane can be abandoned not only by disconnecting, but by choosing other plane too. Putting timer on plane on the ground, can lead to situation in which 20 planes are sitting in the base and waiting for removal. And no, checking if it is in the air, does not work correctly now.
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:38 AM.


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