Einheit-101 Posted January 27, 2014 Posted January 27, 2014 Hello Community. I want to change the "Shotgun" into a gun like the standard "Rifle", i make a WW2 Server and the other team uses the Rifle already. So i decided to change some properties of the Shotgun. I changed the following: setWeaponProperty("shotgun", "std", "maximum_clip_ammo",8) setWeaponProperty("shotgun", "std", "weapon_range", 80) setWeaponProperty("shotgun", "std", "accuracy", 0.9) but i have 2 problems: - The gun "pumps" after every shot, but it should fire all 8 Bullets without pumping - The gun fires more than 1 bullet Is there a way to disable the pumping animation and change the number of Bullets the shotgun fires? Another little question: What does the following flag do? 0x080000 - expands Thanks in advance.
Moderators IIYAMA Posted January 28, 2014 Moderators Posted January 28, 2014 This one can: 0x000400 - fires every frame within loop (ie paint spray) Except it also brings some problems with it. - You have to limit the shooting rate manually. > "onClientWeaponFire" > toggleControl > timer/getTickCount()+onClientRender- Add reload animation. Because the default reload animation is not the same as m4/ak47/mp5 etc. Good luck! Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Einheit-101 Posted January 29, 2014 Author Posted January 29, 2014 Thank you a lot. i will try this very soon. I changed a lot of properties already and i had to change some reload animations/ fire rates , too. So my only problem was the pumping.
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