Follow up on the Holdtype glitches?
2 posters
Page 1 of 1
Follow up on the Holdtype glitches?
Just wanted to hear what else Bob had to say about the ActIndex issue because if I understood him correctly when I first asked him, he has already switched off of the deprecated SetWeaponHoldType method, yet the error still persists?
BFG- Posts : 46
Join date : 2013-10-19
Re: Follow up on the Holdtype glitches?
No I haven't, because I'm not sure what the alternative for it is.
Re: Follow up on the Holdtype glitches?
Oh. Well.
Apparently what happened is that the update Kilburn released regarding holdtypes was actually supposed to fix holdtypes so that they would be properly predicted (if I remember correctly). Instead of using weapon:SetWeaponHoldType, the new way is to use SetHoldType, which calls setweaponholdtype internally and in sync on both server and every client or something like that. This is why before you'd have weapon bases that would change holdtypes for the gun depending on what the user was doing (aiming down sights, reloading if the coder wanted to use a different reload animation), but only the LocalPlayer could see them.
http://wiki.garrysmod.com/page/Weapon/SetHoldType
Should solve it I believe.
Apparently what happened is that the update Kilburn released regarding holdtypes was actually supposed to fix holdtypes so that they would be properly predicted (if I remember correctly). Instead of using weapon:SetWeaponHoldType, the new way is to use SetHoldType, which calls setweaponholdtype internally and in sync on both server and every client or something like that. This is why before you'd have weapon bases that would change holdtypes for the gun depending on what the user was doing (aiming down sights, reloading if the coder wanted to use a different reload animation), but only the LocalPlayer could see them.
http://wiki.garrysmod.com/page/Weapon/SetHoldType
Should solve it I believe.
BFG- Posts : 46
Join date : 2013-10-19
Re: Follow up on the Holdtype glitches?
So I'm guessing SetHoldType didn't work for you?
BFG- Posts : 46
Join date : 2013-10-19
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|