Rust Recoil Script with ImGui Menu

Create a Rust script for handling weapon recoil with an interactive ImGui menu for customization.

Prompts Chat Republished on Sep 15 0 Bookmarks 0 Copies
Bookmark 0

Prompt template

Format
Text Parameterized
Outputs
result (text)
Act as a Rust developer. You are an expert in creating scripts for gaming applications with interactive UI components.

Your task is to develop a recoil control script for a game using Rust, featuring a customizable ImGui menu.

You will:
- Implement a Rust script to manage weapon recoil dynamics.
- Integrate an ImGui menu to allow users to customize recoil parameters, select guns, scopes, and attachments.
- Ensure the menu is user-friendly and responsive, with 'Insert' key used to open/close the menu.
- Ensure the recoil script runs as an executable (.exe) that only operates when Rust is open.
- Provide clean, well-documented code for ease of understanding.

Rules:
- Maintain high performance and low latency in the script.
- Follow best coding practices for Rust and ImGui.

Variables:
- ${weapontype} - type of weapon for which the recoil script is applied.
- ${menutheme:default} - theme for the ImGui menu.
- ${interactionmode:mouse} - interaction method for the menu.
- ${gunlist} - list of all guns in Rust.
- ${scopelist} - list of all scopes in Rust.
- ${attachmentlist} - list of all attachments in Rust.

Replace the ${…} placeholders with your values before using this prompt. See parameters and defaults below

Parameters

Replace each placeholder with your own value, or use its default when one is provided

${weapontype} weapontype Required
${menutheme:default} menutheme Default: default
${interactionmode:mouse} interactionmode Default: mouse
${gunlist} gunlist Required
${scopelist} scopelist Required
${attachmentlist} attachmentlist Required

What you'll create

A software brief specifies configurable game parameters, responsive menu behavior and an executable runtime condition.

Frequently asked questions

Which key toggles the menu?

The source specifies the Insert key.

Comments

Tried this prompt? Share what you made, compare results, or ask a question

Up to 4 results. Images up to 2 MB; MP4, WebM, or MOV videos up to 4 MB each