]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
No material by default. Feels most correct
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 27 Oct 2011 09:50:05 +0000 (12:50 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 27 Oct 2011 09:50:05 +0000 (12:50 +0300)
defaultXonotic.cfg
qcsrc/server/mutators/sandbox.qc

index a5bf4d680ed92ffb7af641d3a8be99cc6bba8ed6..76be8f9cb19166425641e96de44d7cff1e8299c1 100644 (file)
@@ -558,7 +558,7 @@ seta menu_sandbox_edit_frame 0
 seta menu_sandbox_edit_scale 1
 seta menu_sandbox_edit_physics 1
 seta menu_sandbox_edit_force 1
-seta menu_sandbox_edit_material 1
+seta menu_sandbox_edit_material 0
 
 alias menu_showsandboxtools "menu_cmd directmenu SandboxTools"
 bind f7 menu_showsandboxtools
index ff311788c72633a0fefcf602da3119b364ce0b42..310b90fdab9b8ebe84da005d3dee4161631ffde2 100644 (file)
@@ -1,6 +1,7 @@
 .string object_clipboard;
 .float material;
 
+const float MATERIAL_NONE = 0;
 const float MATERIAL_METAL = 1;
 const float MATERIAL_STONE = 2;
 const float MATERIAL_WOOD = 3;
@@ -72,7 +73,7 @@ entity sandbox_SpawnObject()
        e.movetype = MOVETYPE_TOSS;
        e.frame = 0;
        e.skin = 0;
-       e.material = MATERIAL_METAL;
+       e.material = MATERIAL_NONE;
 
        e.touch = sandbox_Object_Touch;