Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A small scripting language embedded into the fgd #154

Open
tmob03 opened this issue Oct 8, 2022 · 0 comments
Open

A small scripting language embedded into the fgd #154

tmob03 opened this issue Oct 8, 2022 · 0 comments

Comments

@tmob03
Copy link
Member

tmob03 commented Oct 8, 2022

Trenchbroom currently has this, I believe it's main use there is setting models depends on the keyvalue because quake-like games don't do that automatically like source hammer does for the model keyvalue.

That ability would be nice to have here too, for example the defrag weapon spawner could change its visual model depending on the keyvalue. However what I believe is most useful would be hiding other keyvalues depending on the value of another. For example in trigger_push, it has a keyvalue called reorient_landmark that only applies when the mode is set to 4. reorient_landmark should be hidden until mode is set to 4, as it is unneeded in all other cases. Another use case would to manually set another keyvalue based on the value of another, but I can't think of a use case of this off the top of my head right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant