G.M.I
|
分享:
x0
|
[1.6][模組] ZP n王傳染玩家後問題
我把 if (fnGetZombies() == 1) { // First zombie g_nemesis[id] = true if (get_pcvar_num(cvar_nemhp) == 0) { if (get_pcvar_num(cvar_nembasehp) == 0) fm_set_user_health(id, ArrayGetCell(g_zclass_hp, 0) * fnGetAlive()) else fm_set_user_health(id, get_pcvar_num(cvar_nembasehp) * fnGetAlive()) } else fm_set_user_health(id, get_pcvar_num(cvar_nemhp))
// Infection sound ArrayGetString(zombie_infect, random_num(0, ArraySize(zombie_infect) - 1), sound, charsmax(sound)) emit_sound(id, CHAN_VOICE, sound, 1.0, ATTN_NORM, 0, PITCH_NORM) } 還有
if (g_nemesis[attacker]) { // Ignore nemesis damage override if damage comes from a 3rd party entity // (to prevent this from affecting a sub-plugin's rockets e.g.) if (inflictor == attacker) { zombieme(victim, attacker, 0, 0, 1) // turn into zombie return HAM_SUPERCEDE; } return HAM_IGNORED; }
但傳染後會有BUG...被傳染的玩家是N王的models..能力也有BUG.. 例如 a殭屍可使用爬牆 b殭屍可使用回血 被N王傳染後的玩家就可以使用a及b的能力== ...請問如何解決==求高手
|