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: Shovel Cpp  (Read 2621 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