X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Flib%2Fspawnfunc.qh;h=54732766b4a3df0dad3024c210c8b6f141eb828b;hp=5c1cfac379a440723d76e44b1f842fdf36706039;hb=d24e46b65c1fe73fae4cf8034f4e7f318a17053a;hpb=2ad7a79250d682efda53246cb74df7cf7d55dd82 diff --git a/qcsrc/lib/spawnfunc.qh b/qcsrc/lib/spawnfunc.qh index 5c1cfac379..54732766b4 100644 --- a/qcsrc/lib/spawnfunc.qh +++ b/qcsrc/lib/spawnfunc.qh @@ -7,7 +7,8 @@ noref bool require_spawnfunc_prefix; .bool spawnfunc_checked; /** Not for production use, provides access to a dump of the entity's fields when it is parsed from map data */ -//noref string __fullspawndata; +noref string __fullspawndata; +.string fullspawndata; // Optional type checking; increases compile time too much to be enabled by default #if 0 @@ -178,6 +179,11 @@ noref bool require_spawnfunc_prefix; FIELD_SCALAR(fld, noise2) \ FIELD_SCALAR(fld, noise3) \ FIELD_SCALAR(fld, noise) \ + FIELD_SCALAR(fld, notcpm) \ + FIELD_SCALAR(fld, notfree) \ + FIELD_SCALAR(fld, notta) \ + FIELD_SCALAR(fld, notteam) \ + FIELD_SCALAR(fld, notvq3) \ FIELD_SCALAR(fld, phase) \ FIELD_SCALAR(fld, platmovetype) \ FIELD_SCALAR(fld, race_place) \ @@ -280,6 +286,11 @@ noref bool __spawnfunc_first; this.classname = #id; \ if (!this.spawnfunc_checked) { \ _checkWhitelisted(this, #id); \ + if (__fullspawndata) { \ + /* not supported in old DP */ \ + /* must be read inside the real spawnfunc */ \ + this.fullspawndata = __fullspawndata; \ + } \ this.spawnfunc_checked = true; \ if (this) { \ /* not worldspawn, delay spawn */ \