parent
8051ca2b6d
commit
d67f04e6c6
|
|
@ -29,7 +29,9 @@ float gWobble_spam_y[8] = { 0.0f, -0.15f, 0.4f, 0.15f, -0.4f, 0.25f, 0.0f, -0.25
|
|||
float gWobble_spam_z[8] = { 0.4f, -0.25f, 0.0f, 0.25f, 0.0f, 0.15f, -0.4f, -0.15f };
|
||||
br_scalar gWheel_circ_to_width = 0.16f;
|
||||
tU8 gSmoke_damage_step[12] = { 20u, 20u, 0u, 10u, 10u, 10u, 10u, 10u, 10u, 10u, 10u, 10u };
|
||||
int gSteal_ranks[5] = { 0, 89, 72, 55, 38 };
|
||||
int gSteal_ranks[5] = { 89, 72, 55, 38, 21 };
|
||||
|
||||
#define BIGAPC_OPPONENT_INDEX 4
|
||||
|
||||
// IDA: int __usercall ReadCrushData@<EAX>(FILE *pF@<EAX>, tCrush_data *pCrush_data@<EDX>)
|
||||
int ReadCrushData(FILE* pF, tCrush_data* pCrush_data) {
|
||||
|
|
@ -484,7 +486,7 @@ void TotallyRepairACar(tCar_spec* pCar) {
|
|||
the_car_actor->undamaged_vertices,
|
||||
the_car_actor->actor->model->nvertices * sizeof(br_vertex));
|
||||
// FIXME: BrModelUpdate(..., BR_MODU_VERTEX_COLOURS | BR_MODU_VERTEX_POSITIONS) fails on TELL_ME_IF_WE_PASS_THIS_WAY
|
||||
// BrModelUpdate(the_car_actor->actor->model, BR_MODU_VERTEX_COLOURS | BR_MODU_VERTEX_POSITIONS);
|
||||
// BrModelUpdate(the_car_actor->actor->model, BR_MODU_VERTEX_COLOURS | BR_MODU_VERTEX_POSITIONS);
|
||||
BrModelUpdate(the_car_actor->actor->model, BR_MODU_ALL);
|
||||
if (pipe_vertex_count != 0 && IsActionReplayAvailable()) {
|
||||
PipeSingleModelGeometry(pCar->car_ID, j, pipe_vertex_count, pipe_array);
|
||||
|
|
@ -1158,7 +1160,9 @@ int DoCrashEarnings(tCar_spec* pCar1, tCar_spec* pCar2) {
|
|||
credits = 100 * (int)(credits_squared / 100.0);
|
||||
AwardTime(gWasted_time[gProgram_state.skill_level]);
|
||||
EarnCredits(credits);
|
||||
if (victim->can_be_stolen && !gOpponents[victim->index].dead && ((PercentageChance(50) && gSteal_ranks[gOpponents[victim->index].strength_rating] >= gProgram_state.rank) || victim->index == 4)) {
|
||||
if (victim->can_be_stolen && !gOpponents[victim->index].dead
|
||||
// strength_rating is between 1 and 5
|
||||
&& ((PercentageChance(50) && gProgram_state.rank <= gSteal_ranks[gOpponents[victim->index].strength_rating - 1]) || victim->index == BIGAPC_OPPONENT_INDEX)) {
|
||||
StealCar(victim);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue