]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Default frame and skin for newly spawned objects
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 25 Oct 2011 20:53:32 +0000 (23:53 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 25 Oct 2011 20:53:32 +0000 (23:53 +0300)
qcsrc/server/mutators/sandbox.qc

index 36d1db83c2bdb4d5af35909f604e638397ae87ea..ef97f3692f1458620ed24ed9d41b4ded645dc33c 100644 (file)
@@ -20,9 +20,11 @@ entity sandbox_SpawnObject()
        e = spawn();
        e.realowner = self;
        e.classname = "object";
-       e.takedamage = DAMAGE_NO;
-       e.movetype = MOVETYPE_TOSS;
+       e.takedamage = DAMAGE_AIM;
        e.solid = SOLID_BBOX; // SOLID_BSP would be best, but can lag the server badly
+       e.movetype = MOVETYPE_TOSS;
+       e.frame = 0;
+       e.skin = 0;
 
        // set origin and direction based on player position and view angle
        makevectors(self.v_angle);