Permalink
Browse files

Added snow with normal friction

  • Loading branch information...
1 parent d28efcc commit 8640ee5db9307ff6734fe2b32b2034b8a15bc570 @robotboy655 robotboy655 committed Apr 21, 2016
Showing with 36 additions and 30 deletions.
  1. +36 −30 garrysmod/scripts/surfaceproperties.txt
@@ -1,12 +1,12 @@
-// "surface group"
-// {
-// "property" "value"
+// "surface group"
+// {
+// "property" "value"
// ...
// }
//
// thickness: If this value is present, the material is not volumetrically solid
// it means that the volume should be computed as the surface area times this
-// thickness (for automatic mass). The inside space beneath the thickness value is air.
+// thickness (for automatic mass). The inside space beneath the thickness value is air.
//
// physics parameters are:
// density: this is the material density in kg / m^3 (water is 1000)
@@ -17,7 +17,7 @@
// !!! Do not edit the physics properties (especially density) without the proper references !!!
//
// Sounds
-//
+//
// stepleft: footstep sound for left foot
// stepright: footstep sound for right foot
// impactsoft: Physical impact sound when hitting soft surfaces
@@ -26,10 +26,10 @@
// scraperough: Looping physics friction sound (when scraping rough surfaces)
// bulletimpact: bullet impact sound
// gamematerial: game material index (can be a single letter or a number)
-//
+//
// NOTE: The properties of "default" will get copied into EVERY material who does not
-// override them!!!
+// override them!!!
//
// "base" means to use the parameters from that material as a base.
// "base" must appear as the first key in a material
@@ -174,7 +174,7 @@
"stepleft" "MetalVent.StepLeft"
"stepright" "MetalVent.StepRight"
"impacthard" "MetalVent.ImpactHard"
-
+
"audioreflectivity" "0.33"
"audioroughnessfactor" "0.1"
@@ -223,7 +223,7 @@
"stepleft" "Mud.StepLeft"
"stepright" "Mud.StepRight"
-
+
"audiohardnessfactor" "0.0"
"audioroughnessfactor" "0.1"
}
@@ -269,7 +269,7 @@
// generic wood (NOTE: materials should use wood_box, wood_crate, wood_plank, wood_panel etc)
-"Wood"
+"Wood"
{
"density" "700"
"elasticity" "0.1"
@@ -502,9 +502,9 @@
"scrapesmooth" "Glass.ScrapeSmooth"
"impacthard" "Glass.ImpactHard"
"impactsoft" "Glass.ImpactSoft"
-
+
"bulletimpact" "Glass.BulletImpact"
-
+
// "strain" "Glass.Strain"
"break" "Glass.Break"
@@ -584,7 +584,7 @@
"gravel"
{
"base" "rock"
- "friction" "0.4" //0.8 for cs
+ "friction" "0.4" //0.8 for cs
"stepleft" "Gravel.StepLeft"
"stepright""Gravel.StepRight"
}
@@ -598,7 +598,7 @@
"concrete_block"
{
-
+
"base" "concrete"
"impacthard" "Concrete_Block.ImpactHard"
}
@@ -707,7 +707,7 @@
"base" "dirt"
"density" "800"
"friction" "0.35" //0.8 for cs
-
+
"stepleft" "Snow.StepLeft"
"stepright" "Snow.StepRight"
@@ -716,6 +716,12 @@
"gamematerial" "J"
}
+"snow_normal"
+{
+ "base" "snow"
+ "friction" "0.8"
+}
+
"ice"
{
"density" "917"
@@ -735,7 +741,7 @@
"thickness" "0.1"
"elasticity" "0.01"
"friction" "0.8"
-
+
"impacthard" "Carpet.Impact"
"bulletimpact" "Carpet.BulletImpact"
"scraperough" "Carpet.Scrape"
@@ -849,7 +855,7 @@
"plastic"
{
- "base" "Plastic_Box"
+ "base" "Plastic_Box"
"audioroughnessfactor" "0.1"
"bulletimpact" "Plastic_Box.ImpactHard"
@@ -1186,8 +1192,8 @@
// Episode 2
"cavern_rock"
{
- "base" "rock"
-
+ "base" "rock"
+
"density" "700"
"elasticity" "0.1"
"friction" "0.8"
@@ -1196,14 +1202,14 @@
"scrapesmooth" "Rock.ImpactSoft"
"impacthard" "CavernRock.ImpactHard"
"impactsoft" "CavernRock.ImpactSoft"
-
+
"gamematerial" "O"
}
"advisor_shield"
{
- "base" "rock"
-
+ "base" "rock"
+
"density" "700"
"elasticity" "0.1"
"friction" "0.8"
@@ -1212,13 +1218,13 @@
"scrapesmooth" "NPC_Advisor.shieldblock"
"impacthard" "NPC_Advisor.shieldblock"
"impactsoft" "NPC_Advisor.shieldblock"
-
- "gamematerial" "Z" // <--- Whatever you make the character index in decals.h
+
+ "gamematerial" "Z" // <--- Whatever you make the character index in decals.h
}
"antlion_eggshell"
{
- "base" "flesh"
+ "base" "flesh"
"bulletimpact" "Flesh.ImpactHard"
"impacthard" "Flesh.ImpactHard"
"impactsoft" "Flesh.ImpactHard"
@@ -1319,8 +1325,8 @@
"audioroughnessfactor" "0.1"
"audioHardMinVelocity" "500" // 500
- "impactHardThreshold" "0.5"
-
+ "impactHardThreshold" "0.5"
+
"impacthard" "MetalVehicle.ImpactHard"
"impactsoft" "MetalVehicle.ImpactSoft"
@@ -1367,7 +1373,7 @@
"antlion"
{
"base" "alienflesh"
-
+
"gamematerial" "A"
}
@@ -1521,7 +1527,7 @@
"impactsoft" "Rubber_Tire.ImpactSoft"
"strain" "Phx_Rubber_Tire.Strain"
-
+
"scraperough" "Phx_Rubber_Tire.Strain"
"scrapesmooth" "Phx_Rubber_Tire.Strain"
@@ -1536,7 +1542,7 @@
"impactsoft" "Rubber_Tire.ImpactSoft"
"strain" "Phx_Rubber_Tire.Strain"
-
+
"scraperough" "Phx_Rubber_Tire.Strain"
"scrapesmooth" "Phx_Rubber_Tire.Strain"

1 comment on commit 8640ee5

@meatspace

luv u

Please sign in to comment.