Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ProcessLevitate #196

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

madebr
Copy link
Collaborator

@madebr madebr commented Sep 30, 2022

Fixes #192

@dethrace-labs
Copy link
Owner

dethrace-labs commented Oct 14, 2022

I see some flickering of the headsup "CAR ADDED TO CHANGE CAR LIST" text when the stolen vehicle is levitating, not sure why. I'll merge this and add a separate issue 👍

@dethrace-labs dethrace-labs merged commit 6061fd1 into dethrace-labs:main Oct 14, 2022
@madebr madebr deleted the implement-ProcessLevitate branch October 14, 2022 12:58
pOpponent_spec->levitate_data.time_started = gTime_stamp_for_this_munging;
pOpponent_spec->levitate_data.initial_y = pOpponent_spec->car_spec->car_master_actor->t.t.translate.t.v[1];
if (pOpponent_spec->car_spec->has_been_stolen) {
NewTextHeadupSlot(4, 250, 2500, -4, GetMiscString(170));
Copy link
Collaborator Author

@madebr madebr Oct 14, 2022

Choose a reason for hiding this comment

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

It's flickering because this line says to "fliker for 2500ms at 250Hz"
Instead, it should be (untested):

NewTextHeadupSlot(4, 4, 2500, -4, GetMiscString(170));

See

int NewTextHeadupSlot(int pSlot_index, int pFlash_rate, int pLifetime, int pFont_index, char* pText) {

and

if (pFlash_rate) {
the_headup->flash_period = 1000 / pFlash_rate;
} else {
the_headup->flash_period = 0;
}

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.

Wasting stealworthy opponent crashes the game
2 participants