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

moditem

You mean you want a Gmod with a Imod that raises the uses per time ?

(for Melee tools and weapons ?)

 
Last edited by a moderator:
right for example for a clawhammer <set xpath="/items/item[@name=meleeToolClawHammer]/property[@class=Action1]/property[@name=Delay' and @value='.64]/@value">0.50</set>

in a moditem

 
Delay only affects repair speed now. Attack speed is controlled by attacksperminute. This should create an item mod that increases attack speed.

Code:
<item_modifier name="modMeleeQuickBrace" installable_tags="melee" modifier_tags="shaft" type="attachment" rarity="0.5">
	<property name="Stacknumber" value="1"/>
	<property name="Weight" value="5"/>	
	<property name="Material" value="Mmetal"/>
	<!-- Increases speed, all melee -->
	<effect_group tiered="false">
		<passive_effect name="AttacksPerMinute" operation="perc_add" value=".3"/>
	</effect_group>		
	<property name="PickupJournalEntry" value="augmentGunsTip"/>
</item_modifier>
This would force repair speed to .5.

Code:
<item_modifier name="modMeleeQuickBrace" installable_tags="melee" modifier_tags="shaft" type="attachment" rarity="0.5">
	<property name="Stacknumber" value="1"/>
	<property name="Weight" value="5"/>	
	<property name="Material" value="Mmetal"/>
	<!-- Increases repair speed, all melee -->
	<item_property_overrides name="*">
		<property name="Delay" value="0.5"/>
	</item_property_overrides>
	<property name="PickupJournalEntry" value="augmentGunsTip"/>
</item_modifier>
At least, in theory they should. Never really messed with item mods myself. I prefer to just make new items with the stats I want.

 
Back
Top