Author Topic: What determines how powerful an engine is?  (Read 265 times)

Offline DeWolf

  • Survivor
  • ***
  • Posts: 1000
  • STAY AWAY FROM MY PRETZELS
    • View Profile
What determines how powerful an engine is?
« on: August 21, 2017, 10:45:53 PM »
Electric motors have a power stat and an epower stat, which I presume mean how powerful said motor is and how much electricity it uses respectively. However as far as I have seen in the jsons combustion engines only have an epower stat so I am wondering what determines how powerful an engine is? Also for the engine items I have seen a stat called displacement can someone tell me what that is if you can?

Offline Vollinger

  • Zombie Food
  • *
  • Posts: 9
    • View Profile
Re: What determines how powerful an engine is?
« Reply #1 on: September 01, 2017, 11:09:18 AM »
https://github.com/CleverRaven/Cataclysm-DDA/blob/44310f6bba6e3b60eb3ecbd58859a72e1219ec52/src/vehicle.cpp#L1357

seems like 'displacement' is pretty much 'power' stat for combustion engines, with some penalties for damage or engine faults

Offline DeWolf

  • Survivor
  • ***
  • Posts: 1000
  • STAY AWAY FROM MY PRETZELS
    • View Profile
Re: What determines how powerful an engine is?
« Reply #2 on: September 01, 2017, 05:41:12 PM »
https://github.com/CleverRaven/Cataclysm-DDA/blob/44310f6bba6e3b60eb3ecbd58859a72e1219ec52/src/vehicle.cpp#L1357

seems like 'displacement' is pretty much 'power' stat for combustion engines, with some penalties for damage or engine faults
Welp I should have been doing this by now but I guess it's time for a bit of experimenting.

Offline Coolthulhu

  • Contributor
  • Survivor
  • ****
  • Posts: 3839
    • View Profile
Re: What determines how powerful an engine is?
« Reply #3 on: September 02, 2017, 08:02:26 AM »
It's just the displacement.
It determines power, fuel usage, minimum fuel usage (huge engines waste more fuel when idle) and noise.
Power of an engine is equal to its displacement. Fuel usage scales linearly with load on the engine (ie. two engines doing same work will use same amount of fuel energy).

Offline DeWolf

  • Survivor
  • ***
  • Posts: 1000
  • STAY AWAY FROM MY PRETZELS
    • View Profile
Re: What determines how powerful an engine is?
« Reply #4 on: September 02, 2017, 08:28:24 AM »
It's just the displacement.
It determines power, fuel usage, minimum fuel usage (huge engines waste more fuel when idle) and noise.
Power of an engine is equal to its displacement. Fuel usage scales linearly with load on the engine (ie. two engines doing same work will use same amount of fuel energy).
Thank you for the more indef explanaition.