• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Luc's Modlet Collection (Quality Bonuses, better stamina, terrain mv spd, etc...)

That would be perfect :) Is that sound in the unity3d file thats in the modlet? I'll have a look at it after stream just for fun, could be lucky and stumble over a solution :p

 
Of course. Thats why I wanna look at it, so I can tell you that you're wrong :p lol

j/k of course, but yeah letting you know if I should be lucky was the plan:)

 
Last edited by a moderator:
Just had a quick look at the sound issue. Got it working ingame by changing the nailgun_fire sound with yours with "set xpath".

Code:
<configs>
	<set xpath="/Sounds/SoundDataNode[@name='nailgun_fire']/AudioClip/@ClipName">#@modfolder:Sounds/sounds.unity3d?impactwrench</set>
</configs>
Just need to try an append the code from your sounds.xml with the right path to the unity3d file

Code:
#@modfolder:Sounds/sounds.unity3d?impactwrench
But first I need to walk my dog, will try after if I am still awake. It's 2.30 am here now :)

 
I got it working :) Just had to read up on how to use the unity3d stuff. This is the code from your sounds.xml with ClipName pointing to sounds.unity3d in the Mods/Impact Wrench/Sounds folder.

Code:
<configs>
<insertAfter xpath="/Sounds/SoundDataNode[@name='nailgun_fire']">
            <SoundDataNode name="impactWrench"> <AudioSource name="Sounds/AudioSource_Reloads" />
         <Noise ID="1" range="14" volume="30" time="2" muffled_when_crouched="0.65" heat_map_strength="0.05" 
                heat_map_time="60" />
         <AudioClip ClipName="#@modfolder:Sounds/sounds.unity3d?impactwrench" />
         <LocalCrouchVolumeScale value="1" /> <CrouchNoiseScale value="1" /> <NoiseScale value="1" /> <MaxVoices  
                value="30" /> <MaxVoicesPerEntity value="10" /> <MaxRepeatRate value="0.001" /> </SoundDataNode>
</insertAfter>
</configs>
View attachment 26380

So now I've learned something today aswell :)

ImpactWrench.zip

 

Attachments

Last edited by a moderator:
I see, that is fantastic thanks. I have two more sounds ot add to it, for random selection to make them differ slightly, I will work on that tomorrow.

 
Well, I don't have any of that active on the item, perhaps htere are default values it adopts. You could try uncommenting them out and playing with their values.

 
Well, I don't have any of that active on the item, perhaps htere are default values it adopts. You could try uncommenting them out and playing with their values.
I finally figured it out, using the following turned off the recoil.

Code:
<passive_effect name="KickDegreesVertical" operation="base_set" value="0,0"/>
<passive_effect name="KickDegreesHorizontal" operation="base_set" value="0,0"/>
<display_value name="dRecoil" value="0" />
Thanks...

 
Here is one with no recoil and no spread.

Impact Wrench_NoRecoilAndSpread.zip

- - - Updated - - -

Alright the new version is up, complete with three slightly different sounds. Thanks Quasimiyao.
My pleasure, happy to help Trying to figure out the xpath system, unity3d files and xml coding, as none of that is something I really can much about. So is great practice helping with others projects tbh.

 
I just came too request the removal of spread and recoil, but you guys are on top of it. I'm proud and grateful.

 
Just to confirm all modlets loaded fine in b231. Meaning they should be working fine, let me know if you run into any strangeness.

In fact, all of the modlets I use seem to be working fine and I use like 40 of them. :)

 
They appear to be working fine, meaning there are no errors when I load up and I haven't noticed anything not working. If you find something let me know.

 
Here a version of "Scrap Iron and Steel Bars" for server to hold it vanilla

engine/Mods/Scrap Iron and Steel Bars/Config/blocks.xml

<configs><append xpath="/blocks">

<block name="steelBarsCentered">

<property name="CustomIcon" value="ironBars"/>

<property name="CustomIconTint" value="799399" />

<property name="DisplayType" value="blockHardened" />

<property name="Material" value="Mmetal_hard"/>

<property name="MaxDamage" value="6000"/>

<property name="Shape" value="New"/>

<property name="LightOpacity" value="0"/>

<property name="Model" value="iron_bars_centered"/>

<property name="Texture" value="356"/><!-- Steel block 356-->

<property name="UseGlobalUV" value="Local"/>

<property name="ImposterExcludeAndStop" value="true"/>

<property name="Place" value="TowardsPlacer"/>

