Just to clarify, you only need to mark the *declaration *of a member function virtual and only in the base class:
class X { public: virtual float f() { return 0; } }; class Y : public X { public: float f(); }; // 'virtual' can be omitted here float Y::f() { return 1; } // 'virtual' is illegal here Regards, Paul On Wed, Aug 6, 2008 at 6:32 AM, Ondřej Hošek <[EMAIL PROTECTED]> wrote: > Provided that is the actual code... > > You will have to mark the CBaseCombatWeapon::AccuracyValues function as > virtual (in both the header and the implementation). The AccuracyValues > functions further down the line (i.e. the weapon-specific ones) do not > have to be marked as virtual (but I doubt this will have any adverse > effects). > > ~~ Ondra > > On 06.08.08 11:16 Uhr, Tom Leighton wrote: > > http://forums.steampowered.com/forums/showthread.php?t=708384 > > > > I believe this is his also, scroll down for the first indication he > > wants help :P lol > > > > Code is posted on Page 2 IIRC > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders