mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-26 08:06:43 +01:00
Plugins: prop hunt APIs, and plugin commands in the console lookup
- reskate.entities.blueprints lists the game's object blueprints (meshes only if asked), and reskate.entities.bounds gives a blueprint's box, so a mod can pick a prop by list or at random - Attached objects take upright, turn and ground (a floor found within reach below), the "root" joint, and a 6th options argument with solid; spawned props' bodies are found and ghosted - reskate.skater.hide, reskate.world.pick, and skater.get gives right and switch - reskate.console.command takes an optional 4th table of subcommands; the console lookup suggests plugin commands word by word, and plugin commands lists the subcommands - objbody: a test command for finding which body setter takes a prop out of collision
This commit is contained in:
1 parent
c35e9a357b
commit
45346b122c
26 files changed
+1238
-36
No files matched your search
@@ -1333,6 +1333,9 @@ void update_model(std::uintptr_t client, TickState& frame) {
|
||||
dingosdk::update_local_graphics_controls();
|
||||
model.graphics = dingosdk::local_profile_graphics_controls();
|
||||
model.object_persistence = dingosdk::local_profile_object_persistence();
|
||||
model.plugin_commands.clear();
|
||||
for (auto& hint : dingosdk::plugins::command_hints())
|
||||
model.plugin_commands.push_back({std::move(hint.name), std::move(hint.args), std::move(hint.help), std::move(hint.plugin)});
|
||||
// The park list is a disk walk of the Mods folder: only while the menu or the editor shows it.
|
||||
dingosdk::set_park_mod_list_visible(r.debug_model.park_editor ||
|
||||
GetTickCount64() < r.named_settings_wanted_until.load(std::memory_order_relaxed));
|
||||
|
||||
Reference in new issue
Block a user