|
楼主 |
发表于 2006-12-11 19:29:13
|
显示全部楼层
来自 中国–陕西–西安
回复: [求助]如何实现丢枪的效果?
[php]
if(!is_user_alive(id)) return PLUGIN_HANDLED
new Float:origin[3]
new Float:maxbox[3] = 2.5,Float:minbox[3] = -2.5,Float:angles[3], gEnt
gEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
pev(id, pev_angles, angles)
pev(id, pev_origin, origin)
set_pev(gEnt, pev_classname, "my_customEnt")
set_pev(gEnt, pev_angles, angles)
set_pev(gEnt, pev_origin, origin)
set_pev(gEnt, pev_mins, minbox)
set_pev(gEnt, pev_maxs, maxbox)
set_pev(gEnt, pev_solid, 1)
set_pev(gEnt, pev_movetype, 6)
set_pev(gEnt, pev_velocity, 450.0)
set_pev(gEnt, pev_iuser1, g_roundcount)
set_pev(gEnt, pev_iuser2, 1000)
set_pev(gEnt, pev_iuser3, id)
set_pev(gEnt, pev_fuser1, get_gametime())
engfunc(EngFunc_SetModel, gEnt, g_Model[0])
[/php]上面这段代码该怎么改?? |
|