Home   Help Search Login Register  

Author Topic: Shovel Cpp  (Read 1114 times)

0 Members and 1 Guest are viewing this topic.

sussmori

  • Guest
Shovel Cpp
« on: 26 Aug 2002, 04:57:31 »
Hi,

How can I code the CPP of a shovel? It's held like a riffle, and at the moment inherits riffle, but shouldn't take up a slot of primary or secondary weapon. It should only take up 2 magazine slots or a special slot (like binocular).

While holding a M16, the player should be able to hit "weapon shovel" and the shovel appears out of nowhere (like binoculars). Is this possible?

At the moment the code is simply:
--------
class CfgWeapons
{
        class Default        {};
        class MGun: Default {};
        class Riffle: MGun{};
     
       class Spaten: Riffle
        {
   displayName="Shovel";
            model=\Spaten\spaten;
        };

};
---------

How do I code this?

thx