-
Notifications
You must be signed in to change notification settings - Fork 253
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
Use EL for model properties in FGD and DEF files #1440
Labels
Prio:1
Highest priority: Crash or crippling bugs, features that enable new ways of working
Type:Enhancement
New features
Milestone
Comments
kduske
added a commit
that referenced
this issue
Sep 16, 2016
…lue undefined instead of throwing an exception.
kduske
added a commit
that referenced
this issue
Sep 17, 2016
kduske
added a commit
that referenced
this issue
Sep 17, 2016
kduske
added a commit
that referenced
this issue
Sep 17, 2016
kduske
added a commit
that referenced
this issue
Sep 17, 2016
kduske
added a commit
that referenced
this issue
Sep 18, 2016
kduske
added a commit
that referenced
this issue
Sep 18, 2016
kduske
added a commit
that referenced
this issue
Sep 18, 2016
kduske
added a commit
that referenced
this issue
Sep 18, 2016
Sub tasks for introducing the new model syntax:
|
kduske
added a commit
that referenced
this issue
Sep 21, 2016
kduske
added a commit
that referenced
this issue
Sep 22, 2016
kduske
added a commit
that referenced
this issue
Sep 25, 2016
kduske
added a commit
that referenced
this issue
Sep 26, 2016
kduske
added a commit
that referenced
this issue
Sep 26, 2016
kduske
added a commit
that referenced
this issue
Sep 28, 2016
kduske
added a commit
that referenced
this issue
Sep 28, 2016
kduske
added a commit
that referenced
this issue
Sep 28, 2016
…rs. Use EL expressions to store model information.
kduske
added a commit
that referenced
this issue
Sep 28, 2016
kduske
added a commit
that referenced
this issue
Oct 1, 2016
kduske
added a commit
that referenced
this issue
Oct 1, 2016
kduske
added a commit
that referenced
this issue
Oct 1, 2016
kduske
added a commit
that referenced
this issue
Oct 1, 2016
kduske
added a commit
that referenced
this issue
Oct 1, 2016
kduske
added a commit
that referenced
this issue
Oct 1, 2016
kduske
added a commit
that referenced
this issue
Oct 1, 2016
kduske
added a commit
that referenced
this issue
Oct 2, 2016
kduske
added a commit
that referenced
this issue
Oct 2, 2016
kduske
added a commit
that referenced
this issue
Oct 2, 2016
kduske
added a commit
that referenced
this issue
Oct 3, 2016
kduske
added a commit
that referenced
this issue
Oct 3, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Prio:1
Highest priority: Crash or crippling bugs, features that enable new ways of working
Type:Enhancement
New features
When specifying models for entities in FGD or DEF files, TB should use its EL. For this, a new switch / case expression must be added with the following syntax:
The case conditions are evaluated in sequence until a match is found, then the case expression is evaluated to determine the value of the entire switch expression. If no case condition matches, then the value of the switch expression is
null
. Example:Thereby,
spawnflags
is treated as a variable whose value is read from the entity. This allows total flexibility and it also works for entities where the model is determined from a property itself:The case expressions are maps with the structure
Where
path
,frame
, andskin
determine the respective values for the model.frame
andskin
are optional and default to 0.Here, there is no switch / case, and the values of the map entries are themselves variables whose values are read from the entity properties of the same names.
If no frame and key need to be specified, a single string can also be given and will be used as the model path, so no map must be created:
is therefore also valid. This provides backward compatibility with the old syntax and with FGD and DEF files from other editors. Finally, the name
studio
can also be used instead ofmodel
to provide compatibility with J.A.C.K. and Hammer.The text was updated successfully, but these errors were encountered: