Skip to content

Fix APC/BIGAPC wheels when player wasted equivalent cop car in previous race#428

Open
b-kurczynski wants to merge 1 commit into
dethrace-labs:mainfrom
b-kurczynski:fix_apc_wheels
Open

Fix APC/BIGAPC wheels when player wasted equivalent cop car in previous race#428
b-kurczynski wants to merge 1 commit into
dethrace-labs:mainfrom
b-kurczynski:fix_apc_wheels

Conversation

@b-kurczynski

@b-kurczynski b-kurczynski commented Dec 16, 2024

Copy link
Copy Markdown
Contributor

This is a fix to a bug which existed in original game. If player wasted a cop car driving a cop car then in next race player's APC wheels do not rotate nor turn in any direction. The same applies in case Suppressor is wasted by Suppressor.

The fix works by reloading player's car when race is loading in case of APC or BIGAPC is being driven. The reload routine is a fork of >>this<< part.

@b-kurczynski
b-kurczynski force-pushed the fix_apc_wheels branch 2 times, most recently from b17e2a7 to 65d3a92 Compare January 7, 2025 19:00
// Player's APC/BIGAPC wheels got stuck if the equivalent cop car was wasted in previous race
if(strcmp(gProgram_state.car_name, "APC.TXT") == 0 ||
strcmp(gProgram_state.car_name, "BIGAPC.TXT") == 0) {
AboutToLoadFirstCar();

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is required, or the calls to switch resolution, or SetCarStorageTexturingLevel.

could you try without these?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my first approach but it didn't look good
image

The HUD is completely misaligned and cockpit view is in lowres even when hires is enabled. After that I decided to repeat complete "science & magic" that happens on regular car change and that started to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants