• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Reforger Modding
  • /ARMD-94
Back
2

Player vs GM vehicle gas level spawning different with SCR_FuelManagerComponent

General
2

State

Assigned
Issue key
ARMD-94
Access
Public
Space
Arma Reforger
Project
Reforger Modding
Creator
sweetpotato
Created
Oct 16, 2026
Views
84
Platform
PC Steam
Game Version

Reforger v1.8.13

Using the provided modded script:


  1. Spawning a vehicle via a non-conflict vehicle depot makes the gas level be 30%, not 100% as scripted.

  2. Spawning a vehicle via GM makes the gas level be 100%.


Give the provided code a try with GM and player spawning vehicles (non-conflict vehicle depot) in WB's HQC_Arland.


Found via my mod Limited Fuel Depot 1.3.2, also tested with a skeleton WB project. Something changed in 1.8.13 because it worked fine before. Watch the attached video. No other scripts, overrides, settings, or ghosts...just this one script. Given the use of this widely used component, this should not be an issue that lingers.

Root cause: MmaKagon found SCR_GameModeCampaign.OnEntityRequested() was overwriting the logic below. SCR_FuelManagerComponenet/SCR_FuelNode logic should only be hit once, but it looks like player-spawned vehicles it's done twice?


modded class SRC_FuelNode
{    
    override void OnInit(IEntity owner)
    {
        super.OnInit(owner);    
        SCR_FuelManagerComponent FuelManager = SCR_FuelManagerComponent.Cast(owner.FindComponent(SCR_FuelManagerComponent));

        if (owner.IsInherited(Vehicle))
        {        
            float setVehLevel = 100.0; // does not matter ... it will always be 30%
            FuelManager.SetTotalFuelPercentage(setVehLevel / FuelManager.GetTotalMaxFuel());
            //SetFuel(setVehLevel); // or try it this way, same result
            Print("Vehicle fuel should have 100 gallons/liters (GM or non-Conflict vehicle depot), 30% otherwise.");
            
            return;
        }
    }
}
Modlist

None

Description

Vehicles ALWAYS spawn at 30% fuel when spawned by players in a non-Conflict vehicle depots using the provided modded script.

Attachment1 file · visible to everyone

ThirtyPercent.mp4

21 MB

Reactions

Activity

    about 2 months ago
  • sweetpotato
    created issueabout 2 months ago
  • sweetpotato
    changed title toPlayer vs GM vehicle spawning different with SCR_FuelManagerComponent overrideabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changed title toPlayer vs GM vehicle spawning different with SCR_FuelManagerComponentabout 2 months ago
  • sweetpotato
    changed title toPlayer vs GM vehicle gas level spawning different with SCR_FuelManagerComponentabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • sweetpotato
    changedabout 2 months ago
  • l909
    changed state to
    ASSIGNED
    about 2 months ago
  • about 1 month ago
  • sweetpotato
    added tagGeneralabout 1 month ago
  • about 1 month ago
  • sweetpotato
    changedabout 1 month ago
  • sweetpotatocommented(edited)
    about 1 month ago
    sweetpotatocommented(edited)
    about 1 month ago

    Root cause: MmaKagon found SCR_GameModeCampaign.OnEntityRequested() was overwriting the logic in the post. SCR_FuelManagerComponenet/SCR_FuelNode logic should only be hit once, but it looks like player-spawned vehicles it's done twice?

  • sweetpotato
    changedabout 1 month ago
  • 17 days ago
  • sweetpotato
    changed17 days ago
  • sweetpotato
    changed17 days ago
  • sweetpotato
    changed17 days ago
  • sweetpotato
    changed17 days ago

You are not signed in. Please sign in to see more details and to reply.

State

Assigned
Issue key
ARMD-94
Access
Public
Space
Arma Reforger
Project
Reforger Modding
Creator
sweetpotato
Created
Oct 16, 2026
Views
84