View Single Post
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 06-17-2008 , 15:23   Re: WallClimb
Reply With Quote #8

Fixed lines 247-269 to be from engine to fakemeta (you had engine's include commented out yet still had 4 lines that used engine functions)

Code:
    if (get_pcvar_num(p_climb_method) == 0) {   // Old method  !!!! (not supported but left here if someone finds it better)     new Float: fVelocity[3]     new Float:pcvar_speed = get_pcvar_float( p_climb_speed );     pev(id,pev_velocity,fVelocity)             new Buttons = pev(id,pev_button)     if(get_pcvar_num(p_climb_mode) == 1 && Buttons & /*IN_JUMP*/ IN_USE && (Buttons & IN_FORWARD || Buttons & IN_BACK) )     {         if(fVelocity[0] == 0.0 || fVelocity[1] == 0.0)         {             fVelocity[1] = 10.0             fVelocity[2] = pcvar_speed             set_pev(id,pev_velocity, fVelocity)         }     } else if(get_pcvar_num(p_climb_mode) == 0 && Buttons & IN_JUMP/*IN_USE*/  && (Buttons & IN_FORWARD || Buttons & IN_BACK) )     {         if(fVelocity[0] == 0.0 || fVelocity[1] == 0.0)         {             fVelocity[1] = 10.0             fVelocity[2] = pcvar_speed             set_pev(id,pev_velocity, fVelocity)         }     }

Tested and seems to work fine.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic