Jump to content
GIGN Forum

Zombie 4.06


Recommended Posts

Kads nezin kaa labak uztaisit Long jump... mosk kadam kam serveris ir uztaisjis normali.

// Longjump
// --------
zp_leap_zombies 2 // Give leap to Zombies [0-disabled // 1-everyone // 2-only first zombie]
zp_leap_nemesis 1 // Give leap to Nemesis
zp_leap_survivor 1 // Give leap to Survivor
zp_leap_force 500 // Force multiplier
zp_leap_height 300 // Upwards force
zp_leap_cooldown 0.1 // Time between leap uses

Vienkari vins baigi cakarejas, nevar visu laiku spiest ctrl+space...

vajag taka kaut kadi cakarigi, uzspiez ctrl iet uz prieksu turot ctrl, un tad space spiez... kr4 4akarigi, noka4ajiet 4.06 versiju un parbaudiet :) vai ari cs.inetfactory.com

un parbaudiisiet.

Link to comment
Share on other sites

Varbut kads labs skriptieris, palidzes pafixot.. lai labi strada...

    // Not doing a longjump (added bot support)
    if (!is_user_bot(id) && (!(buttons & IN_JUMP) || !(buttons & IN_DUCK)))
        return false;
    
    // Cooldown not over yet
    if (get_gametime() - g_lastleaptime[id] < get_pcvar_float(cvar_leapcooldown))
        return false;
    
    // Nemesis cvar not enabled
    if (!get_pcvar_num(cvar_leapnemesis) && g_nemesis[id])
        return false;
    
    // Survivor cvar not enabled
    if (!get_pcvar_num(cvar_leapsurvivor) && g_survivor[id])
        return false;
    
    // Get zombie cvar
    static leapzombies
    leapzombies = get_pcvar_num(cvar_leapzombies)
    
    // Zombie cvar not enabled
    if (leapzombies == 0 && !g_nemesis[id] && !g_survivor[id])
        return false;
    
    // Not the first zombie
    if (leapzombies == 2 && !g_nemesis[id] && !g_survivor[id] && !g_firstzombie[id])
        return false;
    
    return true;
}

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...