OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods Beta Testing => Topic started by: OFPfreak2 on 27 May 2006, 06:51:21
-
I was surprised when I made an actual weapon and ammo last week with it actually working since most of my stuff never works :P! I even created my own tank which works perfectly fine. The only problem is, I don't know how to add the actual ammo/weapons to a vehicle. I added the weapons, ammo and vehicles in the already-existing config.cpp which automatically seemed to work in-game.
-
If im thinking about the right thing, you need to put something like this in the cfg vehicles part of config
weapons[]={"oyman_152Gun","oyman_coax"};
magazines[]={"oyman_152Sab","oyman_152He","oyman_coax"};
I am assuming you have made a sort of "oyman_152Gun" for your tank which makes you able to load heat or sabot rounds.
-
Ok thanks I'll try that. Yeah I made a "heat 250" round both in single, burst and auto firing with a 3 shot magazine.