中级玩家
 
- 贡献度
- 1
- 金元
- 1155
- 积分
- 120
- 精华
- 0
- 注册时间
- 2014-3-4
|
-- Infinite Ammo Clip
if not _fireWep then
_fireWep = NewRaycastWeaponBase.fire
end
function NewRaycastWeaponBase:fire( from_pos, direction, dmg_mul, shoot_player, spread_mul, autohit_mul, suppr_mul, target_unit )
_fireWep( self, from_pos, direction, dmg_mul, shoot_player, spread_mul, autohit_mul, suppr_mul, target_unit )
if managers.player:player_unit() == self._setup.user_unit then
self.set_ammo(self, 1.0)
end
end
这个是无限弹药和武器无后坐力。怎么去除武器无后坐力功能。只是单纯想要无限弹药。而且用了这个代码感觉武器射速和伤害也提高了。求大神帮助!!!
|
|