Added .hqf sample.

This commit is contained in:
KoffeinFlummi
2014-07-28 00:38:07 +02:00
parent 7fc39dc8d1
commit 4e83a6ad23
2 changed files with 21 additions and 1 deletions

View File

@@ -541,7 +541,8 @@
".scss"
],
"SQF": [
".sqf"
".sqf",
".hqf"
],
"SQL": [
".prc",

19
samples/SQF/macros.hqf Normal file
View File

@@ -0,0 +1,19 @@
#include <version.hqf>
#define SET(VAR,VALUE) private #VAR; VAR = VALUE;
#define CONV(VAR,ARRAY,POOL) VAR = ARRAY select (POOL find VAR);
#define ALL_HITPOINTS_MAN [ \
"HitHead", "HitBody", \
"HitLeftArm", "HitRightArm", \
"HitLeftLeg","HitRightLeg" \
]
#define ALL_HITPOINTS_VEH [ \
"HitBody", "HitHull", "HitEngine", "HitFuel", \
"HitTurret", "HitGun", \
"HitLTrack", "HitRTrack", \
"HitLFWheel", "HitRFWheel", "HitLF2Wheel", "HitRF2Wheel", "HitLMWheel", "HitRMWheel", "HitLBWheel", "HitRBWheel", \
"HitAvionics", "HitHRotor", "HitVRotor", \
"HitRGlass", "HitLGlass", "HitGlass1", "HitGlass2", "HitGlass3", "HitGlass4", "HitGlass5", "HitGlass6" \
]