ID:139305
 
Code:
obj/Pickup
Guns
var
ACapacity=0 // magazine capacity
MACapacity=0 // max magazine capacity
Firerate=0 // fire-rate at which the gun shoots
Fire_Power=0 // the weapons damage velocity
Reload_Time=0 // how long it takes to reload the gun
Reload_Sound=0 // reload audio
Fire_Sound=0 // fire audio
Flick_State=0 // whats the players icon gonna look like when we fire the gun
Ammo_Path=0 // ammo this gun uses
obj/Bullets/Bullet_Type=0 // the bullet it fires
Spread=0 // does the bullet spread into 3 when we fire it?
Beretta92
name="Beretta 92"
icon='machine gun.dmi'
icon_state="Beretta 92"
ACapacity=12
MACapacity=12
Firerate=6
Fire_Power=50
Reload_Time=18
Flick_State="lhandgun_fire"
Ammo_Path=/obj/Pickup/Ammo/HandgunAmmo
Bullet_Type=/obj/Bullets/nine_mm
UMP45
name="UMP45"
icon='shotgun.dmi'
icon_state="UMP45"
ACapacity=32
MACapacity=32
Firerate=1
Fire_Power=25
Reload_Time=26
Flick_State="lsmgun_fire"
Ammo_Path=/obj/Pickup/Ammo/macinegunAmmo
Bullet_Type=/obj/Bullets/nine_mm
Pump_Shotgun
name="Pump Shotgun"
icon='ak47.dmi'
icon_state="Pump Shotgun"
ACapacity=8
MACapacity=8
Firerate=12
Fire_Power=80
Reload_Time=24
Flick_State="sgun_fire"
Ammo_Path=/obj/Pickup/Ammo/ShotgunAmmo
Bullet_Type=/obj/Bullets/pellets
Spread=1
Click()
var/mob/M=usr
if(!(src in M))return
if(src.suffix)
src.suffix=null
M.overlays-=src.icon
M.weapon=null
else if(M.weapon)
M.weapon.suffix=null
M.overlays-=M.weapon.icon
M.weapon=src
src.suffix="[src.ACapacity]/[src.MACapacity]"
M.overlays+=src.icon
else
M.weapon=src
src.suffix="[src.ACapacity]/[src.MACapacity]"
M.overlays+=src.icon
verb
Drop()
set src in usr
set category=null
var/mob/M=usr
if(!(src in M))return
if(src.suffix)
src.suffix=null
M.overlays-=src.icon
M.weapon=null
src.loc=usr.loc
Get()
set src in oview(1)
set category=null
var/mob/M=usr
if(!(src in oview(1)))return
M.contents+=src


obj/Bullets
density=1
nine_mm
icon='bullets.dmi'
icon_state="9mm"
Bumped(atom/a)
if(istype(a,/mob/NPC))
a.health -= src.damage//damage the mob
if(a.CheckDeath())//check if it has died
if(src.owner)src.owner.kills++//if the person who fired the bullet is still here, add 1 to his/her kill counter
a.Death()//than call the atoms death proc
pellets
icon='bullets.dmi'
icon_state="pellets"
Bumped(atom/a)
if(istype(a,/mob/NPC))
a.health -= src.damage
if(a.CheckDeath())
if(src.owner)src.owner.kills++
a.Death()
else if(istype(a,/turf/Walls/wall1))
a.health -= src.damage
if(a.CheckDeath())
a.Death()
New(loc,dir,var/mob/p,d=0)
src.dir=dir
src.damage=d
if(p)src.owner=p
..()
spawn()
while(1)
if(src.x<=1||src.x>=world.maxx||src.y<=1||src.y>=world.maxy)del(src)
step(src,src.dir)
sleep(1)
var
mob/owner
damage=0
proc
Bumped(atom/a)
Bump(atom/a)
..()
world<<"-You hit the [a]-"
src.Bumped(a)
del(src)


mob
NPC/name="NPC"
icon='zombie.dmi'
icon_state="normal"
New()
var/obj/O=new/obj
O.icon='zombie.dmi'
src.overlays+=O
..()
Death()
world<<"<b><font color=red>** You killed [src] **"
del(src)
var/tmp
obj/Pickup/Guns/weapon
reloading=0
flicking=0
fired=0
kills=0
proc
Reload()
if(!src.weapon){src.reloading=0;return}
var/i=src.weapon
src<<"<i><font size=2>Reloading..."
sleep(src.weapon.Reload_Time)
if(!src.weapon){src.reloading=0;return}
else if(i==src.weapon)
var/obj/Pickup/Ammo/A=locate(src.weapon.Ammo_Path) in src.contents
if(A)
view(src)<<sound(src.weapon.Reload_Sound,0)
var/take=src.weapon.MACapacity
take-=src.weapon.ACapacity
if(A.ammo<take)take=A.ammo
src.weapon.ACapacity+=take
src.weapon.suffix="[src.weapon.ACapacity]/[src.weapon.MACapacity]"
A.ammo-=take
if(A.ammo<=0)del(A)
else A.suffix="[A.ammo]/[A.mammo]"
src<<"<i><font size=2>...Reloaded!"
sleep(10)
src.reloading=0
LocateAmmo()
if(!src.weapon)return 0
var/A=locate(src.weapon.Ammo_Path) in src.contents
if(A)return 1
else return 0
verb
ReloadGun()
if(src.reloading)return
if(src.weapon)
if(src.LocateAmmo())
if(src.weapon.ACapacity<src.weapon.MACapacity)
src.reloading=1
src.Reload()
else src<<"You need more ammo."
FireWeapon()
src.Fire()



"Modern monster RPG.dm:351:error: /obj/Pickup/Ammo/HandgunAmmo: undefined type path
Modern monster RPG.dm:363:error: /obj/Pickup/Ammo/macinegunAmmo: undefined type path
Modern monster RPG.dm:375:error: /obj/Pickup/Ammo/ShotgunAmmo: undefined type path
Modern monster RPG.dm:707:error: /turf/Walls/wall1: undefined type path
Modern monster RPG.dm:516:error: A: undefined type: A
Modern monster RPG.dm:520:error: A.ammo: undefined type: A.ammo
Modern monster RPG.dm:520:error: A.ammo: undefined type: A.ammo
Modern monster RPG.dm:523:error: A.ammo: undefined type: A.ammo
Modern monster RPG.dm:524:error: A.ammo: undefined type: A.ammo
Modern monster RPG.dm:524:error: A: undefined type: A
Modern monster RPG.dm:525:error: A.suffix: undefined type: A.suffix
Modern monster RPG.dm:525:error: A.ammo: undefined type: A.ammo
Modern monster RPG.dm:525:error: A.mammo: undefined type: A.mammo
Modern monster RPG.dm:515:warning: A: variable defined but not used"

Those are the errors I'm getting. What does A stand for by the way? Area? Atom?
All of your errors are a result of you attempting to use a type path which is undefined. The one warning is the compiler throwing a fit about the aforementioned errors, and probably shouldn't actually be thrown.