您的位置 首頁 Barotrauma

【攻略】彩虹雷射砲MOD



(っ・Д・)っ我給雷射加了七種色彩~
並且極大的增加了聲光特效
你可以在科研站跟軍事站購買到這種特殊的子彈
==================================
我知道這是一個老MOD
現在他還可以用來挖礦了(゚∀。)

按照慣例介紹MOD製作方法
實際上要更改雷射光柱的粗細以及顏色
嗯。。。你需要打開你的PS
畫一張雷射光的圖
並且放到particle文件夾裡面

別的其他特效其實是可以依靠增加 colormultiplier=”255,0,0,250″(<=這是紅色)
來改變特效顏色 然而官方給的雷射動畫用的圖片就是紅色的了
再怎麼疊加顏色上去效果有限
所以不如自己畫一張白色的雷射再加上七彩

彈藥箱是由彈藥+箱子構成
所以要自制子彈必須要增加兩種item

[黃光雷射彈藥箱]
<Item name=”LaserboxYellow” identifier=”LaserboxYellow” scale=”0.5″ tags=”pulselaserequipment,pulselaserammo,ammobox” category=”Equipment” linkable=”true” impactsoundtag=”impact_metal_heavy”>
    <PreferredContainer primary=”ammocontainer” spawnprobability=”0.0″/>
[這邊是價錢]
      <Price baseprice=”2500″ soldeverywhere=”false”>
      <Price locationtype=”outpost” multiplier=”1.3″ sold=”false”/>
      <Price locationtype=”city” multiplier=”1.2″ sold=”false”/>
      <Price locationtype=”research” multiplier=”1.3″ minavailable=”1″/>
      <Price locationtype=”military” multiplier=”0.9″ minavailable=”1″/>
      <Price locationtype=”mine” multiplier=”1.2″ sold=”false”/>
    </Price>
[以及拆掉後會變成什麼樣子…不要拆他好ㄇ]
    <Deconstruct time=”10″>
      <Item identifier=”lithium” copycondition=”true”/>
      <Item identifier=”alienblood” copycondition=”true”/>
      <Item identifier=”aluminium” />
    </Deconstruct>
    <Sprite texture=”Content/Items/Containers/containers.png” depth=”0.54″ sourcerect=”550,678,117,89″ origin=”0.5,0.5″ />
    <Body width=”115″ height=”88″ density=”50″ />
    <Holdable slots=”RightHand+LeftHand” canBeCombined=”true” removeOnCombined=”false” holdpos=”0,-80″ handle1=”-40,30″ handle2=”40,30″ aimable=”false” msg=”ItemMsgPickUpSelect” />
    <ItemContainer hideitems=”true” capacity=”1″ drawinventory=”false” canbeselected=”false” canbecombined=”true” ShowConditionInContainedStateIndicator=”true” removecontaineditemsondeconstruct=”true” containedstateindicatorstyle=”bullet”>
      <StatusEffect type=”OnUse” target=”This” disabledeltatime=”true”>
        <SpawnItem identifiers=”laser_y”[要在彈藥箱內放子彈] spawnposition=”ThisInventory” />
      </StatusEffect>
      <StatusEffect type=”Always” target=”This” Condition=”1″/>
      <StatusEffect type=”OnUse” target=”This” condition=”-2.25″ disabledeltatime=”true”>
        <RequiredItem items=”laser_y” type=”Contained” />
      </StatusEffect>
      <Containable items=”laser_y” />
    </ItemContainer>
  </Item>
[黃光雷射子彈]
  <Item name=”laser_y” identifier=”laser_y” category=”Misc” scale=”0.5″ sonarsize=”2″ hideinmenus=”true”>
    <Sprite texture=”Content/Items/Weapons/weapons_new.png” sourcerect=”140,500,70,70″ depth=”0.55″ origin=”0.5,0.5″ />
    <Body width=”170″ height=”10″ density=”20″ />
    <Holdable slots=”RightHand+LeftHand” holdpos=”0,-50″ handle1=”-10,0″ handle2=”10,0″ aimable=”false” />
    <Projectile characterusable=”false” hitscan=”true” removeonhit=”true”>
