Sign in to follow this  

弹弓仇恨问题


HengZi
  • Pending

近期翻代码的时候发现,slingshotammo.lua的第213行和214行重复调用了projectile组件的SetOnHitFn函数,这样做会导致原本设定的OnPreHit函数没有被正常调用到。在游戏里的具体表现就是使用弹药还是会把战斗中的目标的仇恨吸引到射击者自己身上,请问这是有意为之还是失误?如果是失误麻烦修正下。

另外,如果要正确调用OnPreHit的话,你会发现在使用slingshotammo_freeze灭火的时候,如果目标无combat组件会报错。也请一并修复~


Steps to Reproduce

slingshotammo.lua这个文件的213行和214行。

Sign in to follow this  


User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now