I found a solution, but I feel so cheap having used it.

in weapon_hl2mpbasehlmpcombatweapon.cpp

bool CBaseHL2MPCombatWeapon::Deploy( void )
{
        // If we should be lowered, deploy in the lowered position
        // We have to ask the player if the last time it checked, the weapon
was lowered
        if ( GetOwner() && GetOwner()->IsPlayer() )
        {
                CHL2MP_Player *pPlayer = assert_cast<CHL2MP_Player*>( 
GetOwner() );
                //ewwww
                pPlayer->SetMaxSpeed(320);
                if ( pPlayer->IsWeaponLowered() )
                {
                        //etc etc etc

That's one way of doing it. The other way would be change GetMaxSpeed
to return 320 or whatever, but then you can't set the max speed in
different places.


--
**********************
Draco
Coder for Perfect Dark and Kreedz Climbing
http://perfectdark.game-mod.net

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to