Raised This Month: $ Target: $400
 0% 

[ZP] Necesito plugin para convertir en zombie solo al morir.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DJHD!
Veteran Member
Join Date: Dec 2009
Location: Santiago, Chile
Old 05-10-2013 , 11:35   Re: [ZP] Necesito plugin para convertir en zombie solo al morir.
#12

Quote:
Originally Posted by XINLEI View Post
Yo uso el 5.08 y es mucho mejor que el 4.3 en mi opinion. Yo le doy el soporte de 5.0 aqui.

En el zp50_gamemodes.sma encuentra la funcion fw_TakeDamage y cambiala por esta:
PHP Code:
// Ham Take Damage Forward (needed to block explosion damage too)
public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    
// Non-player damage or self damage
    
if (victim == attacker || !is_user_alive(attacker))
        return 
HAM_IGNORED;
    
    
// Prevent attacks when no game mode is active
    
if (g_CurrentGameMode == ZP_NO_GAME_MODE)
        return 
HAM_SUPERCEDE;
    
    
// Prevent friendly fire
    
if (zp_core_is_zombie(attacker) == zp_core_is_zombie(victim))
        return 
HAM_SUPERCEDE;
    
    
// Mode allows infection and zombie attacking human...
    
if (g_AllowInfection && zp_core_is_zombie(attacker) && !zp_core_is_zombie(victim))
    {
        
// Nemesis shouldn't be infecting
        
if (LibraryExists(LIBRARY_NEMESISLibType_Library) && zp_class_nemesis_get(attacker))
            return 
HAM_IGNORED;

        
// Assassin shouldn't be infecting
        
if (LibraryExists(LIBRARY_ASSASSINLibType_Library) && zp_class_assassin_get(attacker))
            return 
HAM_IGNORED;
        
        
// Survivor shouldn't be infected
        
if (LibraryExists(LIBRARY_SURVIVORLibType_Library) && zp_class_survivor_get(victim))
            return 
HAM_IGNORED;

        
// Sniper shouldn't be infected
        
if (LibraryExists(LIBRARY_SNIPERLibType_Library) && zp_class_sniper_get(victim))
            return 
HAM_IGNORED;
        
        
// Prevent infection/damage by HE grenade (bugfix)
        
if (damage_type DMG_HEGRENADE)
            return 
HAM_SUPERCEDE;
        
        
// Last human is killed to trigger round end
        
if (zp_core_get_human_count() == 1)
            return 
HAM_IGNORED;
        
        
// Infect only if damage is done to victim
        
if (damage pev(victimpev_health) && GetHamReturnStatus() != HAM_SUPERCEDE)
        {
            
// Infect victim!
            
zp_core_infect(victimattacker)
            return 
HAM_SUPERCEDE;
        }
    }
    
    return 
HAM_IGNORED;

Mas editable un plugin de 150.000 lineas que varios que no pasan de las 100... Es ZP, no hay nada de complicado.
Tú dices que es mucho mejor? plss
pregúntale a cualquier otro scripter de este foro y no te dirá lo mismo.
1000 plugins separados para hacer un solo modo? wtf?
__________________
Quote:
Originally Posted by XINLEI View Post
Porque rocccos trata de ser el metalicross que nunca va a poder ser.
DJHD! is offline
Send a message via MSN to DJHD!
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:04.


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