您的位置: 單機 > 攻略 > 游戲秘籍 > 攻略詳情

腐爛國度PC版 武器數(shù)據(jù)修改方法教程 怎么改武器

時間:2013-09-26 00:31:47
  • 來源:3DM論壇-lcsy
  • 作者:wuyan
  • 編輯:ChunTian
0

引用ch87819 關(guān)于武器耐久的修改

耐久是LUA腳本,CE有LUA腳本編輯功能,物品不損的語句在item.lua里面

相關(guān)語句

function Item.Server:OnHit(hit)

local explosionOnly=tonumber(self.Properties.bExplosionOnly or 0)~=0;

local hitpoints = self.Properties.HitPoints;

if (hitpoints and (hitpoints > 0)) then

local destroyed=self.item:IsDestroyed()

if (hit.type=="repair") then

self.item:OnHit(hit);

elseif ((not explosionOnly) or (hit.explosion)) then

if ((not g_gameRules:IsMultiplayer()) or g_gameRules.game:GetTeam(hit.shooterId)~=g_gameRules.game:GetTeam(self.id)) then

self.item:OnHit(hit);

if (not destroyed) then

if (hit.damage>0) then

if (g_gameRules.Server.OnTurretHit) then

g_gameRules.Server.OnTurretHit(g_gameRules, self, hit);

end

end

if (self.item:IsDestroyed()) then

if(self.FlowEvents and self.FlowEvents.Outputs.Destroyed)then

self:ActivateOutput("Destroyed",1);

end

end

end

end

end

end

end

紅字部分我目測就是物品損壞的代碼,

替換掉

if(self.FlowEvents and self.FlowEvents.Outputs.Destroyed)then

self:ActivateOutput("Destroyed",1);

或者刪除物品估計就不會壞了

另外車輛不損在這里scripts\entities\vehicles\implementations\xml

搜damageMax=就出來各個部件的傷害上限,后面的數(shù)值多加幾個0車就基本不會壞了

還有比較好的辦法是

這種東西用批量替換,把數(shù)值全部變成0.0,這是傷害的公式,"bullet" multiplier就是受到子彈(這里是傷害*1000倍,因為這個是油箱的),"collision" multiplier撞擊傷害*,"melee" multiplier近戰(zhàn)傷害

這些數(shù)值改成0后,受到的傷害就全部乘以0了,測試有效,不過要做車輛不損MOD要所有車的屬性都修改,太麻煩了,等苦力弄。

感謝各位專家專修改教程的完善,看來我成功達到拋磚引玉的效果了!

友情提示:支持鍵盤左右鍵"←""→"翻頁
8.3
已有55人評分 您還未評分!
  • 類型:動作游戲
  • 發(fā)行:Microsoft Studios
  • 發(fā)售:2013-11-06(PC)
  • 開發(fā):Undead Labs
  • 語言:簡中 | 英文 | 多國
  • 平臺:PC XBOX360
  • 標簽:恐怖生存,喪尸末世

玩家點評 0人參與,0條評論)

收藏
違法和不良信息舉報
分享:

熱門評論

全部評論

3DM自運營游戲推薦 更多+