下面是引用 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%低了…