Survivalist: Invisible Strain

Survivalist: Invisible Strain

35 个评价
SIS Slingshots
   
奖励
收藏
已收藏
取消收藏
标签: IsMod
文件大小
发表于
更新日期
7.500 MB
2024 年 6 月 23 日 上午 1:30
2024 年 9 月 17 日 上午 11:29
4 项改动说明 ( 查看 )

订阅以下载
SIS Slingshots

描述
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!
10 条留言
Acarly Milton 8 月 23 日 下午 6:05 
Here's an idea. What about adding in throwing weapons, such as spears and throwing axes?
KnowChillx 8 月 12 日 上午 6:15 
what do I do if the recipes for ammo do not spawn?
Uncle Piggy 5 月 6 日 下午 7:46 
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 1 月 26 日 上午 1:50 
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 2024 年 9 月 17 日 上午 11:40 
I think this is steel ball trying to spawn on the body :)
Let me check the patch.
SweetCaptn  [作者] 2024 年 9 月 17 日 上午 11:23 
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 2024 年 9 月 17 日 上午 10:34 
(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 2024 年 9 月 17 日 上午 10:34 
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 2024 年 9 月 16 日 下午 2:17 
Just a quick feedback. Please name slingshots differently?
sir Evans 2024 年 9 月 16 日 下午 12:30 
A must have for any survival nut! :)