Jump to content

setweaponproperty help!!!


xyxy

Recommended Posts

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 :cry:

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 :cry::|

Link to comment

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
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 by Guest
Link to comment
  • Moderators

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...