• Any method to make third-person reload animations slower or faster?
    7 replies, posted
From what i've seen, there's no GetWorldModel function (unless i havent been looking enough) Is there anyway to make the third-person reload animation slower? (on the default holdtypes) I've tried this (it did not work very well) [CODE]self.Owner:GetWeaponWorldModel():SetPlaybackRate(0.1)[/CODE]
You are setting the playback rate of a string. You should be setting the playback rate of the player since they are the ones performing the animation.
[QUOTE=code_gs;51983153]You are setting the playback rate of a string. You should be setting the playback rate of the player since they are the ones performing the animation.[/QUOTE] what should i use to identify the player? im not sure if there's any better method to it
[QUOTE=ricesoda;51983171]what should i use to identify the player? im not sure if there's any better method to it[/QUOTE] self:GetOwner()?
[QUOTE=code_gs;51983183]self:GetOwner()?[/QUOTE] i've already tried that, there's no error but it does not alter the animation in any way. Unless i'm doing something wrong.
That's because it's constantly set here: [url]https://github.com/garrynewman/garrysmod/blob/03b82174f0884b60d6c1fa4a9a25e55b500ffb27/garrysmod/gamemodes/base/gamemode/animations.lua#L203[/url] You'll have to hook into UpdateAnimations. You'll probably have to hook into and return in UpdateAnimations during your reload.
[QUOTE=code_gs;51983198]That's because it's constantly set here: [url]https://github.com/garrynewman/garrysmod/blob/03b82174f0884b60d6c1fa4a9a25e55b500ffb27/garrysmod/gamemodes/base/gamemode/animations.lua#L203[/url] You'll have to hook into UpdateAnimations. You'll probably have to hook into and return in UpdateAnimations during your reload.[/QUOTE] where would i put this updateanimations function? would it have to be in a script seperate from my weapon's code?
Sorry, you need to Log In to post a reply to this thread.