Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Adding weapons to vehicles?  (Read 2610 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.