Survivalist: Invisible Strain

Survivalist: Invisible Strain

29 ratings
SIS Slingshots
   
Award
Favorite
Favorited
Unfavorite
Tags: IsMod
File Size
Posted
Updated
7.500 MB
23 Jun, 2024 @ 1:30am
17 Sep, 2024 @ 11:29am
4 Change Notes ( view )

Subscribe to download
SIS Slingshots

Description
What is this?
This mod adds three types of slingshots and pebbles to the game. They can knock out enemies but will not always succeed. Pebbles can be found around the world, while some slingshots can be found in buildings and others handcrafted. Silent weapons but not very strong.

You can configure the chances for it to knockout an enemy, the chances for a pebble to be recoverable and how long characters will be unsconscious for. It can't knockout zombies or enemies with helmets.

Recipes
  • Make Makeshift Slingshot. 1 wood, Construction lvl 0, Workbench
  • Make Wood Slingshot. 2 wood, Construction lvl 2, Workbench
  • Make Pebbles (x8). 1 stone, Construction lvl 0, Workbench
  • Make Steel Balls (x15). 1 steel, 1 charcoal, 1 wood, Construction lvl 2, Forge

Settings
  • KnockoutSedativeEffect. How long characters will be unsconscious for. (default 5)
  • ChanceRecoverable. The chance for the pebble to be recoverable after shot. Between 0-1. (default 0.85)
  • ChanceKnockout. The chance to knockout an enemy. Between 0-1. (default 0.2)

Compatibility
Shouldn't have any incompatibilities. Report any problems in the comments section!

Credits
Erikem, Luo2430, and Bob!
8 Comments
Uncle Piggy 6 May @ 7:46pm 
Great mod dude ,thank you .But there is something keeps bothering me ,NPCs wont collect pebbles on the ground even after I set them to collect .
WaOa 26 Jan @ 1:50am 
MissingMethodException: Method not found: void .AISound..ctor(AISoundType,UnityEngine.Vector3,single,single,TileObject,Character,TileObject,TileObject)
at AmmoWeapon_OnFired__Patch.Prefix (System.Boolean& __result, AmmoWeapon __instance, Character character, Target target, TargettableBodyLocation targetBodyLocation, UnityEngine.Vector3 targetPos, System.Single throwAngle, System.Single throwSpeed, System.Boolean assassinate, SecrecyMode secret, System.Boolean fromAI) [0x00072] in <88640f3f63ad4679baed495fd76c5307>:0
at (wrapper dynamic-method) AmmoWeapon.AmmoWeapon.OnFired_Patch1(AmmoWeapon,Character,Target,TargettableBodyLocation,UnityEngine.Vector3,single,single,bool,SecrecyMode,bool)
at Character.OnAnimationEvent (AnimEvent animEvent) [0x001ae] in C:\Survivalist2\Assets\Scripts\Character\Character.cs:18388
sir Evans 17 Sep, 2024 @ 11:40am 
I think this is steel ball trying to spawn on the body :)
Let me check the patch.
SweetCaptn  [author] 17 Sep, 2024 @ 11:23am 
Thank you ! I think I know what was causing the error, and I just uploaded a patch. Not sure if it's fixed, but if you try it again let me know
sir Evans 17 Sep, 2024 @ 10:34am 
(at <13fbce0c3b0f4223b0c343d195a85136>:0)
AmmoWeapon_OnFired__Patch.OnFiredFunc (AmmoWeapon __instance, Character character, Target target, TargettableBodyLocation targetBodyLocation, UnityEngine.Vector3 targetPos, System.Single throwAngle, System.Single throwSpeed, System.Boolean assassinate, SecrecyMode secret, System.Boolean fromAI) (at <13fbce0c3b0f4223b0c343d195a85136>:0)
AmmoWeapon_OnFired__Patch.Prefix (System.Boolean& __result, AmmoWeapon __instance, Character character, Target target, TargettableBodyLocation targetBodyLocation, UnityEngine.Vector3 targetPos, System.Single throwAngle, System.Single throwSpeed, System.Boolean assassinate, SecrecyMode secret, System.Boolean fromAI) (at <13fbce0c3b0f4223b0c343d195a85136>:0)
(wrapper dynamic-method) AmmoWeapon.AmmoWeapon.OnFired_Patch1(AmmoWeapon,Character,Target,TargettableBodyLocation,UnityEngine.Vector3,single,single,bool,SecrecyMode,bool)
Character.OnAnimationEvent (AnimEvent animEvent)
sir Evans 17 Sep, 2024 @ 10:34am 
Crash when shooting bunny in the winter, from Modern Slingshot with steel ball:

Exception (v215): NullReferenceException: Object reference not set to an instance of an object TileObject.CreateProp (PropPrototype proto) (at C:/Survivalist2/Assets/Scripts/Terrain/TileObject.cs:35)
TileObject.SpawnProp (PropPrototype proto, TerrainCoord tile, Prop+OrientationType orientation)
(at C:/Survivalist2/Assets/Scripts/Terrain/TileObject.cs:42)
SlingshotAmmoProp.Spawn (UnityEngine.Vector3 pos, UnityEngine.Quaternion rotation, EquipmentPrototype arrowType)
sir Evans 16 Sep, 2024 @ 2:17pm 
Just a quick feedback. Please name slingshots differently?
sir Evans 16 Sep, 2024 @ 12:30pm 
A must have for any survival nut! :)