albertz / openlierox

OpenLieroX - Liero clone / Worms realtime / 2D shooter
http://openlierox.net
Other
263 stars 60 forks source link

gamescript: worm hit event only for one worm #228

Open albertz opened 13 years ago

albertz commented 13 years ago

Converted from SourceForge issue 2778150, submitted by albertzeyer

Current worm hit event uses the information from the projectile simulation. This only saves one single worm. In case of GoThrough, it doesn't save a worm at all.

Esp. for bigger projectiles, it is important to do the check for multiple worms. We cannot change the old simulation because it would break the compatibility. Probably it's anyway enough to do one single check at the end of the simulation (in the event checking routine).

Either the WormHit event structure needs to be extended (an attribute like "CheckMultipleWorms") or a new event strucute is needed. Also the Proj_Action::applyTo needs to be extended for this.

albertz commented 13 years ago

Submitted by albertzeyer

Note: This is also needed for magnetic and gravity (or other attributes with equal possibilities).