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 > FMB, Mission & Campaign builder Discussions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-16-2012, 09:46 AM
hc_wolf hc_wolf is offline
Approved Member
 
Join Date: Jul 2010
Posts: 439
Default Refuel Scripting research

Hi guys, So the other day i decided to look into RRR Refuel, rearm and Repair.

I think this is looking more possible I have located some details about the plane and Fuel.

So I will need some help with working this into script soon I think as I am a little busy with stupid work....I love my work and pays well but is restrictis my flying time

OK so what do I know or what have I found???

Well lets look at two areas.

First the SpitfireMKI Flight model details
Second the aircraft details on the object aircraft


Spitfire Mk.I Flightmodel

//below is the start settings for the plane on spawn "Pneumatics". We could call this up to simulate refuel. Would reset the plane to spawn status but change the 'Empty' to 'Full'

Pneumatics Source Engine0 Pressure 300 lbsqin PrimaryContainer 4 litre Starts Open, Full SecondaryContainer 4 litre Starts Closed, Empty

Below Using this we should be able to assign a fuel % which is usually done when you are in Loadout and slide the fuel bar from 0-100%

WPF.Fuel [%]:
Fuel [%]:
WPF.Fuel weight [kg]:


So the call in the .cs file could be something like.


if [SpitfireMkI]
types Aircraft Stationary
class part.SpitfireMkI
type Fighter
FM FlightModels.SpitfireMkI

Pneumatics Source Engine0 Pressure 300 lbsqin PrimaryContainer 4 litre Starts Open, Full SecondaryContainer 4 litre Starts Closed, Full

or
WPF.Fuel [85%]:





I think we are getting a little closer. Any assistance on this?
__________________
__________________
Win7, 64bit Ultra
Asus P8P67Pro MB
Intel i7-2600K
Coursair 16GB (4x 4GB), DDR3-1600MHz
Gainward Nvidia 580GTX 3GB DDR5
850-Watt Modular Power Supply
WIN7 and COD on Gskill SSD 240GB
40" Panasonic LCD
TrackIR5 +
Thrustmaster Warthog stick, throttle & pedals

Last edited by hc_wolf; 02-16-2012 at 10:40 AM. Reason: update
Reply With Quote
 


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 10:01 PM.


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