-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFuel.json
More file actions
44 lines (44 loc) · 2.92 KB
/
Copy pathFuel.json
File metadata and controls
44 lines (44 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[
{
"version": "1.1.1",
"changelogs": [
"- Server-authoritative fuel: a StateBag handler now tracks the authorized fuel value per vehicle and rolls back any illegitimate increase (prevents clients from setting arbitrary fuel levels)",
"- GetVehicleFuel now falls back to 0.0 instead of 50.0 so a missing fuel state can no longer grant free fuel",
"- Added serverside rate limiting (500ms) on refillCan, payFuelPrice and updateFuelCan",
"- Petrolcan buy/refill now verifies serverside that the player is at a known fuel station (blocks spoofed coords and remote triggering)",
"- Per-vehicle-type fueling distance via Config.MaxFuelingDistance (default/heli/plane) + serverside GetMaxFuelingDistance",
"- New IsPlayerNearFuelStation check with Config.MaxStationDistance and Config.FuelStationZoneDistance",
"- Translation fallback: missing keys fall back to English, then the raw key, instead of erroring",
"- Config.Debug now defaults to false",
"- Money handling in petrolcan/refuel events unified on PayPrice",
"- Adjusted the wrong-fuel engine failure threshold (triggers below 500 engine health)",
"- Relicensed the resource to LGPL-3.0-or-later"
]
},
{
"version": "1.1.0",
"changelogs": [
"- Server now calculates fuel/petrolcan prices serverside instead of trusting client-sent values (prevents free refueling exploit)",
"- Validate added fuel against current/max fuel and petrolcan durability",
"- Fix dead 'tank full' check (fuelAmount >= maxFuel)",
"- Translate the English locale block",
"- Add missing translation key petrolcan_not_equipped",
"- IsVehicle* now return proper booleans instead of array indices",
"- Apply `Config.DefaultFuelType` fallback for unlisted vehicles",
"- Guard against nil compare in SetEngineFailure",
"- Add serverside proximity check (IsPlayerNearVehicle) to payFuelPrice and updateFuelCan so vehicles can only be fueled when the player is actually near them (prevents spoofed remote/foreign vehicle fueling)",
"- Split fuel consumption config: per-vehicle fPetrolConsumptionRate now uses Config.PetrolConsumptionRate (2.0) instead of the global SetFuelConsumptionRateMultiplier value",
"- Validate and clamp replicated fuel/maxFuel statebag values clientside",
"- Stop the fueling loop correctly when the player runs out of money",
"- Add re-entry guard to CalculateVehicleFuel to prevent duplicate consumption loops on the same vehicle",
"- Round petrolcan durability to avoid float drift",
"- Add `Config.PetrolConsumptionRate` and `Config.MaxFuelingDistance`"
]
},
{
"version": "1.0.0",
"changelogs": [
"- Release Version"
]
}
]