Follow up on the Holdtype glitches?

View previous topic View next topic Go down

Follow up on the Holdtype glitches?

Post  BFG on August 16th 2014, 1:37 am

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

View user profile

Back to top Go down

Re: Follow up on the Holdtype glitches?

Post  Ablationer on August 16th 2014, 10:00 am

No I haven't, because I'm not sure what the alternative for it is.

_________________
avatar
Ablationer
AKA Bob Frenchman

Posts : 1261
Join date : 2012-05-27
Age : 28
Location : Canada

View user profile http://bobszrp.idfforum.com

Back to top Go down

Re: Follow up on the Holdtype glitches?

Post  BFG on August 16th 2014, 11:12 am

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.

BFG

Posts : 46
Join date : 2013-10-19

View user profile

Back to top Go down

Re: Follow up on the Holdtype glitches?

Post  BFG on August 18th 2014, 12:40 pm

So I'm guessing SetHoldType didn't work for you?

BFG

Posts : 46
Join date : 2013-10-19

View user profile

Back to top Go down

Re: Follow up on the Holdtype glitches?

Post  Ablationer on August 18th 2014, 1:28 pm

I changed it

_________________
avatar
Ablationer
AKA Bob Frenchman

Posts : 1261
Join date : 2012-05-27
Age : 28
Location : Canada

View user profile http://bobszrp.idfforum.com

Back to top Go down

Re: Follow up on the Holdtype glitches?

Post  BFG on August 18th 2014, 6:36 pm

o

BFG

Posts : 46
Join date : 2013-10-19

View user profile

Back to top Go down

Re: Follow up on the Holdtype glitches?

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum