Bean666 Posted February 17, 2021 Share Posted February 17, 2021 (edited) does aim_weapon control state affect the player blocking punches? the rightclick + shift as I can see its not. how do i disable this? since i'm having a bot system that punches 1 hit, but when doing the blocking animation the punches dont deal damage. Edited February 17, 2021 by Bean666 Link to comment
Addlibs Posted February 17, 2021 Share Posted February 17, 2021 aim_weapon and jump held together with fists or a melee weapon equipped determine whether a player/ped is blocking. The player/ped also needs to be on ground and not gliding or falling. You could disable the jump control while aim_weapon is pressed to prevent players from blocking. Link to comment
Bean666 Posted February 17, 2021 Author Share Posted February 17, 2021 (edited) 14 minutes ago, Addlibs said: aim_weapon and jump held together with fists or a melee weapon equipped determine whether a player/ped is blocking. The player/ped also needs to be on ground and not gliding or falling. You could disable the jump control while aim_weapon is pressed to prevent players from blocking. i tried aim_weapon and jump together as they are right click and shift, but it didn't work as well. i could still block the punches damage, i guess i can do nothing, but good idea for disabling the jump control if i disable jump control serverside when entering colshape serverside(hitElement), will it disable it for other players not in the colshape as well? cuz if that happens i'll just do triggerClientEvent and toggle the jump to false from client. @Addlibs Edited February 17, 2021 by Bean666 Link to comment
Ayush Rathore Posted February 18, 2021 Share Posted February 18, 2021 15 hours ago, Bean666 said: i tried aim_weapon and jump together as they are right click and shift, but it didn't work as well. i could still block the punches damage, i guess i can do nothing, but good idea for disabling the jump control if i disable jump control serverside when entering colshape serverside(hitElement), will it disable it for other players not in the colshape as well? cuz if that happens i'll just do triggerClientEvent and toggle the jump to false from client. @Addlibs Please provide the important part of script Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now