Baesics Posted December 2, 2018 Share Posted December 2, 2018 Hello All, messing around with scripts (as always) and i think i figured out a way to make Wolves your friend and kill Zombies i will copy and paste the whole code (from the entityclasses.xml) ... <entity_class name="animalWolf" extends="animalTemplateTimid"> <property name="Tags" value="animal"/> <!--property name="Prefab" value="Wolf"--> <property name="AvatarController" value="AvatarAnimalController"/> <property name="ModelType" value="Standard"/> <property name="HasRagdoll" value="true"/> <property name="PhysicsBody" value="wolf"/> <property name="Mass" value="95"/> <property name="Prefab" value="/Entities/Animals/Wolf/animalStandardWolfRagdoll"/> <property name="Mesh" value=""/> <property name="HasDeathAnim" value="true"/> <property name="RootMotion" value="true"/> <property name="RagdollOnDeathChance" value=".5"/> <property class="MechanimAttackTriggers"> <property name="state0" value="AttackTrigger"/> </property> <property class="MechanimAttackStates"> <property name="state0" value="Attack"/> <property name="state1" value="AttackStandingStill"/> </property> <property class="MechanimPainTriggers"> <property name="state0" value="PainTrigger"/> </property> <property class="MechanimPainStates"> <property name="state0" value="Pain"/> </property> <property class="MechanimDeathTriggers"> <property name="state0" value="DeathTrigger"/> </property> <property class="MechanimDeathStates"> <property name="state0" value="Death"/> </property> <property name="AITask-1" value="Swim"/> <property name="AITask-2" value="BreakBlock"/> <property name="AITask-3" value="Territorial"/> <property name="AITask-4" value="ApproachAndAttackTarget" param1="EntityZombie,99"/> <property name="AITask-5" value="ApproachSpot"/> <property name="AITask-6" value="Look"/> <property name="AITask-7" value="Wander"/> <property name="AITask-8" value=""/> <property name="AITarget-1" value="SetAsTargetIfHurt"/> <property name="AITarget-2" value="BlockingTargetTask"/> <property name="AITarget-3" value="SetNearestEntityAsTarget" param1="EntityZombie,9"/> <property name="AITarget-4" value=""/> <property name="SoundRandom" value="Animals/Wolf/wolfroam"/> <property name="SoundAlert" value="Animals/Wolf/wolfalert"/> <property name="SoundHurt" value="Animals/Wolf/wolfpain"/> <property name="SoundDeath" value="Animals/Wolf/wolfdeath"/> <property name="SoundAttack" value="Animals/Wolf/wolfattack"/> <property name="SoundSense" value="Animals/Wolf/wolfsense"/> <property name="SoundGiveUp" value="Animals/Wolf/wolfgiveup"/> <!-- Stealth --> <property name="SmellAlertThreshold" value="99"/> <!-- Gameplay --> <property name="HandItem" value="meleeHandAnimalWolf"/> <effect_group name="Base Effects"> <passive_effect name="HealthMax" operation="base_set" value="222"/> <passive_effect name="HealthMax" operation="perc_add" value="0"/> <!-- Animal HP scale --> </effect_group> <drop event="Harvest" name="foodRawMeat" count="0" tool_category="Butcher"/> <drop event="Harvest" name="foodRawMeat" tag="butcherHarvest" count="25"/> <!-- animalWolf --> <drop event="Harvest" name="resourceLeather" tag="butcherHarvest" count="10"/> <drop event="Harvest" name="resourceAnimalFat" tag="butcherHarvest" count="5"/> <drop event="Harvest" name="resourceFemur" tag="butcherHarvest" count="3"/> <drop event="Harvest" name="resourceFemur" tag="allToolsHarvest" count="1"/> </entity_class> you can compare it to the original to see what i changed So what this does is it makes the Wolf wander around like it usually does but when a zombie comes into proximity, it kills it i am sure you guys can tweak it and make it way better than what i have... would be nice for it to follow you around and growl when a zombie is near or something... its not perfect but its something lol Happy Modding homies!! Link to comment Share on other sites More sharing options...
Baobab Posted December 2, 2018 Share Posted December 2, 2018 looks like something cool. Make it an modlet, then ya go i think. Link to comment Share on other sites More sharing options...
Swiftpaw Posted December 8, 2018 Share Posted December 8, 2018 That's what my mod does! Check it out: https://7daystodie.com/forums/showthread.php?87514-MOD-Friendly-Animals-Friendly-animals-united-against-the-zombie-hordes! Link to comment Share on other sites More sharing options...
Baesics Posted December 11, 2018 Author Share Posted December 11, 2018 ^^^ His is wayyyy better than my wolf! lol... might want to check Swiftpaw's wolf mod out for sure! Link to comment Share on other sites More sharing options...
stallionsden Posted December 11, 2018 Share Posted December 11, 2018 can have a look at mine to if you like. it has a random chance a friendly animal will spawn and will help. tho it is upto you to work out if they are a friend or foe - https://7daystodie.com/forums/showthread.php?98780-modlet-stallionsdens-friendly-animal-helpers&highlight=animals Link to comment Share on other sites More sharing options...
Baesics Posted December 11, 2018 Author Share Posted December 11, 2018 do both of these work in the latest update in a17? they are both great! Link to comment Share on other sites More sharing options...
stallionsden Posted December 11, 2018 Share Posted December 11, 2018 do both of these work in the latest update in a17? they are both great! mine does. I am fairly certain swiftpaws does as well :-) B208 yeh swiftpaws is prolly more realistic in such the animals that would help you lol. Mine is all animals inc chickens lol have a chance to spawn friendly and will help kill zs. I have Bugs Bunny, Foghorn Leghorn Wiley Coyote etc lol exactly and i didnt post mine here to say swiftpaws isnt good as it is great :-) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.