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

Add changeInstances command to VBSP #12

Closed
TeamSpen210 opened this issue Oct 10, 2014 · 2 comments
Closed

Add changeInstances command to VBSP #12

TeamSpen210 opened this issue Oct 10, 2014 · 2 comments
Assignees
Labels
Compiler Issue pertains to the custom BEE compilers

Comments

@TeamSpen210
Copy link
Member

Add "changeinstance" command, swaps instances if conditions are met
This allows making most of the style-based modification

  • check for conditions in load_entites
  • can change based on:
    • quote pack
    • style option
    • Coop
    • isPreview
    • key name is "ifQuote", "ifStyleTrue", "ifStyleFalse", "ifMode", "ifPreview"
      • first 3 have value of target item, last 2 have value of true/false/1/0
    • perhaps "OpType" "OR" or "AND", decides if the conditions are read as an AND or OR op
    • implementation: store all unsatisfied in one list, copy contents to another when satisfied.
@TeamSpen210 TeamSpen210 added the Compiler Issue pertains to the custom BEE compilers label Oct 10, 2014
@TeamSpen210 TeamSpen210 self-assigned this Oct 10, 2014
@TeamSpen210
Copy link
Member Author

I'm changing this to merge with packing ability, instead it'll define a "conditions" list which when satisfied will allow changing the loaded config values during runtime. This adds the "inst_flag" condition (if the value is in an instance filename), and the "ifMat" condition (is the material used in the original VMF)?. It will be undefined what order conditions are run in, so they should not be chainable.

@TeamSpen210
Copy link
Member Author

Done in commit f582242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Issue pertains to the custom BEE compilers
Projects
None yet
Development

No branches or pull requests

1 participant