Garry's Mod

Garry's Mod

[CW2] KK INS2/DOI SWEPs (2018)
Loli Dec 7, 2016 @ 5:52am
(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.
< >
Showing 1-3 of 3 comments
Knife Kitty  [developer] Dec 8, 2016 @ 2:37am 
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.
Last edited by Knife Kitty; Dec 8, 2016 @ 2:42am
Loli Dec 8, 2016 @ 7:18pm 
It works! thank you.
Looks like I was really close on figuring it out myself, was just using the wrong function.
God's Helix Dec 13, 2016 @ 6:49am 
Sounds like someone's making a SPAS-12. :o
Last edited by God's Helix; Dec 13, 2016 @ 6:50am
< >
Showing 1-3 of 3 comments
Per page: 1530 50