View Single Post
zonbarbar
Member
Join Date: Jul 2022
Old 02-14-2024 , 10:45   Re: [L4D & L4D2] Left 4 DHooks Direct (1.143) [25-Jan-2024]
Reply With Quote #1058

Quote:
Originally Posted by little_froy View Post
these code works, note, the "SCALE" defines the force of flying, replace it to you want
Code:
        float eye_pos[3];
        float eye_ang[3];
        float ang_fwd[3];
        GetClientEyePosition(client, eye_pos);
        GetClientEyeAngles(client, eye_ang);
        GetAngleVectors(eye_ang, ang_fwd, NULL_VECTOR, NULL_VECTOR);
        NormalizeVector(ang_fwd, ang_fwd);
        ScaleVector(ang_fwd, SCALE);
        L4D_MolotovPrj(client, eye_pos, eye_ang, ang_fwd);
tk i will try it
zonbarbar is online now