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

《孤島危機(jī):彈頭》打造屬于自己的武器(武器修改教程)

時(shí)間:2008-11-13 07:13:22
  • 作者:不死鳥(niǎo)
  • 編輯:ChunTian
0

彈頭真短,就7關(guān),游俠發(fā)布的第一天下了到現(xiàn)在打穿無(wú)數(shù)遍了。無(wú)聊之余研究了一下改造武器,這里寫(xiě)出來(lái)跟大家分享一下。

crysis修改武器很簡(jiǎn)單,不需要特別的工具軟件,只要你有IE瀏覽器和winrar就可以了。不要被下邊長(zhǎng)長(zhǎng)的代碼嚇到了,其實(shí)修改非常簡(jiǎn)單!

首先warhead的武器數(shù)據(jù)保存在X:\Crysis WARHEAD\Game文件夾里的Warhead_GameData.pak文件里,這個(gè)文件可以用winrar等壓縮軟件直接打開(kāi),打開(kāi)后進(jìn)入

Warhead_GameData.pak\Scripts\Entities\Items\XML\Weapons(無(wú)需解壓,可以直接在這里改,改前記得備份哦?。?在這里可以看到很多XML文件,這些就是武器的數(shù)據(jù),文件名就是對(duì)應(yīng)的武器,下面以SCAR(別說(shuō)不知道這是什么,這是美軍初始武器)為例介紹如何修改:

直接在winrar里雙擊SCAR.xml,IE瀏覽器打開(kāi),這時(shí)只能看不能改,點(diǎn)<查看>---<源文件>這時(shí)記事本打開(kāi)就可以修改了。每個(gè)武器的都包含9個(gè)大類(lèi),就是如下紅字部分,在瀏覽器里可以單擊收攏展開(kāi)。藍(lán)字是說(shuō)明,一般不做修改。綠字代表常用修改部分。

- <item name="SCAR" class="Weapon" category="medium" priority="12">

+ <params> 關(guān)鍵字

  <param name="giveable" value="1" />   1為可以得到,0得不到,這個(gè)一般不改

  <param name="selectable" value="1" />   可否選擇,1可選,0不可選。比如C4的遙控器就是不可選的,武器都是可選的,除非你不想用!

  <param name="pose" value="rifle" />   持槍姿勢(shì)

  <param name="mass" value="20" />   質(zhì)量,可能代表重量

  <param name="melee_attack_firemode" value="melee" />     近戰(zhàn)模式

  <param name="raiseable" value="true" />   

  <param name="raise_distance" value="0.80" />  

  <param name="attach_to_back" value="1" />

  <param name="bone_attachment_01" value="back_item_attachment_01" />

  <param name="bone_attachment_02" value="back_item_attachment_02" />

- <dualwield>

  <suffix value="akimbo_" />

  </dualwield>

  </params>

  <ai_descriptor handler="instant" burstBulletCountMin="1" burstBulletCountMax="10" burstPauseTimeMin="0.8" burstPauseTimeMax="3.5" singleFireTriggerTime="-1" />  ai描述類(lèi),所有武器的這一類(lèi)基本就一句,沒(méi)什么好改的。

+ <ammos>彈藥

  <ammo name="bullet" extra="0" amount="40" minAmmo="25" />   amount是初始彈夾子彈數(shù)量,如果想把彈夾容量改為50,還要修改后邊f(xié)iremodes類(lèi)中的<param name="clip_size" value="50" />, minAmmo好像是每個(gè)撿到彈夾的補(bǔ)給量。

  <ammo name="scargrenade" extra="0" amount="0" accessoryAmmo="1" />

  <ammo name="tacbullet" extra="0" amount="0" accessoryAmmo="0" />

  <ammo name="tagbullet" extra="0" amount="0" accessoryAmmo="5" />

  </ammos>

+ <geometry>幾何,主要是模型視覺(jué)效果

  <firstperson name="objects/weapons/us/scar/scar_l-c_fp.chr" angles="0,0,0" position="0,0,0" />

  <thirdperson name="objects/weapons/us/scar/scar_l-c_tp.cgf" angles="0,0,0" />

- <boneAttachments>

  <attachment target="firstperson" name="magazine" bone="magazine" />

  <attachment target="firstperson" name="silencer_attach" bone="silencer_attach" />

  <attachment target="firstperson" name="muzzle_flash_effect" bone="weapon_term" />

  <attachment target="firstperson" name="muzzle_flash_light" bone="weapon_term" />

  <attachment target="firstperson" name="muzzle_flash_smoke" bone="weapon_term" />

  <attachment target="firstperson" name="attachment_top" bone="attachment_top" />

  <attachment target="firstperson" name="attachment_bottom" bone="attachment_bottom" />

  <attachment target="firstperson" name="shell_grenade" bone="shell_grenade" />

  <attachment target="firstperson" name="grenade_flash_effect" bone="grenade_term" />

  <attachment target="firstperson" name="grenade_flash_light" bone="grenade_term" />

  <attachment target="firstperson" name="attachment_side" bone="attachment_side" />

  <attachment target="firstperson" name="attachment_side_light" bone="attachment_side" />

  <attachment target="firstperson" name="attachment_side_Laser" bone="attachment_side" />

  </boneAttachments>

  </geometry>

+ <actions>動(dòng)作,做各種動(dòng)作時(shí)的視覺(jué)聲音效果,比如開(kāi)槍的聲音和動(dòng)作. 每個(gè)聲音后邊都有一個(gè)參數(shù)radius="n",這個(gè)就是聲音傳播范圍,如果這個(gè)范圍內(nèi)有敵人,他可以聽(tīng)到你從而提高警覺(jué)并發(fā)現(xiàn)你,可以看到消音后警覺(jué)范圍是20,而不消音是200

- <action name="select">

  <animation target="firstperson" name="select_01" />

  <animation target="owner" name="select" />

  <sound target="thirdperson" name="sounds/weapons:scar:select" radius="2" />

  </action>

- <action name="deselect">

  <animation target="firstperson" name="deselect_01" />

  <animation target="owner" name="deselect" />

  <sound target="firstperson" name="sounds/weapons:scar:deselect" radius="2" />

  <sound target="thirdperson" name="sounds/weapons:scar:deselect" radius="2" />

  </action>

- <action name="idle" children="1">

  <animation target="firstperson" name="idle_%hand%_%suffix%01" speed="0.7" />

  <animation target="owner" name="idle" />

  </action>

- <action name="pickedup">

  <sound target="firstperson" name="Sounds/weapons:weapon_accessories:pickup_weapon_fp" radius="5" />

  <sound target="thirdperson" name="Sounds/weapons:weapon_accessories:pickup_weapon" radius="5" />

  </action>

- <action name="fire">

  <animation target="firstperson" name="fire_bullets_%hand%_%suffix%01" />

  <animation target="owner" name="shoot" />

  <sound target="firstperson" name="sounds/weapons:scar:fire_fp_single%env%" radius="200" static="1" />

  <sound target="thirdperson" name="sounds/weapons:scar:fire_3rd_single%env%" radius="200" static="1" />

  </action>

- <action name="spin_down">

  <sound target="firstperson" name="Sounds/weapons:scar:fire_fp_tail%env%" radius="5" static="1" />

  <sound target="thirdperson" name="Sounds/weapons:scar:fire_3rd_tail%env%" radius="5" static="1" />

  </action>

- <action name="spin_down_silenced">

  <sound target="firstperson" name="Sounds/weapons:scar:fire_silenced_fp_tail" radius="5" static="1" />

  <sound target="thirdperson" name="Sounds/weapons:scar:fire_silenced_3rd_tail" radius="5" static="1" />

  </action>

- <action name="rapid_fire">

  <sound target="firstperson" name="Sounds/weapons:scar:fire_fp_loop" radius="250" static="1" synched="1" />

  <sound target="thirdperson" name="Sounds/weapons:scar:fire_3rd_loop" radius="250" static="1" synched="1" />

  </action>

- <action name="rapid_fire_silenced">

  <sound target="firstperson" name="Sounds/weapons:scar:fire_silenced_fp_loop" radius="20" static="1" synched="1" />

  <sound target="thirdperson" name="Sounds/weapons:scar:fire_silenced_3rd_loop" radius="20" static="1" synched="1" />

  </action>

- <action name="fire_silenced">

  <animation target="firstperson" name="fire_bullets_%hand%_%suffix%01" />

  <animation target="owner" name="shoot" />

  <sound target="firstperson" name="sounds/weapons:scar:fire_silenced_fp_single" radius="18" static="1" />

  <sound target="thirdperson" name="sounds/weapons:scar:fire_silenced_3rd_single" radius="18" static="1" />

  </action>

- <action name="fire_gl" children="1">

  <animation target="firstperson" name="fire_grenade_%hand%_%suffix%01" />

  <animation target="owner" name="shoot" />

  <sound target="firstperson" name="sounds/weapons:scar:fire_grenademode_fp" radius="25" static="1" />

  <sound target="thirdperson" name="sounds/weapons:scar:fire_grenademode" radius="25" static="1" />

  </action>

- <action name="change_firemode">

  <animation target="firstperson" name="switch_firemode_%hand%_%suffix%01" />

  <animation target="owner" name="firemode" />

  <sound target="firstperson" name="sounds/weapons:weapon_accessories:change_firemode" radius="5" />

  <sound target="thirdperson" name="sounds/weapons:weapon_accessories:change_firemode" radius="5" />

  </action>

- <action name="change_firemode_zoomed">

  <animation target="owner" name="firemode" />

  <sound target="firstperson" name="sounds/weapons:weapon_accessories:change_firemode" radius="3" />

  <sound target="thirdperson" name="sounds/weapons:weapon_accessories:change_firemode" radius="3" />

  </action>

- <action name="reload_chamber_empty">

  <animation target="firstperson" name="reload_chamberempty_01" speed="1.25" />

  <animation target="owner" name="reload_chamber_empty" />

- <!-- <sound target="thirdperson" name="sounds/weapons:scar:reload_chamberempty" radius="5" />

  -->

  </action>

友情提示:支持鍵盤(pán)左右鍵"←""→"翻頁(yè)
8.8
已有7人評(píng)分 您還未評(píng)分!
  • 類(lèi)型:第一人稱(chēng)射擊
  • 發(fā)行:EA
  • 發(fā)售:2008-09-18
  • 開(kāi)發(fā):EA
  • 語(yǔ)言:簡(jiǎn)中 | 英文
  • 平臺(tái):PC
  • 標(biāo)簽:科幻,槍?xiě)?zhàn)

玩家點(diǎn)評(píng) 0人參與,0條評(píng)論)

收藏
違法和不良信息舉報(bào)
分享:

熱門(mén)評(píng)論

全部評(píng)論

3DM自運(yùn)營(yíng)游戲推薦 更多+