Is it possible to change spear to only attack left and right, without following the cursor? And if it is, I suppose I have to change a .lua file? And if yes, where can I find this .lua file?
i'm not sure for spears, but i remember for guns, i found in the activeitem a stances section, which allowed disabling aiming or flipping while holding the weapon. Code: "stances" : { "idle" : { "armRotation" : 0, "weaponRotation" : 0, "allowRotate" : true, "allowFlip" : true }, "fire" : { "duration" : 0, "armRotation" : 0, "weaponRotation" : 0, "allowRotate" : true, "allowFlip" : true }, "cooldown" : { "duration" : 0.1, "armRotation" : 0, "weaponRotation" : 0, "allowRotate" : true, "allowFlip" : true } } changing allowRotate and/or allowFlip might be able to do these things. try adding something similar to your activeitem - i'm not able to test anything at the moment
It's the same case as with katars, it says there is no such item. I've tried doing the same thing as with katars, which is placing all neccessary files in the same folder, and changing paths, but it doesn't work.
It doesn't say anything about my weapon, it just still attacks in all directions. This piece of code just doesn't work.
Yes, I've fixed the first problem by uploading the mod to steam (which is weird). What is wrong with this code? Maybe it just doesn't work for spear?
So the code that @Bloopers shared is part of a weaponability. To see how you can override these values from an activeitem observe daggers. But also i fixed your file using Bloopers concept.