Jump to content

Revolver return bullet cases on reloading


Recommended Posts

hi there,

wish it could be possible to make a mod return empty cases on reloading.

i have tried Create_Item in Action0 and triggered_effect, the following code will return the same amount of food instead of cases.

<append xpath="/items/item[@name='gun44Magnum']">
	<effect_group tiered="false">
		<!-- every shoot increase the number of empty cases in cylinder -->
		<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="bulletCase44r" operation="add" value="1"/>
		<!-- return empty cases to inventory on reloading [dummy, use food amount instead] -->
		<triggered_effect trigger="onReloadStart" action="ModifyCVar" cvar="$foodAmountAdd" operation="add" value="@bulletCase44r"/>
		<!-- reset empty case number to zero -->
		<triggered_effect trigger="onReloadStop" action="ModifyCVar" cvar="bulletCase44r" operation="set" value="0"/>
		<!-- is there some action like AddItem or will it be?  -->
		<!-- <triggered_effect trigger="onReloadStart" action="AddItem" target="self" item="resourceBulletCasing" num="@bulletCase44r"/> -->

is there some action like 'AddItem' to make this possible? thanks




Link to comment
Share on other sites


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

  • Create New...