Fuel code
Posted: 2018-11-07 20:14
Is there a possibility add fuel code to game engine for vehicles?
Code: Select all
rem - Engine Heat/Fuel Best Settings
rem ------------------------------------------------------
ObjectTemplate.HeatIncrement 0.0006
ObjectTemplate.coolingFactor 0.000415
ObjectTemplate.InverseHeatBar 1
rem ObjectTemplate.SetHeatBarType B
rem ObjectTemplate.accumulate 1
rem ------------------------------------------------------
rem - Engine Heat/Fuel Testing
rem ------------------------------------------------------
ObjectTemplate.HeatIncrement 0.0003
ObjectTemplate.coolingFactor 0
= 1:44 / 104 secs
ObjectTemplate.HeatIncrement 0.0001
ObjectTemplate.coolingFactor 0
= 5:08 / 308 secs
~ 0.0308 / sec
ObjectTemplate.HeatIncrement 0.0002
ObjectTemplate.coolingFactor 0.0001
= 5:07 / 307 secs
ObjectTemplate.HeatIncrement 0.0004
ObjectTemplate.coolingFactor 0.0002
= 2:23 / 143 secs @ full throttle
= < 20mins @ 33km/h
ObjectTemplate.HeatIncrement 0.0004
ObjectTemplate.coolingFactor 0.00025
= < 30mins @ 33km/h
ObjectTemplate.HeatIncrement 0.004
ObjectTemplate.coolingFactor 0.0025
= ~ 2mins @ 33km/h
ObjectTemplate.HeatIncrement 0.004
ObjectTemplate.coolingFactor 0.003
= > 20mins @33km/h
= > 5mins @ 40km/h
= ~ 35secs @ 50km/h
ObjectTemplate.HeatIncrement 0.004
ObjectTemplate.coolingFactor 0.0027
= ~ 1:15 @ 40km/h
= ~ 2mins @ 38km/h
= ~ 2:30 @ 37km/h
= ~ 3:45 @ 36km/h
= ~ 3:30 @ 35km/h
= ~ 9:10 @ 34km/h
= < 45mins @33km/h
ObjectTemplate.HeatIncrement 0.04
ObjectTemplate.coolingFactor 0.028
= > 12mins @ 33km/h
= > 5mins @ 34km/h
ObjectTemplate.HeatIncrement 0.04
ObjectTemplate.coolingFactor 0.0275
= ~ 20secs @ 36km/h
= ~ 50secs @ 35km/h
= ~ 4mins @ 34km/h
= < 18mins @33km/h
ObjectTemplate.HeatIncrement 0.0004
ObjectTemplate.coolingFactor 0.000275
= ~ 3:24 @ 68.64km/h (full throttle)
ObjectTemplate.HeatIncrement 0.0008
ObjectTemplate.coolingFactor 0.00055
= ~ 1:42 @ 68.64km/h (full throttle)
= < 45mins @33km/h
= < 1hr 37mins @34km/h
= drains at 35km/h, unsure about 34km/h
ObjectTemplate.HeatIncrement 0.0006
ObjectTemplate.coolingFactor 0.000413
= ~ 2:27 @ 68.64km/h (full throttle)
ObjectTemplate.HeatIncrement 0.0006
ObjectTemplate.coolingFactor 0.000415
= ~ 2:30 @ 68.64km/h (full throttle)
Code: Select all
ObjectTemplate.heatAddWhenFire 0.0253
ObjectTemplate.coolDownPerSec 0.3333
ObjectTemplate.overheatPenalty 4Code: Select all
ObjectTemplate.heatAddWhenFire 0.0253
ObjectTemplate.coolDownPerSec 0.3333
ObjectTemplate.overheatPenalty 4Intresting, may have to look into that when I revisit the Frigate's code.Arab wrote:What I find out with overheat is that if it includes the overheat code via .con, the overheat cooldown will work properly.
But if the overheat code is defined in the .tweak, it won't cooldown.
Going into more detail from the previous post, it's obviously defined in overheat.con which contains arguments and defined types per projectile type, diameter, firerate etc and referenced using the code structure below for all Vehicle GenericFirearms/Weapons like cannons and therefore makes the overheat penalty cooldown work properly for handheld weapons too:Rhino wrote:Sorry lakinen I'm finding it hard to understand your posts but I take it you mean to display the heat bar, you just have a dummy weapon with the heat bar with the same heating and cooling settings as the engine and have that controlled by the throttle as well? Interesting idea, but does mean it only works if the driver has only one weapon, otherwise, you will lose the heat bar when switching weapons and also while switching weapons, the heat bar won't be running in the bg for that other weapon when you switch back to it.
Intresting, may have to look into that when I revisit the Frigate's code.
Code: Select all
include ../../../weapons/common/overheat.con "shell" "25mm" "1" "200"Code: Select all
ObjectTemplate.heatAddWhenFire 0.0253
ObjectTemplate.coolDownPerSec 0.3333
ObjectTemplate.overheatPenalty 4I did not put that code inside,because that's how I see it,ratio of the bullet, grananates in relation to the speed of the ejection for heatbarArab wrote:Kinda how that works but I guess it's down to .con being suited more for the overheat engine component?Code: Select all
include ../../../weapons/common/overheat.con "shell" "25mm" "1" "200"
Code: Select all
heatAddWhenFire
inheritHeatFromPrimary
killHeatSeekingMissile
inverseHeatBar
heatBarType
setHeatBarType
getHeatBarType
weaponHud.overheatSound
ObjectTemplate.overheatPenalty
ObjectTemplate.heatAddWhenFire
ObjectTemplate.inheritHeatFromPrimary
ObjectTemplate.InverseHeatBar 1
ObjectTemplate.setHeatBarType B
ObjectTemplate.setHeatBarType G
ObjectTemplate.weaponHud.overheatSound
SecondaryHeatColorAlpha
PrimaryHeatColorAlpha
PrimaryHeatValue
PrimaryHeatShow
SecondaryHeatValue
heatIncrement
Code: Select all
rem -------------------------------------
ObjectTemplate.projectileTemplate horn_projectile
ObjectTemplate.keepProjectiles 5
ObjectTemplate.itemIndex 1
ObjectTemplate.heatAddWhenFire 0.0253
ObjectTemplate.coolDownPerSec 0.3333
ObjectTemplate.overheatPenalty 4