Simpatie.ro - matrimoniale
CSHacks16
Config's, dll's, exe, scripts, vecs for Counter-Strike 1.6
Nou pe simpatie:
Elena01 din Braila
Femeie
25 ani
Braila
cauta Barbat
28 - 40 ani
CSHacks16ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
CSHacks16 / Counter-Strike Cheats /

Anti-Recoil + FPS with C++ Script # # Put in your config

Pagini: 1  
#1
Del1ric
Administrator
Din: Sinagog
Postari: 63


Code:

void PreV_CalcRefdef( struct ref_params_s* pparams )
{
    if (cvar.fanmode && me.alive)
    {
        VectorCopy(pparams->punchangle,me.punchangle);
        if (cvar.recoil) for (int i=0; i<3; i++) pparams->punchangle[i] = 0;
        if( pparams->nextView == 0 )
        {
                             /*  your code .. */
        }

        if(me.alive){
            pparams->intermission=1; // switch to intermission mode
            pparams->time = 0; // cheat the engine to remove idle
        }
    }

    else if (!pparams->paused)
    {
        VectorCopy(pparams->punchangle,me.punchangle);
        if (cvar.recoil) for (int i=0; i<3; i++) pparams->punchangle[i] = 0;
        if( pparams->nextView == 0 )
        {
                         /*  your code .. */
        }
    }
}



void PostV_CalcRefdef( struct ref_params_s* pparams )
{
    if (cvar.fanmode && me.alive)
    {
        if( pparams->nextView == 0 )
        {
            // Primary Screen, below all other Viewports Sent
            // update vectors for CalcScreen
            VectorCopy(pparams->viewangles,mainViewAngles);
            VectorCopy(me.pmEyePos,mainViewOrigin);
            float yaw = pparams->viewangles[1]*(pisobre180);
            mainViewAngles_SinYaw = sin(yaw);
            mainViewAngles_CosYaw = cos(yaw);

                        //FIX: camera position
            float eye_pos[3];
            VectorCopy(me.pmEyePos,eye_pos);
            VectorCopy(eye_pos,pparams->vieworg);
        }
    }

    else if (!pparams->paused)
    {
        if( pparams->nextView == 0 )
        {
            // Primary Screen, below all other Viewports Sent
            // update vectors for CalcScreen
            VectorCopy(pparams->viewangles,mainViewAngles);
            VectorCopy(pparams->vieworg,mainViewOrigin);
            float yaw = pparams->viewangles[1]*(pisobre180);
            mainViewAngles_SinYaw = sin(yaw);
            mainViewAngles_CosYaw = cos(yaw);
            
                        /* your code .. */
        }
    }
}


/*
==============
V_AddIdle

Idle swaying
==============
*/
void V_AddIdle ( struct ref_params_s *pparams )
{
    pparams->viewangles[ROLL] += v_idlescale * sin(pparams->time*v_iroll_cycle.value) * v_iroll_level.value;
    pparams->viewangles[PITCH] += v_idlescale * sin(pparams->time*v_ipitch_cycle.value) * v_ipitch_level.value;
    pparams->viewangles[YAW] += v_idlescale * sin(pparams->time*v_iyaw_cycle.value) * v_iyaw_level.value;
}



void DLLEXPORT V_CalcRefdef( struct ref_params_s *pparams )
{
    // intermission / finale rendering
    if ( pparams->intermission )
    {    
        V_CalcIntermissionRefdef ( pparams );    
    }
    else if ( pparams->spectator || g_iUser1 )    // g_iUser true if in spectator mode
    {
        V_CalcSpectatorRefdef ( pparams );    
    }
    else if ( !pparams->paused )
    {
        V_CalcNormalRefdef ( pparams );
    }

/*
// Example of how to overlay the whole screen with red at 50 % alpha
#define SF_TEST
#if defined SF_TEST
    {
        screenfade_t sf;
        gEngfuncs.pfnGetScreenFade( &sf );

        sf.fader = 255;
        sf.fadeg = 0;
        sf.fadeb = 0;
        sf.fadealpha = 128;
        sf.fadeFlags = FFADE_STAYOUT | FFADE_OUT;

        gEngfuncs.pfnSetScreenFade( &sf );
    }
#endif
*/
}



_______________________________________
Id Mess: del1ric_mangacs






 
   
Pagini: 1  
Mergi la