namazso / nSkinz

Skin changer for CS:GO
MIT License
220 stars 116 forks source link

Is it possible to fix animation timings? #202

Open cryeprecision opened 4 years ago

cryeprecision commented 4 years ago

After playing around with nSkinz for some time I've noticed an issue that really bugs me, while the animations are generally all fixed there is a noticeable cut between them when not playing on a local server or playing with net_fakelag enabled. Since my explanation is probably not the best I've recorded what I mean by that.

here you can see the animation skipping on the first draw and transitioning correctly on the second draw example

~~Here you can see, that the default knife is always playing it's animation correctly from the beginning, even when immediately switching to the inspect animation, this is also the case when using net_fakelag default knife without fakelag default knife with fakelag~~

~~But when using a custom knife, e.g. the classic knife, the animation seems to be cut off when immediately inspecting even without fakelag custom knife without fakelag~~ custom knife with fakelag

at the end of the 'custom knife with fakelag' video (~0:45) i turn down net_fakelag to 80 or something, that's when the cut in the animation is most noticeable. It just skips the draw part and starts in the middle of the inspect animation.

I don't know if this is because the custom knives' animation timing differs from the default knife. But I'd like to know if someone already took a look at this issue and whether it is solvable with not too much effort (mainly because I don't have experience in reverse engineering)

Thanks for reading this, have a nice day :)

Also here is the correct sequence mapping for the classic knife

case FNV("models/weapons/v_knife_css.mdl"):
{
    switch (sequence)
    {
    case SEQUENCE_DEFAULT_LOOKAT01:
        return random_sequence(0, 1) ? 12 : 15;
    default:
        return sequence;
    }
}
NinjaDaddy commented 4 years ago

@cryeprecision Can this work on other knives which have different draw and inspect animations?

Because I also encountered the problem but only with those knives which have multiple draw and inspect animations.