xyxy Posted April 5, 2014 Share Posted April 5, 2014 hey guys i'm totally a beginner for scripting and i need to clarify few things Q1: can any one tell me how to edit the weapon property? i searched it for all over the places and still couldn't find it Q2: when i use M4 i can't side ways while shooting i know that the M4 value should be changed, but i couldn't find it. can you tell me the exact path for that? Q3 : I want to remove the limping effect of the player. what exactly should i do? remove that part in the script? plzz help Link to comment
myonlake Posted April 5, 2014 Share Posted April 5, 2014 Like you have in the thread subject, use setWeaponProperty function to do all that. -- Allow moving and aiming simultaneously setWeaponProperty( 31, "poor", "flag_move_and_aim", true ) setWeaponProperty( 31, "std", "flag_move_and_aim", true ) setWeaponProperty( 31, "pro", "flag_move_and_aim", true ) -- Allow moving and shooting simultaneously setWeaponProperty( 31, "poor", "flag_move_and_shoot", true ) setWeaponProperty( 31, "std", "flag_move_and_shoot", true ) setWeaponProperty( 31, "pro", "flag_move_and_shoot", true ) Note, that the above is only possible from version 1.3 r6142 onwards. What do you mean by limping effect? Link to comment
Ab-47 Posted April 5, 2014 Share Posted April 5, 2014 What do you mean by limping effect? I think he means the use of Alt + W (Walking, but in the 'ready-to-attack' mode). Link to comment
xyxy Posted April 5, 2014 Author Share Posted April 5, 2014 (edited) Like you have in the thread subject, use setWeaponProperty function to do all that. -- Allow moving and aiming simultaneously setWeaponProperty( 31, "poor", "flag_move_and_aim", true ) setWeaponProperty( 31, "std", "flag_move_and_aim", true ) setWeaponProperty( 31, "pro", "flag_move_and_aim", true ) -- Allow moving and shooting simultaneously setWeaponProperty( 31, "poor", "flag_move_and_shoot", true ) setWeaponProperty( 31, "std", "flag_move_and_shoot", true ) setWeaponProperty( 31, "pro", "flag_move_and_shoot", true ) Note, that the above is only possible from version 1.3 r6142 onwards. What do you mean by limping effect? limping effect mean when player get shot on his leg he start to limp instead of running about the weapon property thing :- mate i have read all the things before posting this thread but i dont know how to find that exact file that is the problem im facing right now ... i know how to edit those figures but i dont know in which file.... Edited April 5, 2014 by Guest Link to comment
xyxy Posted April 5, 2014 Author Share Posted April 5, 2014 What do you mean by limping effect? I think he means the use of Alt + W (Walking, but in the 'ready-to-attack' mode). no friend ive given the answer hope u will understand it Link to comment
Moderators IIYAMA Posted April 5, 2014 Moderators Share Posted April 5, 2014 limping from stealth? It is in noisebar.lua Remove:(circa at line 180 t/m 193) if isPedInVehicle (getLocalPlayer ()) then return else islimping = getElementData ( getLocalPlayer (), "legdamage" ) if islimping == 1 then local makeplayerlimp = setTimer ( limpeffectparttwo , 200, 1, source, key, state ) if lookingthroughcamera ~= 1 then toggleControl ("right", false ) toggleControl ("left", false ) toggleControl ("forwards", false ) toggleControl ("backwards", false ) end end end Link to comment
xyxy Posted April 6, 2014 Author Share Posted April 6, 2014 limping from stealth?It is in noisebar.lua Remove:(circa at line 180 t/m 193) if isPedInVehicle (getLocalPlayer ()) then return else islimping = getElementData ( getLocalPlayer (), "legdamage" ) if islimping == 1 then local makeplayerlimp = setTimer ( limpeffectparttwo , 200, 1, source, key, state ) if lookingthroughcamera ~= 1 then toggleControl ("right", false ) toggleControl ("left", false ) toggleControl ("forwards", false ) toggleControl ("backwards", false ) end end end thnx mate. this is wat i excatly wanted 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