Garry's Mod

Garry's Mod

[ArcCW] Arctic's Customizable Weapons (Base)
xdshot 2020 年 7 月 12 日 下午 7:12
wep:GetIronsight()
Please implement wep:GetIronsight() function to know if user currently ironsights weapon
< >
正在显示第 1 - 7 条,共 7 条留言
datæ 2020 年 7 月 12 日 下午 8:04 
You can use wep.Sighted but it sometimes messes up and says you're not sighted when you are
8Z  [开发者] 2020 年 7 月 12 日 下午 8:09 
Try this:
wep:GetState() == ArcCW.STATE_SIGHTS
xdshot 2020 年 7 月 13 日 上午 7:19 
Try this:
'd like the function to be implemented in your base anyway. Many SWEPs bases have it, and I'm lazy to re-download my addon, unpack, update by adding another base support, etc.
最后由 xdshot 编辑于; 2020 年 7 月 13 日 上午 7:19
xdshot 2020 年 7 月 13 日 上午 7:22 
And that ArcCW. thing is bad. If the addon is not mounted, will get nil value. Adding additional workarounds for checking ArcCW table means unreasonably bloating with additional lines in my addon.
Arctic  [开发者] 2020 年 7 月 13 日 下午 7:02 
引用自 xdshot
Addon i'm referencing to:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1308077613
ArcCW does this itself anyway
8Z  [开发者] 2020 年 7 月 17 日 下午 10:31 
If you want to ensure it is an ArcCW weapon, do
if wep.ArcCW and wep:GetState() == ArcCW.STATE_SIGHTS then

Not much bloat at all.
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50