Frictional Games Forum (read-only)

Full Version: materials.cfg
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does anyone know what exactly all of the properties for the <Material>s in materials.cfg?
Code:
    <Material
        Name = "Dyn_Paper"
        Elasticity = "0.25"
        KineticFriction = "0.25"
        StaticFriction = "0.3"
        
        Priority="2"
        
        ElasticityMode = "Min"
        FrictionMode = "Min"
        
        StepType="generic_hard"
        
        MinScrapeSpeed = "1"
        MinScrapeFreq = "0.9"
        MinScrapeFreqSpeed = "1.2"
        MaxScrapeFreq = "1.1"
        MaxScrapeFreqSpeed = "2.2"
        MiddleScrapeSpeed = "2"
        MinScrapeContacts = "3"
        ScrapeSoundName = "scrape_paper"
    >
Some of it, such as the friction options are self explanatory, but what exactly is for instance "MiddleScrapeSpeed" or "Priority"?
Can anybody at least tell me what the difference between "impact" and "hit" is?
Code:
        <Impact  MinSpeed="5.8" SoundName="impact_dirt_high" PSName="ps_impact_dirt_high" PSPrio="100"/>
        <Impact  MinSpeed="3.4" SoundName="impact_dirt_med" PSName="ps_impact_dirt_low" PSPrio="100"/>
        <Impact  MinSpeed="2" SoundName="impact_dirt_low" PSName="ps_impact_dirt_low" PSPrio="100"/>
        
        <Hit  MinSpeed="3" SoundName="" PSName="ps_hit_dirt" PSPrio="10" />
        <Hit  MinSpeed="1" SoundName=""  PSName="ps_hit_dirt" PSPrio="10" />

Or is Hit perhaps a product of when FG planned on including the pickaxe in Amnesia?
Well I found out what the <Hit> tag is for, if anyone is interested.
It was probably planned on being used for a player weapon, but it is also used for enemy attacks that miss you or otherwise hit other objects - for example; if a grunt attacks a wooden door, the hit_wood sound is played and the PS ps_hit_wood is created.