引用 | 編輯
文♂
2010-05-21 02:18 |
樓主
▼ |
||
x0
按住開火會不斷地播放槍聲 不是elite的開火聲 是新的開火聲 複製程式 public fw_elite_PriAttack(weapon) { if (!pev_valid(weapon)) return HAM_IGNORED; static owner owner = pev(weapon, pev_owner) if (has_BlackWhite[owner]) { if (cs_get_weapon_ammo(weapon) > 0) { user_shoot[owner] = true } if (is_user_bot(owner)) { emit_sound(owner, CHAN_AUTO, BlackWhite_weapons, 1.0, ATTN_NONE, 0, 150) } else { emit_sound(owner, CHAN_WEAPON, BlackWhite_weapons, 1.0, ATTN_NORM, 0, PITCH_NORM) } } return HAM_IGNORED; } x0
|
引用 | 編輯
HsK
2010-05-21 02:28 |
1樓
▲ ▼ |
如果你想支援BOT
要用這 emit_sound(owner, CHAN_AUTO, SVD_weapons, 1.0, ATTN_NONE, 0, 100) x1 |
引用 | 編輯
a7811311622
2010-05-21 11:07 |
3樓
▲ ▼ |
引用 | 編輯
a7811311622
2010-05-21 13:59 |
5樓
▲ ▼ |
引用 | 編輯
文♂
2010-05-21 14:07 |
6樓
▲ ▼ |
public fw_elite_PriAttack(weapon)
{ if (!pev_valid(weapon)) return HAM_IGNORED; static owner owner = pev(weapon, pev_owner) if (has_BlackWhite[owner]) { if (cs_get_weapon_ammo(weapon) > 0) { user_shoot[owner] = true } if (!is_user_bot(owner)) { emit_sound(owner, CHAN_AUTO, zombiehunter_weapons, 1.0, ATTN_NONE, 0, 150) } else { emit_sound(owner, CHAN_WEAPON, zombiehunter_weapons, 1.0, ATTN_NORM, 0, PITCH_NORM) } } return HAM_IGNORED; } 請問a78大大 我的條件是不是設定錯了 有一個新問題就是 按住會不斷播音效 x0 |
引用 | 編輯
a7811311622
2010-05-21 14:12 |
7樓
▲ ▼ |
引用 | 編輯
a7811311622
2010-05-21 15:36 |
9樓
▲ ▼ |
引用 | 編輯
文♂
2010-05-21 15:44 |
10樓
▲ ▼ |
下面是引用 a7811311622 於 2010-05-21 15:36 發表的 : 不是連射 我弄了好多次了 一樣是按住不斷播放 請a78大大給我看看有什麼問題 複製程式 public fw_elite_PriAttack(weapon) { if (!pev_valid(weapon)) return HAM_IGNORED; static owner owner = pev(weapon, pev_owner) if (has_BlackWhite[owner]) { if (cs_get_weapon_ammo(weapon) > 0) { user_shoot[owner] = true } if (is_user_bot(owner)) { emit_sound(owner, CHAN_AUTO, BlackWhite_weapons, 1.0, ATTN_NONE, 0, 150) } else { emit_sound(owner, CHAN_WEAPON, BlackWhite_weapons, 1.0, ATTN_NORM, 0, PITCH_NORM) } } return HAM_IGNORED; } 複製程式 public fw_elite_PriAttack_Post(weapon) { if (!pev_valid(weapon)) return HAM_IGNORED; static owner owner = pev(weapon, pev_owner) if (has_BlackWhite[owner]) { if (user_shoot[owner]) { static Float:fire_rate fire_rate = get_pcvar_float(cvar_fire_rate) if (fire_rate > 0.0) { static Float:next_pri_attack_time next_pri_attack_time = get_weapon_next_pri_attack(weapon) * fire_rate set_weapon_next_pri_attack(weapon, next_pri_attack_time) } if (get_pcvar_num(cvar_bullet_tracer)) { static Float:origin1[3], Float:origin2[3] //, iOrigin[3] fm_get_aim_vector(owner, 40, origin1, origin2) origin1[2] += (pev(owner, pev_flags) & FL_DUCKING) ? 3.0 : -7.0 show_tracer_effect(origin1, origin2) } user_shoot[owner] = false } } return HAM_IGNORED; } x0 |
引用 | 編輯
a7811311622
2010-05-21 16:41 |
11樓
▲ ▼ |
引用 | 編輯
文♂
2010-05-21 16:42 |
12樓
▲ ▼ |
||||||||||
下面是引用 a7811311622 於 2010-05-21 16:41 發表的 : SMA在下面 請問有什麼問題
x0 |
引用 | 編輯
a7811311622
2010-05-21 19:01 |
13樓
▲ ▼ |
引用 | 編輯
Abcdzxc555
2010-05-21 19:06 |
14樓
▲ ▼ |
下面是引用 a7811311622 於 2010-05-21 19:01 發表的 : hamsandwich還有Ham_Weapon_SecondaryAttack的 Ham_Weapon_PrimaryAttack 是主槍開火時 Ham_Weapon_SecondaryAttack 是手槍開火時 RegisterHam(Ham_Weapon_SecondaryAttack, "weapon_elite", "fw_attack") public fw_attack(weapon) { for (new id = 1; id <= 32; id++) engfunc(EngFunc_EmitSound, id, CHAN_WEAPON, 槍聲, 1.0, ATTN_NORM, 0, PITCH_NORM) } x0 |
引用 | 編輯
文♂
2010-05-21 19:13 |
16樓
▲ ▼ |
下面是引用 Abcdzxc555 於 2010-05-21 19:06 發表的 : 看來我撞頭撞傻了 以為 Ham_Weapon_PrimaryAttack 是手槍開火 Ham_Weapon_SecondaryAttack 是主槍開火 x0 |
引用 | 編輯
Abcdzxc555
2010-05-21 19:19 |
18樓
▲ ▼ |
引用 | 編輯
a7811311622
2010-05-21 20:06 |
20樓
▲ ▼ |
下面是引用 Abcdzxc555 於 2010-05-21 19:06 發表的 :
「main attack」≠「main weapon」… 「main attack」指的就是武器的攻擊狀態… 「secondary attack」指的是開鏡、裝消音器、三連發這類的… x0 |
引用 | 編輯
a7811311622
2010-05-22 14:18 |
22樓
▲ ▼ |