3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 2828|回复: 2
打印 上一主题 下一主题

[求助] Lua无限弹药问题。!!

[复制链接]

1

主题

74

帖子

120

积分

中级玩家

Rank: 3Rank: 3

贡献度
1
金元
1155
积分
120
精华
0
注册时间
2014-3-4
跳转到指定楼层
主题
发表于 2014-5-26 13:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
-- 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

这个是无限弹药和武器无后坐力。怎么去除武器无后坐力功能。只是单纯想要无限弹药。而且用了这个代码感觉武器射速和伤害也提高了。求大神帮助!!!

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-5-20 05:35 , Processed in 0.035834 second(s), 15 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表