Buggi Posted May 31, 2018 Share Posted May 31, 2018 I have a huge project to paint and was hoping I could make a gun to paint with. Like choose a texture and fire away at the surfaces I want to paint. Instinct tells me it's a very hard-coded system. I'm hoping someone has experimented with this. Link to comment Share on other sites More sharing options...
Clockwork Orange Posted May 31, 2018 Share Posted May 31, 2018 Here you go, just point and shoot! Copy and replace this over your paintTool in items.xml If you want more durability so it does not break as fast you can adjust these numbers higher <property name="DegradationMax" value="500,500"/> Cheers! <item id="134" name="paintTool"> <property name="Meshfile" value="Items/Weapons/Ranged/Pistol/PistolPrefab"/> <property name="Material" value="wood"/> <property name="RepairTools" value="wood"/> <property name="HoldType" value="1"/> <property name="DegradationBreaksAfter" value="false"/> <property name="SoundJammed" value="ItemNeedsRepair"/> <property name="SoundDestroy" value="wooddestroy1"/> <property name="EconomicValue" value="20"/> <property name="SellableToTrader" value="false"/> <property name="CrosshairUpAfterShot" value="false"/> <property name="FuelValue" value="20"/> <property class="Action0"> <property name="Class" value="TextureBlock"/> <property name="Hitmask_override" value="Melee"/> <property name="Sound_start" value="erase"/> <property name="Infinite_ammo" value="true"/> <property name="Magazine_items" value="paint"/> <property name="Range" value="30"/> <property name="Delay" value="0.3"/> <property name="RemoveTexture" value="true"/> <property name="DefaultTextureID" value="156"/> </property> <property class="Action1"> <property name="Class" value="TextureBlock"/> <property name="Hitmask_override" value="Melee"/> <property name="Sound_start" value="paint"/> <property name="Magazine_items" value="paint"/> <property name="Magazine_size" value="1"/> <property name="Range" value="30"/> <property name="Delay" value="0.3"/> <property name="Particles_muzzle_fire" value="paint_splash2"/> </property> <property class="Attributes"> <property name="DegradationMax" value="500,500"/> <property name="DegradationRate" value="5,1"/> </property> <property name="Group" value="Tools/Traps"/> <property name="CraftingSkillGroup" value="craftSkillTools"/> <property name="RepairExpMultiplier" value="2"/> <property name="PickupJournalEntry" value="paintingTip"/> </item> Also another thing I have done in my mod is change all textures to only require 1 paint and you can do that as well if you want in the painting.xml and just look for PaintCost and set them all to 1 <property name="PaintCost" value="1" /> just a suggestion. Link to comment Share on other sites More sharing options...
Buggi Posted May 31, 2018 Author Share Posted May 31, 2018 Thanks! Yeah, I already set the paint costs... Now I wish there was a way to 'paint entire block' while in survival. Link to comment Share on other sites More sharing options...
Clockwork Orange Posted May 31, 2018 Share Posted May 31, 2018 Thanks! Yeah, I already set the paint costs... Now I wish there was a way to 'paint entire block' while in survival. No Problem and yeah there is no way to paint the entire block but this gun basically has double the range and has less of a delay so it can be used faster. Link to comment Share on other sites More sharing options...
Guppycur Posted May 31, 2018 Share Posted May 31, 2018 Dm, hold r, choose paint all sides. ...or something close to that. - - - Updated - - - Oh, while in survival. Nm. Link to comment Share on other sites More sharing options...
Clockwork Orange Posted May 31, 2018 Share Posted May 31, 2018 Also I figured you might want it to be a seperate tool so you can use this icon and rename it and use a new ID for it and restore the original paint brush if you want, just have to make a new recipe for it and if you want you can add it to the trader and loot. <item id="1684" name="paintGun"> <property name="Meshfile" value="Items/Weapons/Ranged/Pistol/PistolPrefab"/> <property name="Material" value="wood"/> <property name="RepairTools" value="wood"/> <property name="HoldType" value="1"/> <property name="DegradationBreaksAfter" value="false"/> <property name="SoundJammed" value="ItemNeedsRepair"/> <property name="SoundDestroy" value="wooddestroy1"/> <property name="EconomicValue" value="20"/> <property name="SellableToTrader" value="false"/> <property name="CrosshairUpAfterShot" value="false"/> <property name="FuelValue" value="20"/> <property class="Action0"> <property name="Class" value="TextureBlock"/> <property name="Hitmask_override" value="Melee"/> <property name="Sound_start" value="erase"/> <property name="Infinite_ammo" value="true"/> <property name="Magazine_items" value="paint"/> <property name="Range" value="30"/> <property name="Delay" value="0.3"/> <property name="RemoveTexture" value="true"/> <property name="DefaultTextureID" value="156"/> </property> <property class="Action1"> <property name="Class" value="TextureBlock"/> <property name="Hitmask_override" value="Melee"/> <property name="Sound_start" value="paint"/> <property name="Magazine_items" value="paint"/> <property name="Magazine_size" value="1"/> <property name="Range" value="30"/> <property name="Delay" value="0.3"/> <property name="Particles_muzzle_fire" value="paint_splash2"/> </property> <property class="Attributes"> <property name="DegradationMax" value="500,500"/> <property name="DegradationRate" value="5,1"/> </property> <property name="Group" value="Tools/Traps"/> <property name="CraftingSkillGroup" value="craftSkillTools"/> <property name="RepairExpMultiplier" value="2"/> <property name="PickupJournalEntry" value="paintingTip"/> </item> Link to comment Share on other sites More sharing options...
Buggi Posted May 31, 2018 Author Share Posted May 31, 2018 What's the link between the new 'paintGun' and the painting UI? Link to comment Share on other sites More sharing options...
Clockwork Orange Posted May 31, 2018 Share Posted May 31, 2018 What's the link between the new 'paintGun' and the painting UI? Not too sure what you mean but I think what you wanting is this <property name="Class" value="TextureBlock"/> that is the action class that is tied to the paint UI tools Link to comment Share on other sites More sharing options...
ExeBT Posted May 31, 2018 Share Posted May 31, 2018 I use my tool like this, i removed the sound, particles and the delay to paint, but i am using the edit mod, idk how its works on survival <item id="134" name="paintTool"> <property name="Meshfile" value="Items/Tools/PaintbrushPrefab"/> <property name="Material" value="wood"/> <property name="RepairTools" value="wood"/> <property name="HoldType" value="51"/> <property name="DegradationBreaksAfter" value="false"/> <property name="SoundJammed" value="ItemNeedsRepair"/> <property name="SoundDestroy" value="wooddestroy1"/> <property name="EconomicValue" value="0"/> <property name="CrosshairUpAfterShot" value="false"/> <property name="FuelValue" value="0"/> <property class="Action0"> <property name="Class" value="TextureBlock"/> <property name="Hitmask_override" value="Melee"/> <property name="Sound_start" value="False"/> <property name="Infinite_ammo" value="true"/> <property name="Magazine_items" value="paint"/> <property name="Range" value="15"/> <property name="Delay" value="0"/> <property name="RemoveTexture" value="true"/> <property name="DefaultTextureID" value="156"/> </property> <property class="Action1"> <property name="Class" value="TextureBlock"/> <property name="Hitmask_override" value="Melee"/> <property name="Sound_start" value="False"/> <property name="Magazine_items" value="paint"/> <property name="Magazine_size" value="1"/> <property name="Range" value="15"/> <property name="Delay" value="0"/> <property name="Particles_muzzle_fire" value="False"/> </property> <property class="Attributes"> <property name="DegradationMax" value="500,500"/> <property name="DegradationRate" value="0,0"/> </property> <property name="Group" value="Tools/Traps"/> <property name="ActionSkillGroup" value="Construction Tools"/> <property name="CraftingSkillGroup" value="craftSkillTools"/> <property name="RepairExpMultiplier" value="0"/> <property name="PickupJournalEntry" value="paintingTip"/> </item> Link to comment Share on other sites More sharing options...
ExeBT Posted May 31, 2018 Share Posted May 31, 2018 But if you want to paint in one color you can use the edit tools, you can download from here https://7daystodie.com/forums/showthread.php?47459-Unlocking-In-Game-Prefab-Editor-(Terrain-Tools)-dll-mod 1- Save your prefab 2- Select the prefab glue (You need to active DM to show the glue), Then press "K" and you need to find your texture id in the texture menu http://prntscr.com/jp3kc5 press "R" when the painting tool equipped, http://prntscr.com/jp3ius 3- if you dont know the id of the block just stay 0 and replace for the one that you know http://prntscr.com/jp3k1l Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.