[在自製的whitelaser特效上面疊黃色]
      <ParticleEmitter particle=”whitelaser” particleamount=”1″ velocitymin=”0″ velocitymax=”0″ colormultiplier=”255,255,0,250″/>
      <ParticleEmitter particle=”FlareBubbles” emitacrossrayinterval=”50″/>
      <ParticleEmitter particle=”faradayfx” emitacrossrayinterval=”50″ scalemultiplier=”5,5″/>
  <ParticleEmitter particle=”psychosisfx” emitacrossrayinterval=”50″ scalemultiplier=”2,2″ anglemax=”360″ emitinterval=”1″ particleamount=”1″ particlespersecond=”0.1″ />  
[子彈內定義擊中後的效果以及傷害]
      <Attack structuredamage=”25″ targetforce=”5″ itemdamage=”25″ severlimbsprobability=”0.5″ >
        <Affliction identifier=”burn” strength=”8″ />
        <Affliction identifier=”stun” strength=”1″ />
      </Attack>
[挖礦效果 從EK MOD偷來的]
  <StatusEffect type=”OnImpact” target=”NearbyItems” targettags=”ore” range=”250.0″ stackable=”false” DeattachTimer=”0.5″ />
[命中後爆炸效果 從IC4文件內複製過來的爆炸]
      <StatusEffect type=”OnImpact” target=”UseTarget”>
        <Explosion range=”250.0″ ballastfloradamage=”110″ structuredamage=”50″ itemdamage=”500″ stun=”5″ force=”20.0″ severlimbsprobability=”0.6″>
          <Affliction identifier=”burn” strength=”250″ />
          <Affliction identifier=”explosiondamage” strength=”75″ />
        </Explosion>
[這邊我增加了幾個酷炫的特效]
<ParticleEmitter particle=”muzzleflashpulselaser” anglemin=”0″ anglemax=”360″ particleamount=”10″ velocitymin=”0″ scalemin=”0.5″ scalemax=”0.8″ />
        <ParticleEmitter particle=”weldspark” particleamount=”5″ anglemin=”0″ anglemax=”360″ velocitymin=”300″ velocitymax=”350″ scalemin=”1.5″ scalemax=”1.9″ drawontop=”true” colormultiplier=”255,200,225,180″ />
        <ParticleEmitter particle=”FlareBubbles” particleamount=”3″ anglemin=”0″ anglemax=”360″ velocitymin=”0″ velocitymax=”50″/>
      </StatusEffect>
      <StatusEffect type=”OnImpact” target=”UseTarget”>
        <Conditional entitytype=”eq Structure”/>
        <Conditional hastag=”eq door”/>
        <ParticleEmitter particle=”spark” copyentityangle=”true” anglemin=”-10″ anglemax=”10″ particleamount=”5″ velocitymin=”-10″ velocitymax=”-200″ scalemin=”0.5″ scalemax=”1″ />
      </StatusEffect>
      <StatusEffect type=”OnUse” target=”This” disabledeltatime=”true”>
        <Explosion range=”150.0″ structuredamage=”25″ itemdamage=”25″ force=”10.0″ flames=”false” smoke=”false” sparks=”false” underwaterbubble=”false” flashcolor=”255,0,0,255″ >
          <Affliction identifier=”explosiondamage” strength=”40″ />
          <Affliction identifier=”burn” strength=”20″ />
        </Explosion>
      </StatusEffect>
      <StatusEffect type=”OnNotContained” target=”This”>
        <Remove />
      </StatusEffect>
    </Projectile>
  </Item>

本文來自網路,不代表3樓貓立場,轉載請註明出處:https://www.3loumao.org/21248.html?variant=zh-tw
返回頂部