Iceburg71
New member
I am working on learning about infections and how to make them work. I wrote a simple modlet creating a food that (i hoped) would automatically infect you. Just a test to learn with. But it doesn't work. When I go into the command console, and I try to give myself "buff buffinfectioncatch" it tells me I am immune??? Is this because I am too low a level in my test world? I didn't think there was any protection like that. Anyway, code is below and any help appreciated. I though food would be easy to test with.. LOL...
<append xpath="/items">
<item name="foodCanBeef2">
<property name="Tags" value="food"/>
<property name="HoldType" value="31"/>
<property name="DisplayType" value="foodRaw"/>
<property name="Meshfile" value="#Other/Items?Misc/parcelPrefab.prefab"/>
<property name="DropMeshfile" value="#Other/Items?Misc/sack_droppedPrefab.prefab"/>
<property name="Material" value="Mmetal"/>
<property name="Weight" value="5"/>
<property name="EconomicValue" value="60"/>
<property name="Stacknumber" value="10"/> <!-- STK food -->
<property class="Action0">
<property name="Class" value="Eat"/>
<property name="Delay" value="1.0"/>
<property name="Use_time" value="..."/>
<property name="Sound_start" value="player_eating"/>
<property name="Create_item" value="drinkCanEmpty"/>
</property>
<property name="Group" value="Food/Cooking,CFFood/Cooking"/>
<effect_group tiered="false" name="Food Tier 0">
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$foodAmountAdd" operation="add" value="15"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="foodHealthAmount" operation="add" value="7"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffProcessConsumables"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffInfectionCatch"/>
</effect_group>
</item>
</append>
<item name="foodCanBeef2">
<property name="Tags" value="food"/>
<property name="HoldType" value="31"/>
<property name="DisplayType" value="foodRaw"/>
<property name="Meshfile" value="#Other/Items?Misc/parcelPrefab.prefab"/>
<property name="DropMeshfile" value="#Other/Items?Misc/sack_droppedPrefab.prefab"/>
<property name="Material" value="Mmetal"/>
<property name="Weight" value="5"/>
<property name="EconomicValue" value="60"/>
<property name="Stacknumber" value="10"/> <!-- STK food -->
<property class="Action0">
<property name="Class" value="Eat"/>
<property name="Delay" value="1.0"/>
<property name="Use_time" value="..."/>
<property name="Sound_start" value="player_eating"/>
<property name="Create_item" value="drinkCanEmpty"/>
</property>
<property name="Group" value="Food/Cooking,CFFood/Cooking"/>
<effect_group tiered="false" name="Food Tier 0">
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$foodAmountAdd" operation="add" value="15"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="foodHealthAmount" operation="add" value="7"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffProcessConsumables"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffInfectionCatch"/>
</effect_group>
</item>
</append>