Quote:
Originally Posted by XINLEI
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(victim, inflictor, attacker, Float:damage, damage_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_NEMESIS, LibType_Library) && zp_class_nemesis_get(attacker))
return HAM_IGNORED;
// Assassin shouldn't be infecting
if (LibraryExists(LIBRARY_ASSASSIN, LibType_Library) && zp_class_assassin_get(attacker))
return HAM_IGNORED;
// Survivor shouldn't be infected
if (LibraryExists(LIBRARY_SURVIVOR, LibType_Library) && zp_class_survivor_get(victim))
return HAM_IGNORED;
// Sniper shouldn't be infected
if (LibraryExists(LIBRARY_SNIPER, LibType_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(victim, pev_health) && GetHamReturnStatus() != HAM_SUPERCEDE)
{
// Infect victim!
zp_core_infect(victim, attacker)
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?
__________________