Rain World

Rain World

Not enough ratings
Magic Spear
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
807.322 KB
5 Mar @ 6:38pm
9 Mar @ 1:51am
7 Change Notes ( view )

Subscribe to download
Magic Spear

Description
This mod allows you to transform your spear into a magical one that can automatically track and launch at enemies.

When you press the designated key in the settings (default is N), the spear in your hand transforms into a magical spear. These spears will target and attack the nearest creature within range, except for those that have a high affinity towards you. You need to face the direction in which you wish to launch the magical spear to allow its release. However, if you suddenly change direction, the spear might fly in the opposite direction. I am trying to optimize this aspect.

This mod is also effective in multiplayer online mode.

You can also press the designated key (default is U) to revert your magical spear back to a normal spear.

When the color option in the configuration is enabled, a magical spear that detects danger will turn yellow, and it will turn red when attacking a creature.

The key bindings can all be changed in the mod configuration.

I am learning how to develop a well-rounded mod, and I greatly appreciate all the comments and suggestions, they have been helpful to me.

Changelog: March 9th
Fixed the bug where the magical spear would jitter oddly in water.
Magical spears no longer target litter bugs.
Spinning magical spears cannot be picked up; however, scavengers will still attempt to retrieve them.

这个mod允许你将你的矛变成可以自动追踪敌人和发射的魔法矛。

当你按下设置中的按键时(默认为N),你手中的矛变成魔法矛;它们会攻击范围内离你最近的任一生物,除非该生物对你有高好感。你需朝向魔法矛的发射方向来允许矛的发射,但在你突然改变方向时它们可能会飞向反向,我正在尝试优化这一部分。

该mod在多人联机中同样起效。

你也可以按下按键(默认为U)将你的魔法矛变回普通矛。

当配置中的颜色选项被启用时,检测到危险的魔法矛会变成黄色,攻击生物时会变成红色。

按键配置均可在模组配置中更改。

感谢所有的评论和建议,我正在学习如何写作一个完善的mod。

更新日志:3月9日
修改了魔法矛在水中奇怪抖动的bug
魔法矛不再瞄准垃圾虫
旋转的魔法矛不可以被拾取,尽管如此,拾荒者依然会试图拾取它们
15 Comments
IdrisPukke 22 May @ 10:05pm 
fun mod but unfortunately it makes pipes become death traps quite often
萧水东耳 30 Apr @ 6:45am 
魔法矛的准头有点差
绿叶_Natural_leaf 23 Apr @ 5:05pm 
刚好我有研究过一些类似功能的实现(我目前也在尝试开发一个自己的mod!)
关于改变朝向的问题,可以修改以下这个来简单解决:
It just so happens that I've looked into some implementations of similar features (I'm currently trying to develop my own mod as well!). Regarding the problem of changing the orientation, you can modify the following to solve it simply:

(spear).changeDirCounter = 0;

或许你可以尝试修改spear的状态(例如: spear.mode = Weapon.Mode.Carried)这样应该会阻止拾荒者进行拾取判定。
Perhaps you can try changing the state of the spear (e.g. spear.mode = Weapon.Mode.Carried) which should prevent the scavenger from picking up the detection.
Crowlov 14 Mar @ 6:46am 
Banger song
ChillinLikeAVillain 11 Mar @ 3:53am 
SS13?!?!!?!!?!?!?1111111
Master Malcolm 11 Mar @ 1:41am 
Apparently having this mod on while an Echo is triggered causes pipes closer to the Echo to become death traps.
N.O.L. (&) 9 Mar @ 10:34am 
mmm buggy in rain meadow
but cool :steamthumbsup:
N.O.L. (&) 9 Mar @ 4:16am 
Something unusual!
Would be nice if we can mouse aim.
Corp 9 Mar @ 3:15am 
it really is as you say, this is a magic spear that will never miss
Lolight2 8 Mar @ 11:04am 
I made a video on this mod!
https://youtu.be/nYw4Mb1w7qU
I found it really fun to play with, it is definitely on the strong side, but I don't feel that matters much!
Would be cool to see this become a modded slugcat at some point, it could maybe be called "The Magician" even! :P
Anyway, feel free to include the video in the workshop page if you feel like it! :rwslugcat: