weeztor / darkrp

Automatically exported from code.google.com/p/darkrp
0 stars 1 forks source link

Ammo problems #918

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the problem?
Creating ammo

Do you have any errors? serverside or clientside? If you do, which ones?
After creating a new ammo type in the ammotypes.lua file, and entering game I 
select the weapon that I want to use and it doesn't show the custom ammo in the 
bottom right.

Are you using the downloaded version or an SVN revision (if SVN, which
revision number)?
SVN

Please provide any additional information below.
I did edit the weapons so they'd register the ammo type. Is there a file that 
i'm not editing?

Original issue reported on code.google.com by snoopy12...@gmail.com on 6 Aug 2012 at 4:03

GoogleCodeExporter commented 9 years ago
Why would you even want to see anything from DarkRP in the bottom right?

Original comment by fpeijnen...@gmail.com on 6 Aug 2012 at 4:16

GoogleCodeExporter commented 9 years ago
dont worry about that. The weapon doen't register the ammo, I go into F4 
purchase the ammo but it doesn't work. After purchasing the ammo I can fire off 
an entire clip and I can't reload. Am I editing the right files? Can you give 
me an example of a custom ammo type (not the ones that are already created).

Original comment by snoopy12...@gmail.com on 7 Aug 2012 at 5:47

GoogleCodeExporter commented 9 years ago
bump

Original comment by snoopy12...@gmail.com on 7 Aug 2012 at 10:34

GoogleCodeExporter commented 9 years ago
that's not how it works here lol.

Original comment by fpeijnen...@gmail.com on 7 Aug 2012 at 6:34

GoogleCodeExporter commented 9 years ago
Make sure the ammo has the exact right name. Capitalization does matter.
If it still doesn't work, contact the SWEP creator.

Original comment by fpeijnen...@gmail.com on 7 Aug 2012 at 7:17

GoogleCodeExporter commented 9 years ago
Ok this is my code for ammotypes.lua

GM:AddAmmoType("rifle", "Rifle ammo", "models/Items/BoxMRounds.mdl", 80, 40)

Then in madcows AK47

SWEP.Primary.ClipSize       = 30                    // Size of a clip
SWEP.Primary.DefaultClip    = 30                    // Default number of bullets in a clip
SWEP.Primary.Automatic      = true              // Automatic/Semi Auto
SWEP.Primary.Ammo           = "rifle"

In theory this should work, am I correct or am I forgetting to edit a file?

Original comment by snoopy12...@gmail.com on 8 Aug 2012 at 4:59