Page MenuHomeFeedback Tracker

ActionRepairCarChassis bug
Confirmed Internally, NormalPublic

Description

In the chassis repair check method there is an inaccuracy in the condition that allows repairing the V3S fabric using planks and vice versa in the event that both areas are damaged

Problematic code:
https://github.com/BohemiaInteractive/DayZ-Script-Diff/blob/5c24274897ee8506a4000c1ec810e07aecbe676b/scripts/4_world/classes/useractionscomponent/actions/continuous/actionrepaircarchassis.c#L85

//Determine if using a "Special" item for repairing
WoodenPlank plank = WoodenPlank.Cast(item);
Fabric tarp = Fabric.Cast(item);
						
//Prevent planks and tarp from repairing non related areas
if ((tarp || plank) && (damageZone != "BackWood" && damageZone != "BackTarp"))
    return false;

I fixed this problem like this:

if (WoodenPlank.Cast(item) && damageZone != "BackWood")
  return false;

if (Fabric.Cast(item) && damageZone != "BackTarp")
  return false;

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Scripting

Event Timeline

Geez changed the task status from New to Confirmed Internally.Jul 15 2024, 3:20 PM