[ZP]於感染模式中出復仇者 (2010/08/01 22:48更新)

Home Home
<< 1 2 3 >>
跳頁: (共 3 頁)
引用 | 編輯 Rubbish-Nec
2010-07-12 13:26
樓主
推文 x45
為了更令人誤會……我把標題改得更糟糕了表情          




在玩某伺服器時……會出現這個事件……

喔喔、復仇者出現了



要記著……這個是很普通的傳染模式……

話說很久很久以前……YKH大在Ailledmodders問過一下




他提到有機率性的存在……嘿嘿嘿



首先,我的是ZP4.3,別的我不敢保證

1. 備份!!弄不回來我可幫不了你阿!!

2.開啟zombie_plague40.sma

3.找尋『new g_burning_duration[33] // burning task duration』

4.在下面開新行加入:
複製程式
// For Nemesis
new g_nemesis_in_game[33] // 選定不幸的彊屍
new bool:g_nemesis_appear
new bool:g_nemesis_die
new bool:OK_to_make

5.找尋『public event_round_start()』

6.在裡加入
複製程式
    // Nemesis Something
    g_nemesis_appear = false
    g_nemesis_die = false
    OK_to_make = false
    set_task(random_float(30.0,125.0), "make_rubbish_nemesis")

7.加入新行 -- 注意不是在『public event_round_start()』內
複製程式
public make_rubbish_nemesis()
{
    OK_to_make = true
}

8.再找尋『respawn_player_manually(id)』

9.把整個『respawn_player_manually(id)』換成我這個:
複製程式
respawn_player_manually(id)
{
    // Set proper team before respawning, so that the TeamInfo message that's sent doesn't confuse PODBots
    if (g_respawn_as_zombie[id])
    {
        fm_cs_set_user_team(id, FM_CS_TEAM_T)

        if(g_nemround && fnGetNemesis() == 0)
            return;
        if (g_plagueround && fnGetNemesis() == 0)
            return;
        if (g_nemesis_die)
            return;
        
        new g_hahachance = random_num(1,10)

            if(g_hahachance == 1  && fnGetNemesis() == 0)
        {
            if(!g_nemesis_appear && OK_to_make && g_modestarted)
            {
                g_nemesis_in_game[id] = true
                g_nemesis_appear = true
            }
        }
    }
    else
    fm_cs_set_user_team(id, FM_CS_TEAM_CT)
    
    // Respawning a player has never been so easy
    ExecuteHamB(Ham_CS_RoundRespawn, id) // 這指令是重生……能活動、能咬人的那種

    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
    }
}

10.修改參數
複製程式
set_task(random_float(30.0,125.0), "make_rubbish_nemesis") // 新遊戲後隨後30-125秒內會出現復仇者
new g_hahachance = random_num(1,10)  // 1/10的機會



背景音樂:

11.找尋『public fw_PlayerKilled(victim, attacker, shouldgib)』

12.找尋裡面的『if (g_nemesis[victim])』

13.把整個『if (g_nemesis[victim])』換成我這個
複製程式
    // Nemesis explodes!
    if (g_nemesis[victim])
    {
        SetHamParamInteger(3, 2)
        
        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_die = true

        remove_task(TASK_AMBIENCESOUNDS)
        set_task(0.0, "ambience_sound_effects", TASK_AMBIENCESOUNDS)
    }

14.回到『respawn_player_manually(id)』

15.找尋『g_nemesis_appear = true』

16.在下面加入
複製程式
        remove_task(TASK_AMBIENCESOUNDS)
        set_task(0.0, "ambience_sound_effects", TASK_AMBIENCESOUNDS)

17.飛走表情          

18.飛到『public ambience_sound_effects(taskid)』

