DΞLTΛ Posted May 15, 2022 Hey guys, I'm trying to make a grappling hook using the loreshot, but it causes damage as well as pull you across a certain distance. And when I dial the damage to 0, it won't pull me at all... How do I make it so that it pulls me toward it without causing damage? 0 Quote Share this post Link to post
jaeden Posted May 15, 2022 LoreShot's pulling code is in its DoSpecialDamage function, which does not activate if the damage is 0. If you are using ZScript, you can try this: Make projectile derived from LoreShot (I guess you are already doing this), set its damage to some number greater than zero (but not more than million ofc), and put this override in the class definition: override int DoSpecialDamage (Actor victim, int damage, Name damagetype) { super.DoSpecialDamage(victim, damage, damagetype); return 0; } It should pull the target (as damage of the projectile is set to non-zero), but it will not actually do any damage, because the override returns zero at the end. 1 Quote Share this post Link to post
DΞLTΛ Posted May 16, 2022 Hmmm, but what if it's in decorate? :| 0 Quote Share this post Link to post
ramon.dexter Posted May 16, 2022 Then you're stuck. Completely impossible in decorate, since you cannot modify the function. 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.