Home   Help Search Login Register  

Advertisement

Author Topic: Test for bullet  (Read 1432 times)

0 Members and 1 Guest are viewing this topic.

Offline nicserpiente

  • Members
  • *
Test for bullet
« on: 19 Jul 2013, 14:41:09 »
Hi friends, can you test this addon? single model for opf resistance. You can find that in: empty--->objects--->ammo ***
thanks

Offline Lenyoga

  • Professor of Misanthropology
  • Members
  • *
Re: Test for bullet
« Reply #1 on: 19 Jul 2013, 15:41:12 »
Will try it out around Tuesday, when I'm in my mage tower again.

Also, that seems like a post for the "Addons & Mods Beta Testing" section.
As a grandmother I've got lots of gold.

Offline nicserpiente

  • Members
  • *
Re: Test for bullet
« Reply #2 on: 19 Jul 2013, 16:02:16 »

Offline Lenyoga

  • Professor of Misanthropology
  • Members
  • *
Re: Test for bullet
« Reply #3 on: 22 Jul 2013, 23:24:02 »
So, just came home and took a look at it.

Looking at the 3d models ingame, I saw that the textures didn't work - I opened the .pbo file and saw that the paths were pointing to a differently named directory. To change texture paths, you can use this program: http://ofpec.com/editors-depot/index.php?action=details&id=166&game=OFP

If you want the boxes to contain usable ammo for the M60, I'd add this to the config file, instead of the ones based on targets:

Code: [Select]
class CfgPatches
{
class NickWeapons
{
units[] = {ReammoBoxM60_1,b2,ReammoBoxM60_2};
weapons[] = {};
requiredVersion = 1.75;
};
};
class CfgVehicles
{
class All {};
class Static: All {};
class Building: Static {};
class NonStrategic: Building {};
class TargetTraining: NonStrategic {};
class TargetGrenade: TargetTraining {};
class Strategic : Building {};
class ReammoBox: Strategic {};
class ReammoBoxWest: ReammoBox {};

class ReammoBoxM60_1: ReammoBoxWest
{
displayName="Ammo - M60 - 100 Rounds";
model="\ammo us\M60-100rd";
icon="\ammo us\iconoammo";
        mapSize=0.5;
class TransportMagazines
{
mag_xx(M60,1);
};
};

class ReammoBoxM60_2: ReammoBoxWest
{
displayName="Ammo - M60 - 200 Rounds";
model="\ammo us\c200rd";
icon="\ammo us\iconoammo";
        mapSize=0.5;
class TransportMagazines
{
mag_xx(M60,2);
};
};

class bala: TargetGrenade
{
model="\ammo us\b2";
armor=10;
scope=2;
displayName="ammo M60 bala";
icon="\ammo us\iconoammo";
                mapSize=0.5;
};
};


About the single bullet - sadly it's not possible in OFP to add single bullets to a magazine.

I hope this clears things up a bit and helps, I didn't try out the newer code yet, so maybe the magazines don't work, but if you need any reference for the config files, just download this: http://www.ofpec.com/editors-depot/index.php?action=details&id=666&game=OFP
As a grandmother I've got lots of gold.