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

Document Vehicles #641

Merged
merged 23 commits into from
Aug 23, 2024
Merged

Document Vehicles #641

merged 23 commits into from
Aug 23, 2024

Conversation

coco875
Copy link
Contributor

@coco875 coco875 commented Jun 20, 2024

No description provided.

include/common_structs.h Outdated Show resolved Hide resolved
include/common_structs.h Outdated Show resolved Hide resolved
src/code_80005FD0.h Outdated Show resolved Hide resolved
src/code_80005FD0.h Outdated Show resolved Hide resolved
src/code_80005FD0.h Outdated Show resolved Hide resolved
src/player_controller.c Outdated Show resolved Hide resolved
torch.hash.yml Outdated Show resolved Hide resolved
include/common_structs.h Outdated Show resolved Hide resolved
src/code_80005FD0.c Show resolved Hide resolved
src/code_80005FD0.c Outdated Show resolved Hide resolved
src/code_80005FD0.c Outdated Show resolved Hide resolved
position[0] = var_f2;
position[1] = var_f12;
position[2] = var_f14;
return get_angle_path(sp50, position);
Copy link
Collaborator

Choose a reason for hiding this comment

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

sp50 good name might be pos or oldPos

get_angle_path if it returns the angle between sp50 and position. get_angle

get_angle_path is essentially get_angle_between_two_vectors_dup.

Perhaps get_angle_between_two_vectors_vehicles?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah get_angle_path is a kind of duplicate of get_angle_between_two_vectors_dup

src/code_80005FD0.c Outdated Show resolved Hide resolved
src/code_80005FD0.c Outdated Show resolved Hide resolved
src/code_80005FD0.c Outdated Show resolved Hide resolved
src/code_80005FD0.c Outdated Show resolved Hide resolved
src/code_80005FD0.c Outdated Show resolved Hide resolved
src/code_80005FD0.c Outdated Show resolved Hide resolved
src/code_80057C60.c Outdated Show resolved Hide resolved
src/player_controller.c Outdated Show resolved Hide resolved
@MegaMech MegaMech changed the title Document vehicle Document Vehicles Jun 24, 2024
courses/dks_jungle_parkway/course_data.c Outdated Show resolved Hide resolved
courses/kalimari_desert/course_data.c Outdated Show resolved Hide resolved
src/code_80005FD0.c Outdated Show resolved Hide resolved
smokePos[1] = (f32) ((f64) gTrainList[i].locomotive.position[1] + 65.0);
smokePos[2] = (f32) ((f64) gTrainList[i].locomotive.position[2] + 25.0);
move_to_point_direction(smokePos, gTrainList[i].locomotive.position, orientationYUpdate);
spawn_train_smoke(i, smokePos, 1.1f);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you make a define for 1.1f it's the smoke heighth.

Copy link
Collaborator

Choose a reason for hiding this comment

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

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's the velocity

src/player_controller.c Outdated Show resolved Hide resolved
D_80163318[payerId] = trackSegment;
D_80162FCE = func_8000C0BC(posX, posY, posZ, trackSegment, &pathIndex);
D_80162FCE = find_closest_waypoint_track_segment(posX, posY, posZ, trackSegment, &pathIndex);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure I like the _track_segment part.

Should use trackSection instead of trackSegment I think.

src/code_80005FD0.c Show resolved Hide resolved
src/code_80005FD0.c Outdated Show resolved Hide resolved
src/code_80005FD0.c Outdated Show resolved Hide resolved
src/code_80005FD0.c Outdated Show resolved Hide resolved
MegaMech
MegaMech previously approved these changes Aug 23, 2024
@@ -4890,15 +4894,15 @@ void func_80013854(Player *player) {
}
}

void func_800139E4(f32 arg0, f32 arg1, s32 arg2, s32 arg3, VehicleStuff *vehicle, TrackWaypoint *waypointList) {
void initialize_toad_turnpike_vehicle(f32 speedA, f32 speedB, s32 numVehicles, s32 arg3, VehicleStuff *vehicleList, TrackWaypoint *waypointList) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

toads_turnpike

@MegaMech MegaMech merged commit 40f677d into n64decomp:master Aug 23, 2024
1 of 3 checks passed
@coco875 coco875 deleted the vehicle-doc branch September 1, 2024 15:55
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