func_wall is a glass?

Сообщения
219
Реакции
42
How to know if a func_wall is a glass?
Seems to has rendermode = 2.

How to get it?
Where are the offsets for func_wall?

Example about getting glass at func_breakable by m_Material offset:
Код:
RegisterHam(Ham_TraceAttack, "func_breakable", "OnHam__TraceAttack_Glass_Post", 1);

public OnHam__TraceAttack_Glass_Post(const victim, const attacker, const Float:damage, const Float:direction[3], const tracehandle, const damage_type)
{
    // https://wiki.alliedmods.net/CBreakable_(CS)
    // m_Material = 36
    // XO_CBREAKABLE = 4
    // enum _:Materials{ matGlass = 0, matWood, matMetal, matFlesh, matCinderBlock, matCeilingTile, matComputer, matUnbreakableGlass, matRocks, matNone, matLastMaterial }
    new m_material = get_pdata_int(victim, 36, 4);
    client_print(attacker, print_chat, "material: %d", m_material)
}
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу