網站首頁 單機圖文攻略 單機視頻攻略 單機遊戲攻略 單機遊戲問答 遊戲常見問題 遊戲心得體會 手遊圖文攻略 手遊視頻攻略 手遊圖鑑攻略 手遊軟件教程 手遊攻略問題 網遊圖文攻略 網遊綜合攻略 網遊遊戲問答
當前位置:趣味遊戲館 > 單機圖文攻略 > 

彈頭》狙擊和高斯步槍添加消音器的方法|《孤島危機

欄目: 單機圖文攻略 / 發佈於: / 人氣:1.22W

高斯步槍和狙擊都可以添加消音器,不過高斯步槍消音器嵌入到槍管裏了,不太好看,狙擊一點問題都沒有。下面以高斯步槍為例介紹修改,改狙擊方法跟這個一模一樣。

《孤島危機:彈頭》狙擊和高斯步槍添加消音器的方法

要添加消音器要在4大類中修改,分別是:在geometry中添加位置, 在actions中添加聲音,在layers中添加圖層,在accessories中添加消音器及開火效果,以下綠字部分為添加。武器的actions中的聲音和accessories中的開火效果我參考的是SCAR,這個可以隨便替換,聲音和消音器只是視聽效果,決定消音器能殺人於無形的是radius參數,值小就可以不被敵人聽到,就是説你不裝消音器,只要把相應開火聲音的radius改小,哪怕槍聲震聾你,敵人也聽不到-_-!

- <item name="GaussRifle" class="Weapon" category="medium" priority="16">

+ <params>

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

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

  <param name="pose" value="rifle" />

  <param name="mass" value="35" />

  <param name="select_override" value="1.5" />

  <param name="melee_attack_firemode" value="melee" />

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

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

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

+ <ammos>

  <ammo name="gaussbullet" extra="0" amount="5" minAmmo="3" />

  </ammos>

+ <geometry>

  <firstperson name="objects/weapons/us/gauss/gauss_" angles="0,0,0" />

  <thirdperson name="objects/weapons/us/gauss/gauss_" angles="0,0,0" />

- <boneAttachments>

<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_side" bone="attachment_side" />

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

  </boneAttachments>

  </geometry>

+ <actions>

- <action name="select">

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

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

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

  </action>

- <action name="deselect">

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

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

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

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

  </action>

- <action name="idle">

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

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

  </action>

- <action name="offhand_on">

  <animation target="firstperson" name="remove_hand_%offhand%_01" speed="3" />

  </action>

- <action name="offhand_off">

  <animation target="firstperson" name="grab_weapon_%offhand%_01" />

  </action>

- <action name="pickedup">

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

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

  </action>

- <action name="fire_cock">

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

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

  <sound target="firstperson" name="sounds/weapons:gaussrifle:fire%env%_fp" radius="300" static="1" />

  <sound target="thirdperson" name="sounds/weapons:gaussrifle:fire%env%" radius="300" static="1" />

  </action>

- <action name="fire">

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

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

  <sound target="firstperson" name="sounds/weapons:gaussrifle:fire%env%_fp" radius="300" static="1" />

  <sound target="thirdperson" name="sounds/weapons:gaussrifle:fire%env%" radius="300" static="1" />

  </action>

- <action name="fire_silenced">

  <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>    這是開槍時的聲音,可以隨意替換其他武器的,但是記得radius值不要太大,這才是消音器起作用的重要參數。

- <action name="cock">

  <animation target="firstperson" name="cock_%hand%_01" />

  </action>

- <action name="cock_sound">

  <sound target="firstperson" name="Sounds/weapons:gaussrifle:gauss_reload_fire_full" static="1" />

  </action>

- <action name="reload_chamber_empty">

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

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

- <!-- <sound target="thirdperson" name="sounds/weapons:gaussrifle:reload" radius="10" />

  -->

  </action>

- <action name="reload_chamber_full">

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

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

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

  -->

  </action>

- <action name="zoom_in">

  <animation target="firstperson" name="zoom_in_%suffix%01" speed="1.75" />

  </action>

- <action name="zoom_out">

  <animation target="firstperson" name="zoom_out_%suffix%01" speed="1.25" />

  </action>

- <action name="enter_modify">

  <animation target="firstperson" name="enter_modify_%hand%_01" />

  <animation target="ownerloop" name="modify_weapon" />

  </action>

- <action name="leave_modify">

  <animation target="firstperson" name="leave_modify_%hand%_01" />

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

  </action>

- <action name="melee">

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

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

- <!-- <sound target="firstperson" name="sounds/weapons:melee:fire_fp_mw" radius="5" />

  -->

  <sound target="thirdperson" name="sounds/weapons:melee:fire" radius="5" />

  </action>

- <action name="empty_clip">

  <sound target="firstperson" name="Sounds/weapons:gaussrifle:dryfire_fp" radius="2" />

  <sound target="thirdperson" name="Sounds/weapons:gaussrifle:dryfire" radius="2" />

  </action>

- <action name="null_fire">

  <sound target="firstperson" name="Sounds/interface:hud:null_fire" radius="2" />

  </action>

- <action name="hit">

  <sound target="firstperson" name="sounds/physics:bullet_impact:melee_impact_mw" radius="5" />

  <sound target="thirdperson" name="sounds/physics:bullet_impact:melee_impact_mw" radius="5" />

  </action>

- <action name="raise">

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

  </action>

- <action name="idle_raised">

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

  </action>

- <action name="lower">

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

  </action>

  </actions>

+ <layers>

- <layer name="silencer">

  <animation target="firstperson" name="silencer_on_layer_01" layerId="1" />

  </layer>

- <layer name="dampers">

  <animation target="firstperson" name="dampers_layer_01" layerId="4" />

- <bones>

  <bone name="left_damper_base" />

  <bone name="right_damper_base" />

  </bones>

  </layer>

- <layer name="flashlight">

  <animation target="firstperson" name="flashlight_on_layer_01" layerId="6" />

  </layer>

- <layer name="scope">

  <animation target="firstperson" name="scope_on_layer_01" layerId="5" />

  </layer>

- <layer name="modify_layer">

  <animation target="firstperson" name="modify_layered_%hand%_01" layerId="2" />

  </layer>

  </layers>

+ <firemodes>

- <firemode type="default">

- <spread>

  <param name="min" value="1.0" />

  <param name="max" value="3.0" />

  <param name="attack" value="0.95" />

  <param name="decay" value="0.7" />

  <param name="speed_m" value="1.5" />

  </spread>

  </firemode>

- <firemode name="Single" type="Single">

- <fire>

  <param name="ammo_type" value="gaussbullet" />

  <param name="rate" value="30" />

  <param name="clip_size" value="5" />

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

  <param name="slider_layer" value="dampers" />

  <param name="slider_layer_time" value="750" />

  <param name="damage" value="500" />

  <param name="reload_time" value="3.5" />

  <param name="helper_tp" value="weapon_term" />

  <param name="nearmiss_signal" value="OnNearMiss" />

  <param name="hit_type" value="gaussbullet" />

  </fire>

- <tracer>

  <param name="effectFP" value="weapon_sfp" />

  <param name="effect" value="weapon_s" />

  <param name="speed" value="500" />

  <param name="speedFP" value="400" />

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

  <param name="helper_tp" value="weapon_term" />

  <param name="helper_fp" value="weapon_term" />

  </tracer>

- <recoil>

  <param name="max_recoil" value="12.0" />

  <param name="attack" value="5.0" />

  <param name="decay" value="0.5" />

  <param name="maxx" value="40.0" />

  <param name="maxy" value="6.0" />

  <param name="randomness" value="0.3" />

- <hints>

  <hint x="1.0" y="1.0" />

  </hints>

  </recoil>

- <!--

<spread>

                                <param name="min" value="2.5" />

                                <param name="max" value="6.25" />

                                <param name="attack" value="0.95" />

                                <param name="decay" value="0.7" />

                                <param name="speed_m" value="1.5" />                               

                        </spread>

  -->

- <actions>

  <param name="fire_cock" value="fire_cock" />

  </actions>

- <muzzleflash>

  <firstperson effect="er" time="1" helper="muzzle_flash_effect" light_helper="muzzle_flash_light" light_radius="2" light_color="0.5,0.5,1" light_diffuse_mult="8" />

  <thirdperson effect="er_tp" time="1" helper="weapon_term" light_helper="weapon_term" light_radius="2.3" light_color="0.5,0.5,1" light_diffuse_mult="8" />

  </muzzleflash>

- <muzzlesmoke_ice>

  <firstperson effect="weapon__steam_on_barrel" helper="muzzle_flash_smoke" />

  <thirdperson effect="weapon__steam_on_barrel" helper="weapon_term" />

  </muzzlesmoke_ice>

- <reject>

  <firstperson effect="weapon_srifle" helper="shells" />

  <thirdperson effect="weapon_srifle" helper="shells" />

  </reject>

- <recoil>

  <param name="angular_impulse" value="0.5" />

  <param name="back_impulse" value="3.0" />

  </recoil>

  </firemode>

- <firemode name="melee" type="Melee">

- <melee>

  <param name="helper" value="collision" />

  <param name="offset" value="0.85" />

  <param name="damage" value="70" />

  <param name="impulse" value="60" />

  <param name="delay" value="0.13" />

  <param name="duration" value="0.35" />

  </melee>

- <actions>

  <param name="attack" value="melee" />

  </actions>

  </firemode>

  </firemodes>

+ <zoommodes>

- <zoommode name="ironsight" type="IronSight">

- <zoom>

  <param name="suffix" value="ironsight_" />

  <param name="suffix_FC" value="fc_" />

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

  <param name="dof_mask" value="textures/weapons/ironzoom_" />

  <param name="zoom_in_time" value="0.2" />

  <param name="zoom_out_time" value="0.2" />

- <stages>

  <stage value="1.4" />

  </stages>

  </zoom>

- <zoomSway>

  <param name="maxX" value="0.012" />

  <param name="maxY" value="0.015" />

  <param name="stabilizeTime" value="1.5" />

  <param name="minScale" value="0.2" />

  <param name="strengthScale" value="0.75" />

  <param name="strengthScaleTime" value="0.75" />

  <param name="crouchScale" value="0.75" />

  <param name="proneScale" value="0.0" />

  </zoomSway>

- <spreadMod>

  <param name="max_mod" value="0.1" />

  <param name="attack_mod" value="1.0" />

  <param name="decay_mod" value="1.0" />

  <param name="speed_m_mod" value="0.5" />

  <param name="min_mod" value="0.0001" />

  <param name="rotation_m_mod" value="1.5" />

  <param name="spread_crouch_m_mod" value="0.75" />

  <param name="spread_prone_m_mod" value="0.5" />

  <param name="spread_jump_m_mod" value="1.0" />

  </spreadMod>

- <recoilMod>

  <param name="max_recoil_mod" value="1.0" />

  <param name="attack_mod" value="1.0" />

  <param name="decay_mod" value="1.0" />

  <param name="impulse_mod" value="1.0" />

  <param name="maxx_mod" value="1.0" />

  <param name="maxy_mod" value="1.0" />

  <param name="angular_impulse_mod" value="1.0" />

  <param name="back_impulse_mod" value="1.0" />

  <param name="recoil_crouch_m_mod" value="0.75" />

  <param name="recoil_prone_m_mod" value="0.5" />

  <param name="recoil_jump_m_mod" value="2.0" />

  <param name="recoil_strMode_m_mod" value="0.75" />

  </recoilMod>

  </zoommode>

- <zoommode name="reflexsight" type="IronSight" enabled="0">

- <zoom>

  <param name="suffix" value="reflex_" />

  <param name="dof_mask" value="textures/weapons/ironzoom_" />

  <param name="zoom_in_time" value="0.2" />

  <param name="zoom_out_time" value="0.2" />

  <param name="reflex_aimDot" value="0" />

  <param name="reflex_dotEffect" value="Objects/Weapons/Attachments/reflex_rifle/" />

  <param name="hbob_ratio" value="2.5" />

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

  <param name="scope_nearFov" value="27" />

- <stages>

  <stage value="1.8" />

  </stages>

  </zoom>

- <zoomSway>

  <param name="maxX" value="0.012" />

  <param name="maxY" value="0.015" />

  <param name="stabilizeTime" value="1.5" />

  <param name="minScale" value="0.2" />

  <param name="strengthScale" value="0.75" />

  <param name="strengthScaleTime" value="0.75" />

  <param name="crouchScale" value="0.75" />

  <param name="proneScale" value="0.0" />

  </zoomSway>

- <spreadMod>

  <param name="max_mod" value="0.1" />

  <param name="attack_mod" value="1.0" />

  <param name="decay_mod" value="1.0" />

  <param name="speed_m_mod" value="0.25" />

  <param name="min_mod" value="0.0001" />

  <param name="rotation_m_mod" value="1.0" />

  <param name="spread_crouch_m_mod" value="0.75" />

  <param name="spread_prone_m_mod" value="0.5" />

  <param name="spread_jump_m_mod" value="1.0" />

  </spreadMod>

- <recoilMod>

  <param name="max_recoil_mod" value="1.0" />

  <param name="attack_mod" value="1.0" />

  <param name="decay_mod" value="1.0" />

  <param name="impulse_mod" value="1.0" />

  <param name="maxx_mod" value="0.75" />

  <param name="maxy_mod" value="0.75" />

  <param name="angular_impulse_mod" value="1.0" />

  <param name="back_impulse_mod" value="1.0" />

  <param name="recoil_crouch_m_mod" value="0.75" />

  <param name="recoil_prone_m_mod" value="0.5" />

  <param name="recoil_jump_m_mod" value="2.0" />

  <param name="recoil_strMode_m_mod" value="0.75" />

  </recoilMod>

  </zoommode>

- <zoommode name="assaultscope" type="IronSight" enabled="0">

- <zoom>

  <param name="suffix" value="scope_" />

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

  <param name="blur_mask" value="textures/weapons/assaultscope_" />

  <param name="dof_mask" value="textures/weapons/assaultscope_" />

  <param name="zoom_in_time" value="0.2" />

  <param name="zoom_out_time" value="0.2" />

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

  <param name="scope_nearFov" value="8" />

  <param name="scope_offset" value="-0.0005,0.16,0.0" />

- <stages>

  <stage value="3.5" />

  </stages>

  </zoom>

- <zoomSway>

  <param name="maxX" value="0.012" />

  <param name="maxY" value="0.015" />

  <param name="stabilizeTime" value="1.5" />

  <param name="minScale" value="0.2" />

  <param name="strengthScale" value="0.75" />

  <param name="strengthScaleTime" value="0.75" />

  <param name="crouchScale" value="0.75" />

  <param name="proneScale" value="0.0" />

  </zoomSway>

- <spreadMod>

  <param name="max_mod" value="0.1" />

  <param name="attack_mod" value="1.0" />

  <param name="decay_mod" value="1.0" />

  <param name="speed_m_mod" value="0.5" />

  <param name="min_mod" value="0.0001" />

  <param name="rotation_m_mod" value="1.5" />

  <param name="spread_crouch_m_mod" value="0.75" />

  <param name="spread_prone_m_mod" value="0.5" />

  <param name="spread_jump_m_mod" value="1.0" />

  </spreadMod>

- <recoilMod>

  <param name="max_recoil_mod" value="0.75" />

  <param name="attack_mod" value="0.75" />

  <param name="decay_mod" value="1.0" />

  <param name="impulse_mod" value="1.0" />

  <param name="maxx_mod" value="0.5" />

  <param name="maxy_mod" value="0.5" />

  <param name="angular_impulse_mod" value="1.0" />

  <param name="back_impulse_mod" value="1.0" />

  <param name="recoil_crouch_m_mod" value="0.75" />

  <param name="recoil_prone_m_mod" value="0.5" />

  <param name="recoil_jump_m_mod" value="2.0" />

  <param name="recoil_strMode_m_mod" value="0.75" />

  </recoilMod>

- <scope>

  <param name="scope" value="scope_assault" />

  <param name="dark_in_time" value="0.15" />

  <param name="dark_out_time" value="0.15" />

  </scope>

  </zoommode>

- <zoommode name="sniper" type="Scope" enabled="0">

- <zoom>

  <param name="suffix" value="scope_" />

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

  <param name="blur_mask" value="textures/weapons/assaultscope_" />

  <param name="dof_mask" value="textures/weapons/assaultscope_" />

  <param name="zoom_in_time" value="0.15" />

  <param name="zoom_out_time" value="0.125" />

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

  <param name="scope_nearFov" value="6" />

  <param name="scope_offset" value="0.0,0.2,0.0059" />

  <param name="hbob_ratio" value="2.5" />

- <stages>

  <stage value="4" />

  <stage value="10" />

  <stage value="16" />

  </stages>

  </zoom>

