tictaczep / darkrp

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

Custom Ammo - Unavailable #860

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What is the problem?

Some added ammo types don't work. (XBowBolt use to work)

What steps will reproduce the problem?

Try to purchase the following ammo from F4/Items

GM:AddAmmoType("RPG_Round", "RPG Rounds", "models/Items/BoxMRounds.mdl", 15000, 
3)
GM:AddAmmoType("XBowBolt", "Crossbow Bolts", "models/Items/CrossbowRounds.mdl", 
1000, 5) 
GM:AddAmmoType("SMG1_Grenade", "SMG Grenades", "models/Items/AR2_Grenade.mdl", 
1000, 2) 
GM:AddAmmoType("AR2AltFire", "Plazma Ball", "models/Effects/combineball.mdl", 
1000, 1) 

The slam wouldn't work until I renamed "Slam" to "slam."
GM:AddAmmoType("slam", "Mines", "models/weapons/w_slam.mdl", 2000, 3)

Do you have any errors? serverside or clientside? If you do, which ones?

None, just a message "This ammo is unavailable"

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

1183

Please provide any additional information below.

Here is my whole ammotypes.lua file:

GM:AddAmmoType("pistol", "Pistol Ammo", "models/Items/BoxSRounds.mdl", 30, 50)
GM:AddAmmoType("357", "Penetrating Rounds", "models/Items/357ammo.mdl", 75, 50)
GM:AddAmmoType("buckshot", "Shotgun Ammo", "models/Items/BoxBuckshot.mdl", 75, 
50)
GM:AddAmmoType("smg1", "Rifle Ammo", "models/Items/BoxMRounds.mdl", 100, 50)
GM:AddAmmoType("RPG_Round", "RPG Rounds", "models/Items/BoxMRounds.mdl", 15000, 
3)
GM:AddAmmoType("slam", "Mines", "models/weapons/w_slam.mdl", 2000, 3)
GM:AddAmmoType("XBowBolt", "Crossbow Bolts", "models/Items/CrossbowRounds.mdl", 
1000, 5) 
GM:AddAmmoType("SMG1_Grenade", "SMG Grenades", "models/Items/AR2_Grenade.mdl", 
1000, 2) 
GM:AddAmmoType("AR2AltFire", "Plazma Ball", "models/Effects/combineball.mdl", 
1000, 1) 

I'm able to use the /giveammo command on the ammo that doesn't work.

Original issue reported on code.google.com by chaosity...@gmail.com on 22 Jun 2012 at 5:38

GoogleCodeExporter commented 8 years ago
You have bought a Pistol Ammo for $30
You have bought a Penetrating Rounds for $75
You have bought a Shotgun Ammo for $75
You have bought a Rifle Ammo for $100
You have bought a RPG Rounds for $15000
You have bought a Mines for $2000
You have bought a Crossbow Bolts for $1000
You have bought a SMG Grenades for $1000
You have bought a Plazma Ball for $1000

With the ammo types you gave me. It works fine for me.

Note that if you enter the chat command, it's case sensitive. /buyammo 
rpg_round won't work, while /buyammo RPG_Round will.

The "slam." thing is really weird. Are you running a mod that adds full stops 
(.) to every sentence in chat? That might be fucking things up.

Original comment by fpeijnen...@gmail.com on 22 Jun 2012 at 9:44

GoogleCodeExporter commented 8 years ago
And make sure you have the right games mounted (HL2, CSS, TF2?)

Original comment by fpeijnen...@gmail.com on 22 Jun 2012 at 9:45

GoogleCodeExporter commented 8 years ago
My fault of course! Sorry.

Frosty Anti Cheat is a piece of junk for many reasons.

Original comment by chaosity...@gmail.com on 24 Jun 2012 at 9:52