Add track recovery, fix Arctic Land bridge & 9-map sim/render, harden security & optimize runtime
- Add manual track recovery (R / Backspace / Gamepad Back), document controls in README.md, fix Track 8 (Arctic Land) bridge jump/clearance physics, and fix Track 5 respawn invincibility & Track 6 off-track AI recovery across all 9 maps - Verify 9-map sector morphing, combat (swept projectiles/LOS), pitstop chargers, and overpass/bridge surface sampling - Fix Overpass Bottom (-Y) diagonal split and AO, add TerrainChunk frustum culling, O(1) 3D Classic uPaletteLut, atlas gutter/bleed UVs, cached uniform locations, and reusable render scratch buffers - Harden VFS path traversal, RNC decompression bombs/truncated headers, asset/WAV parsers, GameConfig, save loaders, CLI args, and FLIC lifecycle - Optimize 48 kHz OPL3/SoundFont synthesis (trig LUTs, cached envelopes/filters), 64-bit XMI ticks, and audio parameter/thread safety - Add security, rendering, physics, and gameplay regression tests across all test suites
This commit is contained in:
1 parent
5c2ac8e70f
commit
db788a2739
50 files changed
+3522
-1100
No files matched your search
@@ -6,6 +6,7 @@
|
||||
#include "sim/vehicle_defs.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace top_octane::sim {
|
||||
|
||||
@@ -73,6 +74,11 @@ struct CraftState {
|
||||
RecoveryState recovery_state = RecoveryState::Active;
|
||||
float recovery_timer = 0.0f;
|
||||
Vec3 recovery_pos{0.0f, 0.0f, 0.0f};
|
||||
bool recovery_refill = true;
|
||||
float recovery_duration = 3.2f;
|
||||
float recovery_cooldown = 0.0f;
|
||||
float pit_stuck_timer = 0.0f;
|
||||
bool stuck_in_pit_hint = false;
|
||||
|
||||
// Race / Deathmatch progression
|
||||
int lap = 1;
|
||||
@@ -106,6 +112,8 @@ struct CraftState {
|
||||
Vec3 ai_progress_anchor{0.0f, 0.0f, 0.0f};
|
||||
float ai_progress_timer = 0.0f;
|
||||
bool ai_anchor_init = false;
|
||||
float ai_wp_best_dist = 1e9f;
|
||||
float ai_wp_stall_timer = 0.0f;
|
||||
|
||||
float speed_horizontal() const {
|
||||
return std::sqrt(vel.x * vel.x + vel.z * vel.z);
|
||||
@@ -137,6 +145,11 @@ bool resolve_world_collisions(CraftState& craft, const assets::LevelData& level,
|
||||
// Resolves sphere-sphere bounce between two active crafts
|
||||
bool resolve_craft_pair_collision(CraftState& a, CraftState& b, float& out_rel_speed);
|
||||
|
||||
// Safely places a craft on the nearest clear, drivable main track waypoint
|
||||
bool place_craft_on_track(CraftState& craft, const assets::LevelData& level,
|
||||
const std::vector<CraftState>& all_crafts,
|
||||
bool restrict_to_checkpoint_arc = true);
|
||||
|
||||
// Interpolates craft pose for smooth rendering at arbitrary refresh rate
|
||||
CraftPose interpolate_pose(const CraftState& craft, float alpha);
|
||||
|
||||
|
||||
Reference in new issue
Block a user