下面是引用 Abcdzxc555 於 2010-05-21 19:06 發表的 :
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)
}
本草綱目記載…不是…是<ham_const.inc>模塊記載:
/**
* Description: Called when the main attack of a weapon is triggered.
* Forward params: function(this)
* Return type: None.
* Execute params: ExecuteHam(Ham_Weapon_PrimaryAttack, this);
*/
Ham_Weapon_PrimaryAttack,
/**
* Description: Called when the secondary attack of a weapon is triggered.
* Forward params: function(this)
* Return type: None.
* Execute params: ExecuteHam(Ham_Weapon_SecondaryAttack, this);
*/
Ham_Weapon_SecondaryAttack,
「main attack」≠「main weapon」…
「main attack」指的就是武器的攻擊狀態…
「secondary attack」指的是開鏡、裝消音器、三連發這類的…