Why don't you set up a Msg() in the SetMaxSpeed function to output
every time the speed it changed - then you could add a breakpoint and
chase back and find out what's changing it back.


On Sat, 26 Mar 2005 17:52:52 +1000, Draco <[EMAIL PROTECTED]> wrote:
> 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
>
>

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

Reply via email to