引用 | 編輯
HsK
2010-07-19 10:18 |
樓主
▼ |
||
x4
倖存者在感染模式也不被感染早前在版上看見有同樣教學 但他的是直接加上護甲 所以我發了這文 首先 找 public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type) [ZP4.3] 在 fw_TakeDamage 的尾部 把 zombieme(victim, attacker, 0, 0, 1) 改成 if (!g_survivor[victim]) zombieme(victim, attacker, 0, 0, 1) // turn into zombie else return HAM_IGNORED; 教學終了 x4
|
引用 | 編輯
Rubbish-Nec
2010-07-19 10:24 |
2樓
▲ ▼ |
好強大……
先列點比較好…… 還有[CODE][/C0DE]語法吃掉了? x0 |
引用 | 編輯
01a2Bc3DeF
2010-07-19 19:09 |
3樓
▲ ▼ |
教學這麼短應該不用code吧
這還真精簡勒 x0 |
引用 | 編輯
a7811311622
2010-07-19 19:13 |
4樓
▲ ▼ |
原來sk@.@和Rubbish-Nec你們兩個不去管插件區的評分…
反而跑來教學區…一個發文…一個評分… x0 |
引用 | 編輯
shijieyuan
2010-12-05 13:02 |
8樓
▲ ▼ |
謝謝摟送你5
x0 |
引用 | 編輯
lyw8614505
2011-01-03 12:55 |
9樓
▲ ▼ |
這篇文章太精悍了,我也是希望幸存者只可被殺死,而不被感染
x0 |
引用 | 編輯
lyw8614505
2011-01-03 13:12 |
10樓
▲ ▼ |
下面是引用 sk@.@ 於 2010-07-19 10:18 發表的 倖存者在感染模式也不被感染: SK大,按你的教程 我打開 ZP4.3的 SMA 先找到 public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type) 發現 fw_TakeDamage 就在上面一句話中 可文章中你又說 在 fw_TakeDamage 的尾部 把 zombieme(victim, attacker, 0, 0, 1) 改成 if (!g_survivor[victim]) zombieme(victim, attacker, 0, 0, 1) // turn into zombie else return HAM_IGNORED; 仔細一看,我真的不知道該怎樣加 因爲 zombieme(victim, attacker, 0, 0, 1) 離 fw_TakeDamage 要有很遠呢 如果說只改 zombieme(victim, attacker, 0, 0, 1) 那還有必要說前面那些嗎 直接說 搜索 zombieme(victim, attacker, 0, 0, 1) 把 zombieme(victim, attacker, 0, 0, 1) 改成。。。。。。。不就行了 是我理解錯誤,還是真的這樣呢 還請S大明示 x0 |
引用 | 編輯
HsK
2011-01-03 16:41 |
11樓
▲ ▼ |
如果我沒有記錯
zombieme 是有數個的 總之就是把 public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type) { ..... } 內的 zombieme(victim, attacker, 0, 0, 1) 改成 if (!g_survivor[victim]) zombieme(victim, attacker, 0, 0, 1) // turn into zombie else x0 |
引用 | 編輯
z1022001
2011-01-04 11:50 |
12樓
▲ ▼ |
因為
zombieme(victim, attacker, 0, 0, 1) 在ZP裡面可能有其他地方也在使用 如果說不小心改錯的話可能會造成某些BUG(吧?) 還有這種改法的話會變成 倖存被抓只損裝甲,損完裝甲才損血 和瘟疫模式的時候的設定不同 個人是建議改在這邊 複製程式 // Last human or not an infection round if (g_survround || g_nemround || g_swarmround || g_plagueround || fnGetHumans() == 1 || g_survivor[victim]) return HAM_IGNORED; // human is killed zombieme(victim, attacker, 0, 0, 1) 的前兩區 x0 |
引用 | 編輯
laoklaole
2013-12-24 13:33 |
21樓
▲ ▼ |
不行,試過很多次了,不知道是不是格式不對還是不能轉換位AMXX!能不能把正確的寫入方法能在詳細一點寫出來,試過很多次了
x0 |
引用 | 編輯
dw312382354
2014-06-22 18:11 |
22樓
▲ |
幸存者就是英雄。把他感染进化。
x0 |