How the-schwilliam/skategm works
SkateGM brings Skate 3 skating into Garry’s Mod: players provide controller or keyboard input, the engine simulates skating and tricks, and the gamemode presents the result in-game. Its documented product also includes converted Skate 3 assets and maps, minigames, a park editor, and replay and camera features. The graph includes the sampled simulation, map-collision, and speech components; several documented features are represented at their existing source directories because their implementations were not sampled. Connections involving those unsampled features are limited to README documentation.
Main entry points: lib.rs Lua API · engine.rs Native Engine Bridge · input/controller.rs Controller Input · graph/controller.rs Intent Graph
Components 21
Garry’s Mod Integration
- Lua API
gm_skategm/src/lib.rs - Native Engine Bridge
gm_skategm/src/engine.rs
Skating Simulation
- Controller Input
engine/crates/skate-core/src/input/controller.rs - Intent Graph
engine/crates/skate-core/src/graph/controller.rs - Skate Physics
engine/crates/skate-core/src/physics/skateboard_controller.rs - Grind Contact
engine/crates/skate-core/src/physics/grind_contact/manager.rs - Camera Shots
engine/crates/skate-core/src/camera/shot_manager.rs
Maps and Assets
- Game Data Conversion
exporter/convert.py - BIG Archive Reader
exporter/tools/owned_game/big.py - Skate 3 Map Builder
exporter/mapgen/build.py - Source Map Collision
gm_skategm/src/world.rs - Collision Smoothing
gm_skategm/src/cleanup.rs - Collision Pipeline
gm_skategm/src/pipeline.rs
Game Features
- Minigames
gm_skategm/src - Park Editor
gm_skategm/src - Replays
gm_skategm/src
Audio
- World Speech
engine/crates/skate-audio/src/world/speech.rs - Speech Manager
engine/crates/skate-audio/src/world/speech_manager.rs - Ped Speech
engine/crates/skate-audio/src/world/peds.rs
Other components
- Player
- Garry’s Mod
Connections 18
- Player → Lua API: sends controls
- Garry’s Mod → Lua API: hosts module
gm_skategm/src/lib.rs - Lua API → Native Engine Bridge: dispatches simulation
gm_skategm/src/lib.rs - Native Engine Bridge → Controller Input: steps session
gm_skategm/src/engine.rs - Controller Input → Intent Graph: produces intents
- Intent Graph → Skate Physics: drives skating
- Skate Physics → Grind Contact: resolves grinds
- Native Engine Bridge → Camera Shots: returns pose
- Player → Game Data Conversion: provides game files
- Game Data Conversion → BIG Archive Reader: reads archives
exporter/convert.py - Player → Skate 3 Map Builder: requests map install
- Source Map Collision → Collision Pipeline: supplies collision
gm_skategm/src/world.rs - Collision Pipeline → Collision Smoothing: cleans geometry
gm_skategm/src/pipeline.rs - Lua API → Minigames: offers modes
gm_skategm/src/lib.rs - Lua API → Park Editor: opens editor
gm_skategm/src/lib.rs - Lua API → Replays: offers replays
gm_skategm/src/lib.rs - Ped Speech → Speech Manager: submits speech
engine/crates/skate-audio/src/world/peds.rs - Speech Manager → World Speech: requests lines
engine/crates/skate-audio/src/world/speech_manager.rs