Jump to content

Ambient sound when near a block


SickWolf

Recommended Posts

I want a block to make a hammer/cracking noise when near it, like the humming of the battery bank, but I cannot make it to work.

I tried a lot of different values for different key. Here is my last try:

 

blocks.xml

<block name="oilExtractor">
	<property name="CustomIcon" value="controlPanelBase01" />
	<property name="Class" value="UpgradeRated" />
	<property name="Material" value="Mmetal"/>
	<property name="Shape" value="Ext3dModel"/> 
	<property name="Texture" value="293"/>
	<property name="Mesh" value="models"/>
	<property name="Path" value="solid"/>
	<property name="Model" value="Industrial/control_panel_base_01" param1="main_mesh"/>

	<property name="DisplayType" value="blockMulti" />
	<property name="MultiBlockDim" value="1,2,1"/>
	<property name="Place" value="TowardsPlacerInverted"/>
	<property name="ImposterExchange" value="imposterBlock" param1="2"/>
	<property name="Weight" value="210" />
	<property name="Collide" value="movement,rockets,sight,melee" />

	<property name="Stacknumber" value="1"/>
	<property name="HeatMapStrength" value="1.5"/>
	<property name="HeatMapTime" value="1200"/>
	<property name="HeatMapFrequency" value="100"/>

	<property name="ImpactSound" value="oilExtractor_idle"/>
	<property name="StartSound" value="oilExtractor_idle"/>
	<property name="StopSound" value="oilExtractor_idle"/>
	<property name="RunningSound" value="oilExtractor_idle"/>
	<property name="RunningSoundBreaking" value="oilExtractor_idle"/>
	<property name="RunningSoundBroken" value="oilExtractor_idle"/>
	<property name="TakeDelay" value="1"/>

	<property name="UpgradeRated.ToBlock" value="OilShaleHere" />
	<property name="UpgradeRated.Rate" value="1" />			
		<!-- Can I have a customupgradesound? 
		<property name="CustomUpgradeSound" value="place_block_wood"/>
		-->
 </block>

 

sounds.xml

<Config>
   <append xpath="/Sounds">
       <SoundDataNode name="oilExtractor_idle"> <AudioSource name="Sounds/AudioSource_Interact"/>
           <AudioClip ClipName="Sounds/Electricity/BladeTrap/bladetrap_fire_lp" Loop="true"/>
           <!-- <LowestPitch name="0.9"/>
           <HighestPitch name="1.0"/> -->
           <LocalCrouchVolumeScale value="1.0"/> <CrouchNoiseScale value="0.5"/> <NoiseScale value="1"/> <MaxVoices value="18"/> <MaxRepeatRate value="0.001"/> </SoundDataNode>



   </append>
</Config>

 

I'll try and find the appropriate sound once I hear it working. I load my test game, place the block and nothing. I destroy it, close the game and try again. Spent the last 2 hours trying to figure this out.

 

If someone can help me solve this I would appreciate it very much!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...