OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods Beta Testing => Topic started by: OFPfreak2 on 27 May 2006, 06:51:21

Title: Adding weapons to vehicles?
Post 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.
Title: Re: Adding weapons to vehicles?
Post by: oyman on 27 May 2006, 17:10:03
If im thinking about the right thing, you need to put something like this in the cfg vehicles part of config
Code: [Select]
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.
Title: Re: Adding weapons to vehicles?
Post by: OFPfreak2 on 28 May 2006, 01:37:57
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.