Rev 20 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 20 | Rev 21 | ||
---|---|---|---|
Line 200... | Line 200... | ||
200 | LOG_TRACE("()"); |
200 | LOG_TRACE("()"); |
201 | 201 | ||
202 | if (!gProgram_state.sausage_eater_mode) { |
202 | if (!gProgram_state.sausage_eater_mode) { |
203 | gPedestrians_on = !gPedestrians_on; |
203 | gPedestrians_on = !gPedestrians_on; |
204 | if (gPedestrians_on) { |
204 | if (gPedestrians_on) { |
205 | NewTextHeadupSlot( |
205 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 1000, -4, GetMiscString(kMiscString_LetTheCarnageContinue)); |
206 | } else { |
206 | } else { |
207 | NewTextHeadupSlot( |
207 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 1000, -4, GetMiscString(kMiscString_NiceAndFluffyMode)); |
208 | } |
208 | } |
209 | } |
209 | } |
210 | } |
210 | } |
211 | 211 | ||
212 | // IDA: void __cdecl InitPedGibs() |
212 | // IDA: void __cdecl InitPedGibs() |
Line 1523... | Line 1523... | ||
1523 | // IDA: void __cdecl CheckLastPed() |
1523 | // IDA: void __cdecl CheckLastPed() |
1524 | void CheckLastPed(void) { |
1524 | void CheckLastPed(void) { |
1525 | LOG_TRACE("()"); |
1525 | LOG_TRACE("()"); |
1526 | 1526 | ||
1527 | if (gNet_mode == eNet_mode_none && gProgram_state.peds_killed >= gTotal_peds) { |
1527 | if (gNet_mode == eNet_mode_none && gProgram_state.peds_killed >= gTotal_peds) { |
1528 | NewTextHeadupSlot( |
1528 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 5000, -4, GetMiscString(kMiscString_EveryPedestrianWasted)); |
1529 | RaceCompleted(eRace_over_peds); |
1529 | RaceCompleted(eRace_over_peds); |
1530 | } |
1530 | } |
1531 | } |
1531 | } |
1532 | 1532 | ||
1533 | // IDA: int __usercall BloodyWheels@<EAX>(tCar_spec *pCar@<EAX>, br_vector3 *pPed_car@<EDX>, br_scalar pSize, br_vector3 *pPed_glob) |
1533 | // IDA: int __usercall BloodyWheels@<EAX>(tCar_spec *pCar@<EAX>, br_vector3 *pPed_car@<EDX>, br_scalar pSize, br_vector3 *pPed_glob) |
Line 3177... | Line 3177... | ||
3177 | gPed_instruc_count = 0; |
3177 | gPed_instruc_count = 0; |
3178 | gInit_ped_instruc = 0; |
3178 | gInit_ped_instruc = 0; |
3179 | gNumber_of_pedestrians++; |
3179 | gNumber_of_pedestrians++; |
3180 | gTotal_peds++; |
3180 | gTotal_peds++; |
3181 | sprintf(s, "New pedestrian, refnum = %d", pRef_num); |
3181 | sprintf(s, "New pedestrian, refnum = %d", pRef_num); |
3182 | NewTextHeadupSlot( |
3182 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -1, s); |
3183 | if (pRef_num >= 100) { |
3183 | if (pRef_num >= 100) { |
3184 | DropInitPedPoint(); |
3184 | DropInitPedPoint(); |
3185 | NewPed(-1); |
3185 | NewPed(-1); |
3186 | } |
3186 | } |
3187 | } |
3187 | } |
Line 3205... | Line 3205... | ||
3205 | LOG_TRACE("()"); |
3205 | LOG_TRACE("()"); |
3206 | 3206 | ||
3207 | gPed_instruc_count = 0; |
3207 | gPed_instruc_count = 0; |
3208 | gNumber_of_pedestrians--; |
3208 | gNumber_of_pedestrians--; |
3209 | gTotal_peds--; |
3209 | gTotal_peds--; |
3210 | NewTextHeadupSlot( |
3210 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -1, "Scrubbed pedestrian"); |
3211 | RemoveCurrentPedPath(); |
3211 | RemoveCurrentPedPath(); |
3212 | } |
3212 | } |
3213 | 3213 | ||
3214 | // IDA: void __cdecl TogglePedDetect() |
3214 | // IDA: void __cdecl TogglePedDetect() |
3215 | void TogglePedDetect(void) { |
3215 | void TogglePedDetect(void) { |
3216 | LOG_TRACE("()"); |
3216 | LOG_TRACE("()"); |
3217 | 3217 | ||
3218 | gDetect_peds = !gDetect_peds; |
3218 | gDetect_peds = !gDetect_peds; |
3219 | if (gDetect_peds) { |
3219 | if (gDetect_peds) { |
3220 | NewTextHeadupSlot( |
3220 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -1, "Pedestrian are meat again"); |
3221 | } else { |
3221 | } else { |
3222 | NewTextHeadupSlot( |
3222 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -1, "Pedestrians are invulnerable"); |
3223 | } |
3223 | } |
3224 | } |
3224 | } |
3225 | 3225 | ||
3226 | // IDA: void __cdecl NewPed0() |
3226 | // IDA: void __cdecl NewPed0() |
3227 | void NewPed0(void) { |
3227 | void NewPed0(void) { |
Line 3391... | Line 3391... | ||
3391 | if (gPath_actor == NULL) { |
3391 | if (gPath_actor == NULL) { |
3392 | return; |
3392 | return; |
3393 | } |
3393 | } |
3394 | #endif |
3394 | #endif |
3395 | DropPedPoint2(); |
3395 | DropPedPoint2(); |
3396 | NewTextHeadupSlot( |
3396 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -1, "Dropped pedestrian point"); |
3397 | } |
3397 | } |
3398 | 3398 | ||
3399 | // IDA: void __cdecl DropInitPedPoint() |
3399 | // IDA: void __cdecl DropInitPedPoint() |
3400 | void DropInitPedPoint(void) { |
3400 | void DropInitPedPoint(void) { |
3401 | LOG_TRACE("()"); |
3401 | LOG_TRACE("()"); |
Line 3405... | Line 3405... | ||
3405 | return; |
3405 | return; |
3406 | } |
3406 | } |
3407 | #endif |
3407 | #endif |
3408 | gInit_ped_instruc = gPed_instruc_count; |
3408 | gInit_ped_instruc = gPed_instruc_count; |
3409 | DropPedPoint2(); |
3409 | DropPedPoint2(); |
3410 | NewTextHeadupSlot( |
3410 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -1, "Dropped initial pedestrian point"); |
3411 | } |
3411 | } |
3412 | 3412 | ||
3413 | // IDA: void __cdecl DropPedPointAir2() |
3413 | // IDA: void __cdecl DropPedPointAir2() |
3414 | void DropPedPointAir2(void) { |
3414 | void DropPedPointAir2(void) { |
3415 | LOG_TRACE("()"); |
3415 | LOG_TRACE("()"); |
Line 3430... | Line 3430... | ||
3430 | if (gPath_actor == NULL) { |
3430 | if (gPath_actor == NULL) { |
3431 | return; |
3431 | return; |
3432 | } |
3432 | } |
3433 | #endif |
3433 | #endif |
3434 | DropPedPointAir2(); |
3434 | DropPedPointAir2(); |
3435 | NewTextHeadupSlot( |
3435 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -1, "Dropped auto-y pedestrian point"); |
3436 | } |
3436 | } |
3437 | 3437 | ||
3438 | // IDA: void __cdecl DropInitPedPointAir() |
3438 | // IDA: void __cdecl DropInitPedPointAir() |
3439 | void DropInitPedPointAir(void) { |
3439 | void DropInitPedPointAir(void) { |
3440 | LOG_TRACE("()"); |
3440 | LOG_TRACE("()"); |
Line 3444... | Line 3444... | ||
3444 | return; |
3444 | return; |
3445 | } |
3445 | } |
3446 | #endif |
3446 | #endif |
3447 | gInit_ped_instruc = gPed_instruc_count; |
3447 | gInit_ped_instruc = gPed_instruc_count; |
3448 | DropPedPointAir2(); |
3448 | DropPedPointAir2(); |
3449 | NewTextHeadupSlot( |
3449 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -1, "Dropped initial auto-y pedestrian point"); |
3450 | } |
3450 | } |
3451 | 3451 | ||
3452 | // IDA: br_uint_32 __cdecl KillActorsModel(br_actor *pActor, void *pArg) |
3452 | // IDA: br_uint_32 __cdecl KillActorsModel(br_actor *pActor, void *pArg) |
3453 | intptr_t KillActorsModel(br_actor* pActor, void* pArg) { |
3453 | intptr_t KillActorsModel(br_actor* pActor, void* pArg) { |
3454 | LOG_TRACE("(%p, %p)", pActor, pArg); |
3454 | LOG_TRACE("(%p, %p)", pActor, pArg); |
Line 3519... | Line 3519... | ||
3519 | char s[255]; |
3519 | char s[255]; |
3520 | LOG_TRACE("()"); |
3520 | LOG_TRACE("()"); |
3521 | 3521 | ||
3522 | GetPedPos(&min_ped, &min_point); |
3522 | GetPedPos(&min_ped, &min_point); |
3523 | sprintf(s, "Nearest pedestrian is #%d, point #%d", min_ped + 1, min_point + 1); |
3523 | sprintf(s, "Nearest pedestrian is #%d, point #%d", min_ped + 1, min_point + 1); |
3524 | NewTextHeadupSlot( |
3524 | NewTextHeadupSlot(eHeadupSlot_misc, 0, 3000, -1, s); |
3525 | } |
3525 | } |
3526 | 3526 | ||
3527 | // IDA: void __cdecl ShowPedPaths() |
3527 | // IDA: void __cdecl ShowPedPaths() |
3528 | void ShowPedPaths(void) { |
3528 | void ShowPedPaths(void) { |
3529 | int i; |
3529 | int i; |