|
发表于 2010-1-4 18:13:48
|
显示全部楼层
来自 中国–安徽–芜湖
射速代码简单
if(g_GunspeedLevel[id] > 0) {
new Gun = read_data(2)
static weapon[32],Ent
get_weaponname(Gun,weapon,31)
Ent = fm_find_ent_by_owner(-1,weapon,id)
new Float:N_Speed
if(Ent) {
N_Speed = 1.0 - 0.05*g_GunspeedLevel[id]
new Float:Delay = get_pdata_float( Ent, 46, 4) * N_Speed
if (Delay > 0.0){
set_pdata_float( Ent, 46, Delay, 4)
}
}
} |
|