下面是引用 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」指的是开镜、装消音器、三连发这类的…