http://bbs-mychat.com/reads.php?tid=877025&sh=digest這是Rubbish-Nec 大大寫的,在感染模式出Nemesis(屍王),相信大大好苦惱,人類很難生存,所以小弟加了出現nemesis後,當人類數目少於或等於5和倖存者數目少於或等於2 「fnGetSurvivors() <= 2 && fnGetHumans() <= 5」,有1/2機率出Survivor(倖存者)救人類==「new g_chance = random_num(1,2)」,這兩個項目都可以修改。如果感染模式沒有屍王但人類數目少於或等於5和倖存者數目少於或等於3 「fnGetSurvivors() <= 2 && fnGetHumans() <= 5」,有1/3機率出Survivor(倖存者)救人類,這兩個項目也可以修改。小弟測試了這插件,沒有發現bug。(如大大發現bug,請回報一下方便修改~)
1.尋找respawn_player_manually(id)
2.
if(g_nemesis_in_game[id]) // 能活動就了召喚復仇者吧,嘿嘿嘿
{
zombieme(id, 0, 1, 0, 0)
set_hudmessage(200, 0, 0, HUD_EVENT_X, HUD_EVENT_Y, 0, 0.0, 3.0, 2.0, 1.0, -1)
ShowSyncHudMsg(0, g_MsgSync, "NEMESIS 出現……各位小心!!", LANG_PLAYER)
g_nemesis_in_game[id] = false
g_nemesis_appear = true
remove_task(TASK_AMBIENCESOUNDS)
ambience_sound_stop()
set_task(0.0, "ambience_sound_effects", TASK_AMBIENCESOUNDS)
}
在這下面加上
if(g_nemesis_appear)
{
new g_chance = random_num(1,2)
if(g_chance == 1 && g_nemesis_appear && fnGetSurvivors() <= 2 && fnGetHumans() <= 5)
{
humanme(id, 1, 0)
set_hudmessage(0, 200, 0, HUD_EVENT_X, HUD_EVENT_Y, 0, 0.0, 3.0, 2.0, 1.0, -1)
ShowSyncHudMsg(0, g_MsgSync, "SurvivorLeaderDetected!!", LANG_PLAYER)
}
}
if(!g_nemesis_appear)
{
new g_leaderchance = random_num(1,3)
if(g_leaderchance == 1 && !g_nemesis_appear && fnGetSurvivors() <= 3 && fnGetHumans() <= 5)
{
humanme(id, 1, 0)
set_hudmessage(0, 0, 200, HUD_EVENT_X, HUD_EVENT_Y, 0, 0.0, 3.0, 2.0, 1.0, -1)
ShowSyncHudMsg(0, g_MsgSync, "SurvivorLeaderDetected!!", LANG_PLAYER)
static sound[64]
ArrayGetString(sound_survivor, random_num(0, ArraySize(sound_survivor) - 1), sound, charsmax(sound))
emit_sound(id, CHAN_ITEM, sound, 1.0, ATTN_NORM, 0, PITCH_NORM)
PlaySound(sound);
}
}
教學完
如果不懂得改,下載這個吧,把zombieplague40.sma compile後放在 Valve\cstrike\addons\amxmodx\plugins 取代即可
載點:
http://www.sendspace...e/c1oqfe載點的zombieplague40.sma 有燃燒彈燒死喪屍、喪屍被凍結仍能被人類攻擊、病毒炸彈先扣100護甲插件和感染模式出屍王插件,本人推薦各位大大下載這個
p.s 載點掛了要提小弟,麻煩下載完或看完這篇文章要回覆,最好就按右上角的推薦+獻花,麻煩麻煩!~