Jump to content

Change Shotgun properties


Einheit-101

Recommended Posts

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.

Link to comment
  • Moderators

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!

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