TODO: Allow flares on every vehicle and see how that works. Boats already allowed them originally.
| 281 | |
| 282 | // TODO: Allow flares on every vehicle and see how that works. Boats already allowed them originally. |
| 283 | void DoVehicleFlareDiscard(ItemInfo* laraItem) |
| 284 | { |
| 285 | auto* lara = GetLaraInfo(laraItem); |
| 286 | |
| 287 | if (lara->Control.Weapon.GunType == LaraWeaponType::Flare) |
| 288 | { |
| 289 | CreateFlare(*laraItem, ID_FLARE_ITEM, false); |
| 290 | UndrawFlareMeshes(*laraItem); |
| 291 | lara->Control.Weapon.GunType = LaraWeaponType::None; |
| 292 | lara->Control.Weapon.RequestGunType = LaraWeaponType::None; |
| 293 | lara->Flare.ControlLeft = false; |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | // TODO: This is a copy-pase of the player version, but I may need a different method for vehicles. |
| 298 | short ModulateVehicleTurnRate(short turnRate, short accelRate, short minTurnRate, short maxTurnRate, float axisCoeff) |
no test coverage detected