<property name="Collide" value="movement,melee,rocket"/> <!-- -rocket -->

<property class="RepairItems"> <property name="resourceForgedSteel" value="10"/> </property>

<drop event="Harvest" name="resourceScrapIron" count="64" tag="allHarvest"/>

<drop event="Destroy" count="0"/>

<drop event="Fall" name="scrapMetalPile" count="1" prob="1" stick_chance="1"/>

<property name="Group" value="Building"/>

<property name="EconomicValue" value="10"/>

<property name="DescriptionKey" value="ironBarsDesc"/>

<property name="FilterTags" value="fdecor,fother,fwindows,fdoors"/>

<property name="SortOrder1" value="7060"/>

<property name="SortOrder2" value="0061"/> <!-- SortDoors -->

</block>

<block name="steelBars">

<property name="Extends" value="steelBarsCentered"/>

<property name="Model" value="iron_bars"/>

<property name="Place" value="TowardsPlacerInverted"/>

<property name="SortOrder2" value="0060"/> <!-- SortDoors -->

</block>

<block name="scrapIronBarsCentered">

<property name="CustomIcon" value="ironBars"/>

<property name="CustomIconTint" value="373D40" />

<property name="DisplayType" value="blockHardened" />

<property name="Material" value="Mmetal_hard"/>

<property name="MaxDamage" value="1000"/>

<property name="Shape" value="New"/>

<property name="LightOpacity" value="0"/>

<property name="Model" value="iron_bars_centered"/>

<property name="Texture" value="352"/><!-- scrap iron log spike 2.352 and 380 (woodlogspike) -->

<property name="UseGlobalUV" value="Local"/>

<property name="ImposterExcludeAndStop" value="true"/>

<property name="Place" value="TowardsPlacer"/>

<property name="Collide" value="movement,melee,rocket"/> <!-- -rocket -->

<property class="RepairItems"> <property name="resourceForgedIron" value="10"/> </property>

<drop event="Harvest" name="resourceScrapIron" count="32" tag="allHarvest"/>

<drop event="Destroy" count="0"/>

<drop event="Fall" name="scrapMetalPile" count="1" prob="0.75" stick_chance="1"/>

<property name="Group" value="Building"/>

<property name="EconomicValue" value="10"/>

<property name="DescriptionKey" value="ironBarsDesc"/>

<property name="FilterTags" value="fdecor,fother,fwindows,fdoors"/>

<property name="SortOrder1" value="7060"/>

<property name="SortOrder2" value="0061"/> <!-- SortDoors -->

<property class="UpgradeBlock">

<property name="ToBlock" value="ironBarsCentered"/>

<property name="Item" value="resourceForgedIron"/>

<property name="ItemCount" value="10"/>

<property name="UpgradeHitCount" value="4"/>

</property>

</block>

<block name="scrapIronBars">

<property name="Extends" value="scrapIronBarsCentered"/>

<property name="Model" value="iron_bars"/>

<property name="Place" value="TowardsPlacerInverted"/>

<property name="SortOrder2" value="0060"/> <!-- SortDoors -->

<property class="UpgradeBlock"> <property name="ToBlock" value="ironBars"/> </property>

</block>

</append>

<set xpath="/blocks/block[@name=woodBarsCentered]/property[@name=Texture]/@value">379</set>

<set xpath="/blocks/block[@name=woodBarsCentered]/property[@class=UpgradeBlock]/property[@name=ToBlock]/@value">scrapIronBarsCentered</set>

<set xpath="/blocks/block[@name=woodBarsCentered]/property[@class=UpgradeBlock]/property[@name=Item]/@value">resourceScrapIron</set>

<set xpath="/blocks/block[@name=woodBarsCentered]/property[@class=UpgradeBlock]/property[@name=ItemCount]/@value">40</set>

<set xpath="/blocks/block[@name=woodBars]/property[@class=UpgradeBlock]/property[@name=ToBlock]/@value">scrapIronBars</set>

<append xpath="/blocks/block[@name=ironBarsCentered]">

<property class="UpgradeBlock">

<property name="ToBlock" value="steelBarsCentered"/>

<property name="Item" value="resourceForgedSteel"/>

<property name="ItemCount" value="10"/>

<property name="UpgradeHitCount" value="4"/>

</property>

</append>

<append xpath="/blocks/block[@name=ironBars]">

<property class="UpgradeBlock"> <property name="ToBlock" value="steelBars"/> </property>

</append>

</configs>
No need to use any icons

 
Back
Top