引用 | 編輯
fouury
2011-08-19 17:30 |
13樓
▲ ▼ |
聽andyt大說過是在適當時機殺死假bot. 其實就好像場上有兩個正常的bot. 感染一隻之後. 剩餘的一隻將他殺掉. 就完成了回合結束的條件囉^^ 但假BOT應該只是一個信息吧. 不過我偏偏不會寫假BOT0.0"" 終究只有如此神爛技術 那最後這篇就當作給沒看過的人小小的見識吧0.0 x0 |
引用 | 編輯
a7811311622
2011-08-19 23:38 |
16樓
▲ ▼ |
引用 | 編輯
husano896
2011-08-20 06:19 |
20樓
▲ ▼ |
下面是引用 husano896 於 2011-08-19 14:00 發表的 : 先在士氣插件的任意地方加入 new const weapon_name[CSW_P90+1][] = { "skull", "p228", "", "scout", "hegrenade", "xm1014", "c4", "mac10", "aug", "smokegrenade", "elite", "fiveseven", "ump45", "sg550", "galil", "famas", "usp", "glock18", "awp", "mp5navy", "m249", "m3", "m4a1", "tmp", "g3sg1", "flashbang", "deagle", "sg552", "ak47", "knife", "p90" } 接著 原本 複製程式 if (hitzone != 1) { if (!has_item2[victim]) { g_time[victim] = 5 show_respawn_msg(victim) } else { set_task(1.0, "respawn_user", victim) } } 的地方 改成 複製程式 if (hitzone != 1) { //修正動作用 不加會有問題噢~ set_pev(victim,pev_frame,0.0) set_pev(victim,pev_sequence,101) set_pev(victim,pev_animtime, get_gametime()); set_pev(victim,pev_solid,SOLID_NOT) set_pev(victim,pev_takedamage,0.0) set_pev(victim,pev_maxspeed,0.0) fm_strip_user_weapons(victim) //不加的話武器就噴不出來 //原插件部分~------------------------ if (!has_item2[victim]) { g_time[victim] = 5 show_respawn_msg(victim) } else { set_task(1.0, "respawn_user", victim) } //原插件部分~------------------------ //因為會擋掉原本的死亡訊息 所以要重新發送 if (attacker != victim && attacker) SendDeathMsg(attacker, victim, weapon_name[use_weapon]) else SendDeathMsg(attacker, victim, "worldspawn") return HAM_SUPERCEDE //罪魁禍首!! } 在任意處加入發送死亡訊息的function以及噴光武器的function 複製程式 SendDeathMsg(attacker, victim, const weapon[]) { message_begin(MSG_BROADCAST, get_user_msgid("DeathMsg")) write_byte(attacker) // killer write_byte(victim) // victim write_byte(0) // headshot flag write_string(weapon) // killer's weapon message_end() } stock fm_strip_user_weapons(id) { static ent ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "player_weaponstrip")) if (!pev_valid(ent)) return; dllfunc(DLLFunc_Spawn, ent) dllfunc(DLLFunc_Use, ent, id) engfunc(EngFunc_RemoveEntity, ent) } 噢對了 忘了說 用了之後 非爆頭擊殺的話 被殺者的Death以及殺人者的Kill不會增加噢~(可以自己找加殺敵數的指令進去) x1 |
引用 | 編輯
a7811311622
2011-08-20 13:58 |
21樓
▲ ▼ |
簡單說…就是判斷傷害…在被殺害的前一刻讓目標裝死就是了…
實際上根本沒打到…讓目標做出死亡的動作 然後再裝做什麼事都沒發生讓目標重生在重生點…是這樣嗎? 話說我比較在意這句是怎麼了…?||= = 下面是引用 husano896 於 2011-08-20 06:19 發表的 : x0 |
引用 | 編輯
i-c0112
2011-08-30 21:17 |
25樓
▲ ▼ |
據我所知 不需用那個判斷死亡的新 native 喔
之前無聊做一個沒有意義的測試的時候偶然發現 只要把pev_health 設到 <= 0.0 is_user_alive 就會回傳 0 所以你不用擔心把 Ham_Killed block 後還會被 is_user_alive 判斷為 1 還有 不能肯定我的amxmodx1.8.1 是正常的 x0 |
引用 | 編輯
b0955645932
2011-08-31 02:48 |
27樓
▲ ▼ |
都是神手>_< 好好唷 我真希望有人可交我
x0 |
引用 | 編輯
a024245339
2011-09-11 13:00 |
28樓
▲ ▼ |
看起來是個大工程呢
x0 |