Forum Jump :

Author Message

ogion  



Posts: 115
Rank:


Level: Member

Country: se
Location:
Occupation: Small business owner
Age: 41
In-game name: Ogion [SW]

 
#1 Posted at 2011-02-14 11:42        
     
Hi guys.

I'm at my wits end. I've been trying SOOOO hard to make this work, but no matter how many tutorials I read or trial-and-error attempts, this one eludes me.

I'm trying to make a black box mod. A very simple little item that goes into the binocular slot, but I just can't get it ingame!!!

This is the config code I use:
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot            0// dummy weapons
#define WeaponSlotPrimary      1// primary weapons
#define WeaponSlotSecondary   16// secondary weapons
#define WeaponSlotItem         256// items
#define WeaponSlotBinocular   4096// binocular
#define WeaponHardMounted      65536

class CfgPatches
{
   class scf_blackbox
   {
      units[] = {};
      weapons[] = {scf_blackbox};
      requiredVersion = 1.40;
   };
};
class CfgWeapons
{
   class Laserdesignator;
   class scf_blackbox: Laserdesignator
   {
      displayName="Flight recorder";
      optics=0;
      model="\blackbox\box.p3d";
      modelOptics="";
      picture="\blackbox\gear_pic.paa";
      type=WeaponSlotBinocular;
      useAsBinocular=false;
   };
};

If anyone could help me please? I also have the model with textures, but I can't seem to upload it here.

Basically, what I need is an object that goes into the bincular slot, which inherits from the LD, but can not be used as optics, only weigh down the player (ACE compatible) a bit. It would be really good if this object could be boyand as well, (as in floating) but I'm not sure if it is possible to add the canFloat=true to a weapon config?

Any help and insights would be appreciated!

This post was edited by Foxhound (2011-02-14 15:11, ago)

"Do, or do not. There is no try!" - Yoda
http://www.silentwarriors.org.uk/

Author Message

ogion  



Posts: 115
Rank:


Level: Member

Country: se
Location:
Occupation: Small business owner
Age: 41
In-game name: Ogion [SW]

 
#2 Posted at 2011-04-14 16:51        
     
This issue is now resolved. I scrapped the whole thing and developed a script instead. Less hedache.

Mods, please lock this topic.

"Do, or do not. There is no try!" - Yoda
http://www.silentwarriors.org.uk/

Advertisement


Author Message

DarkXess  

Modsaholic Founder


Posts: 2855
Rank:


Level: Member

Country: cn
Location: PRC
Occupation:
Age: 36
In-game name: DarkXess

 
#3 Posted at 2011-04-14 17:15        
     
# ogion : Mods, please lock this topic.

We dont just lock a topic because of a request, hehe.
Anyways, would you mind sharing your script so others can learn?

Thanks ogion.

1st - Check The Rules! 2nd - Use The Search!


Author Message

ogion  



Posts: 115
Rank:


Level: Member

Country: se
Location:
Occupation: Small business owner
Age: 41
In-game name: Ogion [SW]

 
#4 Posted at 2011-04-15 09:30        
     
It's still WIP and buggy, so there's no use sharing it just yet. I will eventually though.

"Do, or do not. There is no try!" - Yoda
http://www.silentwarriors.org.uk/