]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Spawnfuncs: whitelist more fields
authorTimePath <andrew.hardaker1995@gmail.com>
Sat, 3 Oct 2015 09:02:24 +0000 (19:02 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sat, 3 Oct 2015 09:02:24 +0000 (19:02 +1000)
qcsrc/common/monsters/sv_monsters.qc
qcsrc/common/triggers/target/spawn.qc
qcsrc/lib/spawnfunc.qh

index 18bf6af2a9a64f238b39d94b3316337e56c862b6..52e5af984753c8fbcdd43e898ac28165bac80433 100644 (file)
@@ -39,6 +39,7 @@ void monster_dropitem()
 
        vector org = self.origin + ((self.mins + self.maxs) * 0.5);
        entity e = spawn();
+       e.spawnfunc_checked = true;
 
        e.monster_loot = self.monster_loot;
 
index 554d382268869f79e413bc27112bb42a8d76c6d6..10fe3c764afb24b3152cd052346cecc2457b7e42 100644 (file)
@@ -280,6 +280,7 @@ void target_spawn_use()
                if(!target_spawn_cancreate())
                        return;
                e = spawn();
+               e.spawnfunc_checked = true;
                target_spawn_useon(e);
                e.target_spawn_id = self.target_spawn_id;
        }
index 00c9be13541f25f842018dd58a1ea5fda0732152..1ab059cdf916ff62e6c46c56e526c14ef7db39ff 100644 (file)
@@ -74,12 +74,15 @@ bool entityfieldassignablefromeditor(int i) {
     FIELD_SCALAR(fld, cnt) \
     FIELD_SCALAR(fld, colormap) \
     FIELD_SCALAR(fld, count) \
+    FIELD_SCALAR(fld, curvetarget) \
+    FIELD_SCALAR(fld, cvarfilter) \
     FIELD_SCALAR(fld, debrisdamageforcescale) \
     FIELD_SCALAR(fld, debrisfadetime) \
     FIELD_SCALAR(fld, debristimejitter) \
     FIELD_SCALAR(fld, debristime) \
     FIELD_SCALAR(fld, debris) \
     FIELD_SCALAR(fld, delay) \
+    FIELD_SCALAR(fld, dmgtime) \
     FIELD_SCALAR(fld, dmg) \
     FIELD_SCALAR(fld, dmg_edge) \
     FIELD_SCALAR(fld, dmg_force) \
@@ -87,8 +90,10 @@ bool entityfieldassignablefromeditor(int i) {
     FIELD_SCALAR(fld, effects) \
     FIELD_SCALAR(fld, flags) \
     FIELD_SCALAR(fld, fog) \
+    FIELD_SCALAR(fld, frags) \
     FIELD_SCALAR(fld, frame) \
     FIELD_SCALAR(fld, gametypefilter) \
+    FIELD_SCALAR(fld, geomtype) \
     FIELD_SCALAR(fld, gravity) \
     FIELD_SCALAR(fld, health) \
     FIELD_SCALAR(fld, height) \
@@ -106,6 +111,7 @@ bool entityfieldassignablefromeditor(int i) {
     FIELD_SCALAR(fld, modelindex) \
     FIELD_SCALAR(fld, modelscale) \
     FIELD_SCALAR(fld, model) \
+    FIELD_SCALAR(fld, monster_moveflags) \
     FIELD_SCALAR(fld, movetype) \
     FIELD_SCALAR(fld, netname) \
     FIELD_SCALAR(fld, nextthink) \
@@ -114,6 +120,7 @@ bool entityfieldassignablefromeditor(int i) {
     FIELD_SCALAR(fld, noise2) \
     FIELD_SCALAR(fld, noise) \
     FIELD_SCALAR(fld, phase) \
+    FIELD_SCALAR(fld, platmovetype) \
     FIELD_SCALAR(fld, race_place) \
     FIELD_SCALAR(fld, radius) \
     FIELD_SCALAR(fld, respawntimejitter) \
@@ -133,6 +140,7 @@ bool entityfieldassignablefromeditor(int i) {
     FIELD_SCALAR(fld, targetname) \
     FIELD_SCALAR(fld, target) \
     FIELD_SCALAR(fld, target_random) \
+    FIELD_SCALAR(fld, target_range) \
     FIELD_SCALAR(fld, team) \
     FIELD_SCALAR(fld, turret_scale_health) \
     FIELD_SCALAR(fld, turret_scale_range) \
@@ -141,6 +149,7 @@ bool entityfieldassignablefromeditor(int i) {
     FIELD_SCALAR(fld, wait) \
     FIELD_SCALAR(fld, warpzone_fadeend) \
     FIELD_SCALAR(fld, warpzone_fadestart) \
+    FIELD_SCALAR(fld, weapon) \
     FIELD_VEC(fld, absmax) \
     FIELD_VEC(fld, absmin) \
     FIELD_VEC(fld, angles) \