Skip to content

Commit dd2fa5f

Browse files
committed
Add .qci extension to qc lang. Fixes #112
1 parent 477a4df commit dd2fa5f

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@
171171
],
172172
"extensions": [
173173
".qc",
174+
".qci",
174175
".mc"
175176
]
176177
},

samples/model_example.qci

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
// This is a simple example QC file
3+
4+
// The output file name
5+
$modelname "props_examples/example.mdl"
6+
7+
// Our input model
8+
$body body "example.smd"
9+
10+
// Sequence has to be declared. Refer to the body's dmx file to use an empty animation
11+
$sequence "idle" "example.dmx"
12+
13+
// We want to be a static prop
14+
$staticprop
15+
16+
// Our collision model
17+
$collisionmodel "example_phys.dmx"
18+
19+
// This model's materials are relative to these paths. Keep / as a fallback just in case
20+
$cdmaterials "/"
21+
$cdmaterials "models/props_examples/"
22+
23+
$definevariable Test "test"
24+
$body -$Test$ foo/$Test$/bar
25+
$body -$Test$ "foo/$Test$/bar"
26+
27+
$animation a_foobar foo/$Test$/bar {
28+
subtract a_foobar 0
29+
delta realtime loop
30+
}
31+
$sequence idle01 "a_foobar" activity ACT_IDLE
32+
33+
$illumposition 100 -0.24 0.23
34+
35+
$origin 0 10 .0 -.0001
36+
37+
// some weird unquoted and valid ascii
38+
$sequence abc_!-@#$%*)|\/.,><:=?^ idle
39+
$sequence : idle
40+
$sequence < idle
41+
42+
// Semicolons are the only character from 33~127 range that need quoting
43+
$sequence ";" idle

0 commit comments

Comments
 (0)