AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   HomeFree v0.7 (https://forums.alliedmods.net/showthread.php?t=87132)

ConnorMcLeod 10-01-2011 07:41

Re: HomeFree
 
PHP Code:

    if( gNewR ) {
        if( ( 
get_pcvar_numgEnabled ) ) && ( is_user_aliveid ) ) && ( cs_get_user_teamid ) == CS_TEAM_T ) && ( gSF[id] == ) ) { 

You can merge those 2 checks.


Code:
            new Float:fallspeed = get_pcvar_float( gfSpeed ) * ( -1.0 )             new Float:velocity[3]                                     pev( id, pev_velocity, velocity )                         if( velocity[2] < 0 ) {                 velocity[2] = ( velocity[2] + 40.0 < fallspeed ) ? velocity[2] + 40.0 : fallspeed                 set_pev( id, pev_velocity, velocity )             }

you should put the highlighted line into if( velocity[2] < 0 ) { block.

Nur56 10-01-2011 07:46

Re: HomeFree
 
Fixed, hopefully nobody complains about index errors :D

Nur56 05-18-2012 10:37

Re: HomeFree v0.7
 
bump


All times are GMT -4. The time now is 05:58.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.