- <zoomSway>

  <param name="maxX" value="0.012" />

  <param name="maxY" value="0.015" />

  <param name="stabilizeTime" value="1.5" />

  <param name="minScale" value="0.2" />

  <param name="strengthScale" value="0.75" />

  <param name="strengthScaleTime" value="0.75" />

  <param name="crouchScale" value="0.75" />

  <param name="proneScale" value="0.0" />

  </zoomSway>

- <spreadMod>

  <param name="max_mod" value="0.1" />

  <param name="attack_mod" value="1.0" />

  <param name="decay_mod" value="1.0" />

  <param name="speed_m_mod" value="0.5" />

  <param name="min_mod" value="0.0001" />

  <param name="rotation_m_mod" value="3.0" />

  <param name="spread_crouch_m_mod" value="0.75" />

  <param name="spread_prone_m_mod" value="0.5" />

  <param name="spread_jump_m_mod" value="1.0" />

  </spreadMod>

- <recoilMod>

  <param name="max_recoil_mod" value="1.0" />

  <param name="attack_mod" value="1.0" />

  <param name="decay_mod" value="1.0" />

  <param name="impulse_mod" value="1.0" />

  <param name="maxx_mod" value="0.5" />

  <param name="maxy_mod" value="0.5" />

  <param name="angular_impulse_mod" value="1.0" />

  <param name="back_impulse_mod" value="1.0" />

  <param name="recoil_crouch_m_mod" value="0.75" />

  <param name="recoil_prone_m_mod" value="0.5" />

  <param name="recoil_jump_m_mod" value="2.0" />

  <param name="recoil_strMode_m_mod" value="1.5" />

  </recoilMod>

- <scope>

  <param name="scope" value="scope_sniper" />

  <param name="dark_in_time" value="0.15" />

  <param name="dark_out_time" value="0.15" />

  </scope>

  </zoommode>

  </zoommodes>

+ <accessories>

- <accessory name="Silencer">

  <attach helper="silencer_attach" layer="silencer" />

  <detach />

- <params>

- <firemodes>

- <firemode type="single">

- <fire>

  <param name="damage_drop_per_meter" value="0.0" />   裝消音器後子彈威力衰減值/m

  <param name="damage_drop_min_distance" value="0" />   子彈威力全傷害距離

  </fire>

- <muzzleflash>

  <firstperson effect="nced_smoke" helper="muzzle_flash_effect" time="0.1" />   鉗口火焰效果,我是參考SCAR的,可以自己改

  <thirdperson effect="nced_smoke_tp" helper="weapon_term" time="0.1" />   第三人稱下的槍口火焰效果

  </muzzleflash>

- <actions>

  <param name="fire" value="fire_silenced" />

  <param name="fire_cock" value="fire_silenced" />

  <param name="spin_down" value="spin_down_silenced" />

  </actions>

  </firemode>

  </firemodes>

  </params>

  </accessory>  

- <accessory name="LAMRifle">

  <attach helper="attachment_side" layer="flashlight" />

  <detach />

- <params>

- <firemodes>

- <firemode type="default">

- <spread>

  <param name="min" value="1.0" />

  <param name="max" value="2.5" />

  <param name="speed_m" value="0.1" />

  <param name="rotation_m" value="0.2" />

  </spread>

  </firemode>

  </firemodes>

  </params>

  </accessory>

- <accessory name="LAMRifleFlashLight">

  <attach helper="attachment_side" layer="flashlight" />

  <detach />

  </accessory>

- <accessory name="AssaultScope" zoommode="assaultscope">

  <attach helper="attachment_top" layer="scope" />

  <detach />

- <params>

- <firemodes>

- <firemode type="default">

- <fire>

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

  </fire>

  </firemode>

  </firemodes>

  </params>

  </accessory>

- <accessory name="SniperScope" zoommode="sniper">

  <attach helper="attachment_top" layer="scope" />

  <detach />

- <params>

- <firemodes>

- <firemode type="default">

- <fire>

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

  </fire>

  </firemode>

  </firemodes>

  </params>

  </accessory>

- <accessory name="Reflex" zoommode="reflexsight">

  <attach helper="attachment_top" layer="scope" />

  <detach />

  </accessory>

  </accessories>

  </item>