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 载点挂了要提小弟,麻烦下载完或看完这篇文章要回覆,最好就按右上角的推荐+献花,麻烦麻烦!~