19.把整個『public ambience_sound_effects(taskid)』換成我的
複製程式
// Ambience Sound Effects Task
public ambience_sound_effects(taskid)
{
    // Play a random sound depending on the round
    static sound[64], iRand, duration, ismp3
    
    if(g_nemesis_die)
    {
        iRand = random_num(0, ArraySize(sound_ambience1) - 1)
        ArrayGetString(sound_ambience1, iRand, sound, charsmax(sound))
        duration = ArrayGetCell(sound_ambience1_duration, iRand)
        ismp3 = ArrayGetCell(sound_ambience1_ismp3, iRand)
    }
    else if (g_nemround) // Nemesis Mode
    {
        iRand = random_num(0, ArraySize(sound_ambience2) - 1)
        ArrayGetString(sound_ambience2, iRand, sound, charsmax(sound))
        duration = ArrayGetCell(sound_ambience2_duration, iRand)
        ismp3 = ArrayGetCell(sound_ambience2_ismp3, iRand)
    }
    else if (g_survround) // Survivor Mode
    {
        iRand = random_num(0, ArraySize(sound_ambience3) - 1)
        ArrayGetString(sound_ambience3, iRand, sound, charsmax(sound))
        duration = ArrayGetCell(sound_ambience3_duration, iRand)
        ismp3 = ArrayGetCell(sound_ambience3_ismp3, iRand)
    }
    else if (g_swarmround) // Swarm Mode
    {
        iRand = random_num(0, ArraySize(sound_ambience4) - 1)
        ArrayGetString(sound_ambience4, iRand, sound, charsmax(sound))
        duration = ArrayGetCell(sound_ambience4_duration, iRand)
        ismp3 = ArrayGetCell(sound_ambience4_ismp3, iRand)
    }
    else if (g_plagueround) // Plague Mode
    {
        iRand = random_num(0, ArraySize(sound_ambience5) - 1)
        ArrayGetString(sound_ambience5, iRand, sound, charsmax(sound))
        duration = ArrayGetCell(sound_ambience5_duration, iRand)
        ismp3 = ArrayGetCell(sound_ambience5_ismp3, iRand)
    }
    else if(g_nemesis_appear)
    {
        iRand = random_num(0, ArraySize(sound_ambience2) - 1)
        ArrayGetString(sound_ambience2, iRand, sound, charsmax(sound))
        duration = ArrayGetCell(sound_ambience2_duration, iRand)
        ismp3 = ArrayGetCell(sound_ambience2_ismp3, iRand)
    }
    else // Infection Mode
    {
        iRand = random_num(0, ArraySize(sound_ambience1) - 1)
        ArrayGetString(sound_ambience1, iRand, sound, charsmax(sound))
        duration = ArrayGetCell(sound_ambience1_duration, iRand)
        ismp3 = ArrayGetCell(sound_ambience1_ismp3, iRand)
    }
    
    // Play it on clients
    if (ismp3)
        client_cmd(0, "mp3 play ^"sound/%s^"", sound)
    else
        PlaySound(sound)
    
    // Set the task for when the sound is done playing
    set_task(float(duration), "ambience_sound_effects", TASK_AMBIENCESOUNDS)
}



完成後效果如此:

於多人感染、普通感染等等沒有復仇者出現的模式中,在30-125秒內隨機找一個要復活的彊屍當復仇者(並使用復仇者模式音樂)

若復仇者掛掉,彊屍就不能再重生,而且回到普通感染模式的音樂






Q&A
一、為什麼沒背景音樂?
答:因為你沒在『cstrike/addons/amxmodx/configs/zombie_plague.ini』內加入聲音
例:複製程式
[Ambience Sounds] (randomly chosen if more than one) (only .wav and .mp3 formats supported) (duration is in seconds)
INFECTION ENABLE = 1
INFECTION SOUNDS = zombie_plague/gamestartup1.mp3
INFECTION DURATIONS = 268
NEMESIS ENABLE = 1
NEMESIS SOUNDS = zombie_plague/nemesis_detected.mp3
NEMESIS DURATIONS = 63

感謝收看

附上懶人包(真的很懶……繁化都沒有……)






本帖包含附件
檔名: zip zp_plugin_43.rar   (2022-06-09 14:15 / 334 KB)   下載次數:379


獻花 x8
引用 | 編輯 HsK
2010-07-12 14:19
1樓
  
教學詳細 ^^

支持大大

TiG 的 ser 我一直沒去

找天有空去玩玩 xd

獻花 x0
引用 | 編輯 andyt0621
2010-07-12 14:22
2樓
  
之前有大大寫了生還者每局出現的..
我想應該差不多吧0.0

獻花 x0
引用 | 編輯 fk1794xd
2010-07-12 14:27
3樓
  
在頭版變了
"於感染模式中出"

