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的能力== ...请问如何解决==求高手
|