Home   Help Search Login Register  

Author Topic: Adding weapons to vehicles?  (Read 1261 times)

0 Members and 1 Guest are viewing this topic.

OFPfreak2

  • Guest
Adding weapons to vehicles?
« 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.

Offline oyman

  • Members
  • *
  • king of pings
Re: Adding weapons to vehicles?
« Reply #1 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.

OFPfreak2

  • Guest
Re: Adding weapons to vehicles?
« Reply #2 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.