Garry's Mod

Garry's Mod

[CW2] KK INS2/DOI SWEPs (2018)
Loli 2016 年 12 月 7 日 上午 5:52
(Dev) Disableing bolt animations depending on fire mode
I was wondering how one would go about making it so that a gun that uses bolt animations, like a shotgun's pump animation, will only play the pump animation depending on the fire mode selected.
so say I have a shotgun that has two fire modes, pump and semi, and I want it to only play the pump animation when on pump, I've been fiddling around with it myself but I'm lost on how to get it properly working.
< >
正在显示第 1 - 3 条,共 3 条留言
Knife Kitty  [开发者] 2016 年 12 月 8 日 上午 2:37 
try
function SWEP:IndividualThink_INS2() if self.FireMode == "semi" then self.boltAction_isShot = false end end

Or you can copy function SWEP:doBoltAction() from cw_kk_ins2_base_main into your swep/shared.lua and edit it to whatever you want.
最后由 Knife Kitty 编辑于; 2016 年 12 月 8 日 上午 2:42
Loli 2016 年 12 月 8 日 下午 7:18 
It works! thank you.
Looks like I was really close on figuring it out myself, was just using the wrong function.
God's Helix 2016 年 12 月 13 日 上午 6:49 
Sounds like someone's making a SPAS-12. :o
最后由 God's Helix 编辑于; 2016 年 12 月 13 日 上午 6:50
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50