倖存者在感染模式也不被感染

Home Home
引用 | 編輯 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
引用 | 編輯 森之千手
2010-07-19 10:21
1樓
  
有什麼用= =
仿L4D2 表情

獻花 x0
引用 | 編輯 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
引用 | 編輯 loas1234
2010-08-03 15:36
5樓
  
挖汙 我都不懂欸@@

獻花 x0
引用 | 編輯 cubix522
2010-09-11 17:40
6樓
  
轉不到amxx 表情

獻花 x0
引用 | 編輯 asdasd22
2010-10-02 10:36
7樓
  
感染模式有倖存者?

獻花 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 發表的 倖存者在感染模式也不被感染: 到引言文
倖存者在感染模式也不被感染

早前在版上看見有同樣教學

但他的是直接加上護甲

所以我發了這文

首先

找 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;

教學終了


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
引用 | 編輯 ivanwinhk
2011-01-26 21:27
13樓
  
原來這麼簡單阿,只有一小段的sma要改,謝謝大大

獻花 x0
引用 | 編輯 V永恆熊
2011-01-27 00:40
14樓
  
簡潔有利
XDD
不錯的教學

獻花 x0
引用 | 編輯 itismenow
2011-02-04 01:32
15樓
  
那可以不用玩了

獻花 x0
引用 | 編輯 glay2005
2011-03-04 08:18
16樓
  
有ZP 4.2的改法嗎0.0?

獻花 x1
引用 | 編輯 lichen
2011-03-04 20:18
17樓
  
不如 交一下 怎么给幸存者 加 护甲吧?

獻花 x0
引用 | 編輯 HoJai
2011-08-09 11:19
18樓
  
不被感染??就是不會死嗎..

獻花 x0
引用 | 編輯 ckwtiger
2011-09-18 16:01
19樓
  
什么是直接加上護甲???
還有,幸存者死后會變屍嗎?

獻花 x0
引用 | 編輯 ckwtiger
2011-09-21 18:24
20樓
  
return HAM_SUPERCEDE;
這句也要被取代嗎?

獻花 x0
引用 | 編輯 laoklaole
2013-12-24 13:33
21樓
  
不行,試過很多次了,不知道是不是格式不對還是不能轉換位AMXX!能不能把正確的寫入方法能在詳細一點寫出來,試過很多次了

獻花 x0
引用 | 編輯 dw312382354
2014-06-22 18:11
22樓
  
幸存者就是英雄。把他感染进化。

獻花 x0