文♂
|
分享:
▼
x0
|
[1.6][插件] [物件] 如何用fakemeta寫出一塊玻璃
複製程式
new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "func_wall"))
set_pev(ent, pev_health, 1.0)
set_pev(ent, pev_takedamage, DAMAGE_NO)
set_pev(ent, pev_controller_0, 125);
set_pev(ent, pev_controller_1, 125);
set_pev(ent, pev_controller_2, 125);
set_pev(ent, pev_controller_3, 125)
set_pev(ent, pev_classname, glass_classname)
new Float:maxs[3] = {200.0, 0.0, 200.0}
new Float:mins[3] = {-200.0, -0.0, -200.0}
engfunc(EngFunc_SetSize, ent, mins, maxs)
set_pev(ent, pev_solid, SOLID_BBOX)
set_pev(ent, pev_origin, origin)
set_pev(ent, pev_angles, angles)
set_pev(ent, pev_animtime, get_gametime())
set_anim(ent, 0)
set_kvd(0, KV_ClassName, glass_classname)
set_kvd(0, KV_KeyName, "material")
set_kvd(0, KV_Value, "0")
set_kvd(0, KV_fHandled, 0)
dllfunc(DLLFunc_KeyValue, ent, 0) 我現在不能寫出一塊玻璃 請問還少了怎麼了
|
|
x0
[樓 主]
From:香港網上行 | Posted:2011-08-23 22:32 |
|
|
|