How do I disable crouching, I've tried a lot of things like actions, skins, weapon Settings, and it doesn't work very well, my current solution is to modify the firing motion of the weapon, but I want to do it better, like the crouching button doesn't exist.
U can try player.Anim?
Use onGameKeysChange(player, oldkey, newkey). Then bitwise AND with number corresponding to crouching.
The password for this key is 256,288. My return false does not disable these keys
Instead of returning false, did you tried setting Animation or
player.Pos=player.Pos
I've tried. I've never been the same as lw,Thanks for your advice
Quote from: PSL on Apr 08, 2023, 01:00 PMI've tried. I've never been the same as lw,Thanks for your advice
Use SetWeaponDataValue (http://wiki.thijn.ovh/index.php?title=Scripting/Squirrel/Functions/SetWeaponDataValue), with it you can make it impossible to crouch with weapon in hand.
The problem has been solved. Thank you all for your help.
Quote from: PSL on Apr 29, 2023, 03:09 AMThe problem has been solved. Thank you all for your help.
Hey, mind telling us the solution? It would be helpful for those who trying to remove crouch as well :D
I changed the shotgun data, changing the firing action to standing fire! SetWeaponDataValue(19,24,0);