p410n3 / knifechoose.nut

VScript to use almost all knife models on a local CS:GO server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Major issues with the script / the script doesn't function well on older CS:GO builds

sjain882 opened this issue · comments

commented

Hey,

First thanks for making such an amazing script.

I often play CS:GO copies from 2014, 2015 and 2016 (download_depot then running game while Steam is running) for fun on my old PC.

The script worked a dream before v3.0 major rewrite where you change the knife instead of the viewmodel, which fixes issues. All I have to do is not select knives not added that year to prevent a game crash if I accidentally select it (as the models obviously didn't exist in the game at that year).

However in v3.0 the script barely works, nothing works at all. Trying to select a knife simply primary fires the current weapon silently.

I also tried mp_drop_knife_enable 1 to fix it. And tried pressing HOME key before and after using this command. Here is the problem:

https://streamable.com/0vjya

I know you guys don't really have the time or incentive to support older version but I would appreciate if anyone could look into it. Perhaps the script uses a function only added in later versions of the game?

Thanks

commented

The game doesn't allow you to pick up knives you don't own with the exception of the golden knife from gungame, that's why the best I could do before was to replace the viewmodel. The workaround I added in the 3.0 version works by changing the class of the knife to weapon_knifegg, so the game thinks it is the gungame knife and allows you to pick it up. If the workaround doesn't work in the old game versions, there's nothing really I can do. But I guess you can still use the 2.x script. There's one more workaround in my internal build that allows the script to be loaded in for the entire duration of the map, not only the current round, I guess I may even backport it to the 2.x branch if you are still going to use it