How can crouching be prohibited

Started by PSL, Mar 25, 2023, 07:34 AM

Previous topic - Next topic

PSL

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.

2b2ttianxiu


habi

#2
Use onGameKeysChange(player, oldkey,  newkey).  Then bitwise AND with number corresponding to crouching.

PSL

The password for this key is 256,288. My return false does not disable these keys

habi

#4
Instead of returning false,  did you tried setting Animation or
player.Pos=player.Pos

PSL

I've tried. I've never been the same as lw,Thanks for your advice

Diego^

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, with it you can make it impossible to crouch with weapon in hand.
BRL's Developer.

PSL

The problem has been solved. Thank you all for your help.

Ridwan Rz

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

PSL

I changed the shotgun data, changing the firing action to standing fire! SetWeaponDataValue(19,24,0);