Material type
Jump to navigation
Jump to search
Todo: What's the difference between this and material surface properties? This seems to be a leftover from
materials.txt.
Material types are bullet impacts. To make a material use a particular material type, editscripts/surfaceproperties.txt (or scripts/surfaceproperties_mod.txt) file and set "gamematerial" to a string containing the letter shown below. For example, to make something metal:
"custom_surface"
{
// ...
"gamematerial" "M"
}- Find code file
decals.h(found in\server\decals.h). - To add, place
#define CHAR_TEX_CUSTOMNAME '2' (any character). - To change, find
CHAR_TEX_UNUSED(or used) change it toCHAR_TEX_CUSTOMNAME 'R' (any character). - Don't forget to modify the
s_pImpactEffectarray infx_impact.cpp(found in\client\fx_impact.cpp).
List of Material Types
Half-Life 2
Half-Life 2: Episode Two
warp_shield_impact and saved it as new_impact.pcf file.