[bug] rope + napalm (airstrike, drillstrike)

5 replies [Last post]
terror
User offline. Last seen 7 years 16 weeks ago. Offline
Joined: 2012-04-13
Posts: 93
This is really old bug. DEMO: http://hedgewars.org/node/6264 You can fly with rope on napalm. You are immortal. Airstrike and drillstrike too. No collision detection.
Wuzzy
Wuzzy's picture
User offline. Last seen 3 days 18 hours ago. Offline
Joined: 2012-06-20
Posts: 1301
Yes, this probably affects many other gears as well. You could also fire arbitrary projectiles and would not collide with them while in mid-air. For example, you could fire a mortar stright up and when it comes down, you just make a double high jump and don't collide with the mortar (you still might collide with the clusters if you're unlucky and fall on the groud too early).
Hi, I am a Hedgewars developer. Smile
nemo
nemo's picture
User offline. Last seen 14 hours 42 min ago. Offline
Joined: 2009-01-28
Posts: 1861
I made falling flames take out hogs on rope and everyone freaked out. I do have it flagged though, and lua can enable this behaviour. ClimbHome uses it to make fire cakes scarier.
-- Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev
Wuzzy
Wuzzy's picture
User offline. Last seen 3 days 18 hours ago. Offline
Joined: 2012-06-20
Posts: 1301
Yeah, falling flames on hogs can be very frustrating indeed. This is also partly from the fact that flames are not strict in terms of turn-based strategy; they can fall down in mid-turn without doing anything. But I already talked about this topic. But most other things like a bazooka shell could still collide. Especially the mortar trick seems very odd.
Hi, I am a Hedgewars developer. Smile
nemo
nemo's picture
User offline. Last seen 14 hours 42 min ago. Offline
Joined: 2009-01-28
Posts: 1861
Making things hit hogs in motion is kinda tricky 'cause moving hogs aren't "solid" and part of the landscape. The usual trick is to make an invisible explosion that searches for hogs nearby and keep doing it over and over. This doesn't quite lead to the same results depending on when the explosion check occurs. A repeated check on nearby hogs could be done in the falling code and a collision flag set if within a certain radius. This has a cost of course. Maybe not too significant of one nowdays.
-- Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev
Copyright © 2004-2023 Hedgewars Project. All rights reserved. [ contact ]