Jump to content

Dual wield flag


DRW

Recommended Posts

So I'm making a simple script that sets a weapon dual wielded when a player is "pro". The problem is that anims don't work well, the weapons like AK47, Spaz12 and others keep their arms up and look like they aren't shooting in front of them. I want to make the weapons shoot like a Tec9 or a Uzi (Being able to run with the dual-wielded guns and having the same shooting and movin anims)

addEventHandler ("onPlayerWeaponSwitch", getResourceRootElement(getThisResource()), function () 
  
setWeaponProperty(23,"pro","flags",0x000800) 
setWeaponProperty(24,"pro","flags",0x000800) 
setWeaponProperty(25,"pro","flags",0x000800) 
setWeaponProperty(26,"pro","flags",0x000800) 
setWeaponProperty(27,"pro","flags",0x000800) 
setWeaponProperty(28,"pro","flags",0x000800) 
setWeaponProperty(29,"pro","flags",0x000800) 
setWeaponProperty(30,"pro","flags",0x000800) 
setWeaponProperty(31,"pro","flags",0x000800) 
setWeaponProperty(33,"pro","flags",0x000800) 
setWeaponProperty(34,"pro","flags",0x000800) 
  
  
end) 

A648B1E1D710D756404A517C1E6195F7540A628B

Link to comment

try this untested

setWeaponProperty(30, "pro", "flags", 0x000020) 
setWeaponProperty(30, "pro", "flags", 0x000800) 
setWeaponProperty(30, "pro", "flags", 0x000002) 
setWeaponProperty(30, "pro", "anim_group",13) 
setWeaponProperty(30, "pro", "accuracy",2000) 

'

I created something similar long back in mta 1.3, It allowed me to duel wield ak,m4 and olther weapon but it had a crash when i use 2 rocket. i'll look into resource folder when i'm free and send it to you.

Link to comment
try this untested
setWeaponProperty(30, "pro", "flags", 0x000020) 
setWeaponProperty(30, "pro", "flags", 0x000800) 
setWeaponProperty(30, "pro", "flags", 0x000002) 
setWeaponProperty(30, "pro", "anim_group",13) 
setWeaponProperty(30, "pro", "accuracy",2000) 

'

I created something similar long back in mta 1.3, It allowed me to duel wield ak,m4 and olther weapon but it had a crash when i use 2 rocket. i'll look into resource folder when i'm free and send it to you.

It's not working very well, actually it does the same as before but now shows up only one weapon.

Link to comment

try this

setWeaponProperty(30, "pro", "flags", 0x000020) 
setWeaponProperty(30, "pro", "flags", 0x000800) 
setWeaponProperty(30, "pro", "flags", 0x000002) 
setWeaponProperty(30, "pro", "flag_type_dual", true) 
setWeaponProperty(30, "pro", "accuracy",2000) 

It will make your ak duel wield and also let to run with that weapon.

0UtgSYI.jpg

Edit: It is also working with Rpg's but you can't run with them.

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