想歪了-V-

獻花 x1
引用 | 編輯 滅絕的天空
2010-07-12 16:17
4樓
  
我看過還有擊殺殭屍特定機率出現復仇- -

所以有可能剛被抓就變復仇= =

獻花 x0
引用 | 編輯 kongchiyung
2010-07-12 16:46
5樓
  
大大,我完全看不懂,你可以幫我修改嗎?

本帖包含附件
檔名: zip zombie_plague40.rar   (2022-06-09 14:15 / 57 KB)   下載次數:8


獻花 x0
引用 | 編輯 ngan9876
2010-07-12 17:06
6樓
  
tig啦個伺服不沒品的XD
喪屍王有喪屍炸彈,我一直炸死為喪屍
IP地址右出錯,我明明按香港休閒伺服,他GIVE我去了TW的TIG死亡模式

獻花 x0
引用 | 編輯 01a2Bc3DeF
2010-07-12 22:30
7樓
  
下面是引用 fk1794xd 於 2010-07-12 14:27 發表的 : 到引言文
在頭版變了
"於感染模式中出"

想歪了-V-
在感染模式中出還真驚險阿表情
剛也是看到標題被騙進來的表情

獻花 x0
引用 | 編輯 森之千手
2010-07-13 02:13
8樓
  
下面是引用 fk1794xd 於 2010-07-12 14:27 發表的 : 到引言文
在頭版變了
"於感染模式中出"

想歪了-V-

如果你在現實的感染模式還在中出,你真強表情

===============================================

這個是不錯,可惜本人不玩ZP

獻花 x0
引用 | 編輯 wataru
2010-07-13 08:15
9樓
  
被標題騙進來+1~~
我糟糕了~

獻花 x0
引用 | 編輯 01a2Bc3DeF
2010-07-13 13:54
10樓
  
下面是引用 森之千手 於 2010-07-13 02:13 發表的 : 到引言文


如果你在現實的感染模式還在中出,你真強表情

===============================================

這個是不錯,可惜本人不玩ZP
該不會是中出zm吧表情

獻花 x0
引用 | 編輯 Rubbish-Nec
2010-07-13 14:02
11樓
  
表情 別給我想歪!!表情


獻花 x1
引用 | 編輯 a7811311622
2010-07-13 15:49
12樓
  
[正題]
ZP本來就是隨便人改的…例如我…
我把感染炸彈碰到倖存者的傷害從原本的秒殺改成「倖存者血量的四分之一」…
這樣非感染模式時至少可以看到恐怖的感染炸彈在亂飛~
(雖然結果是死的很慘罷了… 表情 )
[/正題]

[離題]
回覆內容一路看下來發現好多紳士呢… 表情
[/離題]

獻花 x0
引用 | 編輯 i-c0112
2010-07-13 19:57
13樓
  
嗯~~~~~~~~~~~~
還好標題變正常了 不然我可能也跟前面那些紳士們一樣了 表情

你的影片nemesis好像出現不到幾秒呢 表情 都是小僵屍滿場跑

獻花 x0
引用 | 編輯 史來姆
2010-07-13 21:22
14樓
  
反而比較想有倖存者的出現..
樓上們的不說我也看不出啊
呵呵,我是乖孩子 表情

獻花 x0
引用 | 編輯 takkinyuen
2010-07-13 21:48
15樓
  
下面是引用 史來姆 於 2010-07-13 21:22 發表的 : 到引言文
反而比較想有倖存者的出現..
樓上們的不說我也看不出啊
呵呵,我是乖孩子 表情

2個的原理是一樣的吧
希望樓主 能研究到如何改音樂

獻花 x0
引用 | 編輯 andy22022099
2010-07-14 15:14
16樓
  
中出到底是什麼東東阿
RN大 我託付給您了
懂模組又懂插件的好像沒幾個阿

獻花 x0
引用 | 編輯 hemazizi
2010-07-14 15:59
17樓
  
其實我不太懂有sma提供一下嗎?
3.在上面的空格加入:是指在那呀表情
我搜尋到有2個respawn_player_manually(id)表情

獻花 x0
引用 | 編輯 [AHK]XXX
2010-07-14 18:16
18樓
  
