《孤島危機:彈頭》打造屬于自己的武器(武器修改教程)
- 作者:不死鳥
- 編輯:ChunTian
彈頭真短,就7關,游俠發(fā)布的第一天下了到現(xiàn)在打穿無數(shù)遍了。無聊之余研究了一下改造武器,這里寫出來跟大家分享一下。
crysis修改武器很簡單,不需要特別的工具軟件,只要你有IE瀏覽器和winrar就可以了。不要被下邊長長的代碼嚇到了,其實修改非常簡單!
首先warhead的武器數(shù)據(jù)保存在X:\Crysis WARHEAD\Game文件夾里的Warhead_GameData.pak文件里,這個文件可以用winrar等壓縮軟件直接打開,打開后進入
Warhead_GameData.pak\Scripts\Entities\Items\XML\Weapons(無需解壓,可以直接在這里改,改前記得備份哦!),在這里可以看到很多XML文件,這些就是武器的數(shù)據(jù),文件名就是對應的武器,下面以SCAR(別說不知道這是什么,這是美軍初始武器)為例介紹如何修改:
直接在winrar里雙擊SCAR.xml,IE瀏覽器打開,這時只能看不能改,點<查看>---<源文件>這時記事本打開就可以修改了。每個武器的都包含9個大類,就是如下紅字部分,在瀏覽器里可以單擊收攏展開。藍字是說明,一般不做修改。綠字代表常用修改部分。
- <item name="SCAR" class="Weapon" category="medium" priority="12">
+ <params> 關鍵字
<param name="giveable" value="1" /> 1為可以得到,0得不到,這個一般不改
<param name="selectable" value="1" /> 可否選擇,1可選,0不可選。比如C4的遙控器就是不可選的,武器都是可選的,除非你不想用!
<param name="pose" value="rifle" /> 持槍姿勢
<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描述類,所有武器的這一類基本就一句,沒什么好改的。
+ <ammos>彈藥
<ammo name="bullet" extra="0" amount="40" minAmmo="25" /> amount是初始彈夾子彈數(shù)量,如果想把彈夾容量改為50,還要修改后邊f(xié)iremodes類中的<param name="clip_size" value="50" />, minAmmo好像是每個撿到彈夾的補給量。
<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>幾何,主要是模型視覺效果
<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>動作,做各種動作時的視覺聲音效果,比如開槍的聲音和動作. 每個聲音后邊都有一個參數(shù)radius="n",這個就是聲音傳播范圍,如果這個范圍內(nèi)有敵人,他可以聽到你從而提高警覺并發(fā)現(xiàn)你,可以看到消音后警覺范圍是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>
玩家點評 (0人參與,0條評論)
熱門評論
全部評論