Page MenuHomeFeedback Tracker

CharacterCameraADS Variable Name Conflict "cameraData"
Closed, ResolvedPublic

Description

scripts\Game\Character\Cameras\ADS\CharacterCameraADS.c

Some of the functions in the CharacterCameraADS class have parameters with the same variable names as a variable in the CharacterCameraADS class.

	/*!
		Stable ADS camera solver that used RightHandProp as camera root.
	*/
	protected void SolveNewMethod(ADSCameraData cameraData, out ScriptedCameraItemResult pOutResult, float pDt, bool allowInterpolation)
	{
	ref ADSCameraData cameraData = new ADSCameraData();

This will cause errors when using override on the functions and causes errors when modding the functions

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  1. Create overrides for all the SolveCamera** functions.
  2. The overrides require keeping variable names for the parameters
  3. The mod will show as errors because variable name conflict (which already exists without modding)
  4. functions break

Event Timeline

Geez closed this task as Resolved.Dec 5 2022, 10:32 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Thank you for the report GLutenFreeVapes.
The problem has been resolved internally and the fix will appear in one of the future updates.
Regards,
Geez