下面是引用 ngan9876 於 2010-07-12 17:06 發表的 : 到引言文
tig啦個伺服不沒品的XD
喪屍王有喪屍炸彈,我一直炸死為喪屍
IP地址右出錯,我明明按香港休閒伺服,他GIVE我去了TW的TIG死亡模式
5係ip錯係TIG個SER有預留位置給vip 你要低於人數28先可以進去  5係就會幫你轉向另一個server

獻花 x0
引用 | 編輯 ★Final☆蒼
2010-07-14 18:17
19樓
  
我聽不懂這篇文章是啥 但是謝謝

獻花 x0
引用 | 編輯 [AHK]XXX
2010-07-14 18:18
20樓
  
TIG不是計時間 是計屍的死亡人數達到一定標準 就會出王 表情

獻花 x0
引用 | 編輯 takkinyuen
2010-07-15 08:06
21樓
  
樓主研究到如何正確改音樂嗎?

獻花 x0
引用 | 編輯 我愛如花
2010-07-15 10:46
22樓
  
真有趣嘛..中出.. 先感謝 我完全明白了表情

獻花 x0
引用 | 編輯 kevin961104
2010-07-15 12:17
23樓
  
雖然之前看過你發提問區的文就有...不過你發在教學區...
因為應該很少人故意去找你在提問區發的文...Nec大你真的很無私..
雖然肯動手做的..可能也很少..所以在此衷心說一句..謝謝你
期待背景音樂中..還有花和推一定是要的吧...

題外話:
我找到了追蹤者說S.T.A.R.的音效..你還要嗎?..我先私信給你

獻花 x0
引用 | 編輯 Rubbish-Nec
2010-07-15 14:19
24樓
  
下面是引用 [AHK]XXX 於 2010-07-14 18:18 發表的 : 到引言文
TIG不是計時間 是計屍的死亡人數達到一定標準 就會出王 表情

因為這個是仿……不要要求太多吧……表情

獻花 x0
引用 | 編輯 [AHK]XXX
2010-07-15 14:37
25樓
  
如果要TIG和HKA的伺服器東西可問我拿 表情

獻花 x0
引用 | 編輯 kevin961104
2010-07-15 15:18
26樓
  
那個......
1.開啟zombie_plague40.sma

2.找尋『respawn_player_manually(id)』

3.在上面的空格加入:

在上面的空格加入是什麼意思,,,是加左respawn_player_manually(id)的上面嗎
即是:
// For Nemesis
new g_nemesis_in_game[33] // 選定不幸的彊屍
new bool:g_nemesis_appear
new bool:g_nemesis_die
new bool:OK_to_make

respawn_player_manually(id)

這樣嗎??

獻花 x0
引用 | 編輯 Rubbish-Nec
2010-07-15 15:19
27樓
  
下面是引用 kevin961104 於 2010-07-15 15:18 發表的 : 到引言文
那個......
1.開啟zombie_plague40.sma

2.找尋『respawn_player_manually(id)』

3.在上面的空格加入:

在上面的空格加入是什麼意思,,,是加左respawn_player_manually(id)的上面嗎
即是:
// For Nemesis
new g_nemesis_in_game[33] // 選定不幸的彊屍
new bool:g_nemesis_appear
new bool:g_nemesis_die
new bool:OK_to_make

respawn_player_manually(id)

這樣嗎??

有一個是這樣的:

respawn_player_manually(id)
{
.
.
.

}

就是在上面加入表情

獻花 x0
引用 | 編輯 kevin961104
2010-07-15 15:23
28樓
  
1.<-------------?
respawn_player_manually(id)
{     2.<-------------?
.     3.<-------------?
.     4.<-------------?
.     5.<-------------?
    6.<-------------?
}     7.<-------------?
    8.<-----------?

上面的意思為??? 真的不太懂,,,,
是1.的位置嗎..

獻花 x0
引用 | 編輯 Rubbish-Nec
2010-07-15 15:43
29樓
  
下面是引用 kevin961104 於 2010-07-15 15:23 發表的 : 到引言文
1.<-------------?

respawn_player_manually(id)
{
.
.
.
}


上面的意思為??? 真的不太懂,,,,
是1.的位置嗎..

1.

獻花 x0
<< 1 2 3 >>
跳頁: (共 3 頁)