No-explode that does not hit twice

No-explode that does not hit twice

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

No-explode that does not hit twice

Post by Google_Frog »

I would like to make some noexplode weapons only collide once with each distinct unit on their path. I'm sure I could write this gadget but I recall someone saying that they already had an implementation. So to avoid duplicate work does anyone know if this gadget exists?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: No-explode that does not hit twice

Post by Forboding Angel »

no explode and bounce 1 iirc should do what you want.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: No-explode that does not hit twice

Post by Google_Frog »

Didn't do what I want. bounce isn't even a tag according to the wiki.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: No-explode that does not hit twice

Post by FLOZi »

I believe he means numBounce:

https://github.com/spring/spring/blob/d ... r.cpp#L106

Wiki is out of date for weapon tags, hopefully I will rectify this over summer.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: No-explode that does not hit twice

Post by Forboding Angel »

Used to be bounce O_o

It was a tag added at the bequest of EE due to fang's ion cannon tanks.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: No-explode that does not hit twice

Post by knorke »

Forboding Angel wrote:Used to be bounce O_o
actuely already was dolan when added but it is unrelated anyway.
I am not sure if this even possible with just tags.
Post Reply

Return to “Lua Scripts”