下面是引用 mnbmnb5266 於 2011-08-14 15:55 發表的 :
可以通過修改讓自己被選中的機會降低嗎?
治標不治本的改法是將ZP主插件原碼中:
複製程式
// Multi Infection Mode
g_lastmode = MODE_MULTI
// iMaxZombies is rounded up, in case there aren't enough players
iMaxZombies = floatround(iPlayersnum*get_pcvar_float(cvar_multiratio), floatround_ceil)
iZombies = 0
// Randomly turn iMaxZombies players into zombies
while (iZombies < iMaxZombies)
{
// Keep looping through all players
if (++id > g_maxplayers) id = 1
// Dead or already a zombie
if (!is_user_alive(id) || g_zombie[id])
continue;
// Random chance
if (random_num(0, 1))
{
// Turn into a zombie
zombieme(id, 0, 0, 1)
iZombies++
}
}
其中的「random_num(0, 1)」就是機率…
只要改成「!random_num(0, 9)」這樣就是變成10%…
不過如果全部玩家ID都偵測過一次後殭屍人數不滿還是會循環這機率…
但是至少10%乘10%機率應該比50%低了…