2025-06-14 04:51 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002654Spring engineLuapublic2011-09-19 17:33
ReporterFLOZi 
Assigned ToKloot 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusresolvedResolutionfixed 
Product Version0.82.7+git 
Target VersionFixed in Version0.82.7+git 
Summary0002654: (feature request) Additional Parameters to FeatureDestroyed Callin
DescriptionIt'd be great if FeatureDestroyed had some additional parameters;

bool crushed - was the feature crushed
float x, z - direction from which the crushing took place, like the arguments supplied to unitscript HitByWeapon
Additional InformationSuch an addition would let us make crushing interactions much more realistic, knorke did this; http://h8.abload.de/img/forestfallenovertskx.gif but as you can see the falling direction is actually random.

Default trees already do this (though it seems they fall in the wrong direction if the unit is travelling in reverse!)
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0007384

Kloot (developer)

Last edited: 2011-09-19 17:33

https://github.com/spring/spring/commit/4fceba7a7e8af47a85cb111a239a23c7d48426ca plus GetFeaturePosition(collideeID) and GetUnitPosition(colliderID) (or GetUnitVectors(colliderID)) should be all you need ;)

+Notes

-Issue History
Date Modified Username Field Change
2011-09-16 20:34 FLOZi New Issue
2011-09-19 17:32 Kloot Note Added: 0007384
2011-09-19 17:32 Kloot Status new => resolved
2011-09-19 17:32 Kloot Fixed in Version => 0.82.7+git
2011-09-19 17:32 Kloot Resolution open => fixed
2011-09-19 17:32 Kloot Assigned To => Kloot
2011-09-19 17:33 Kloot Status resolved => feedback
2011-09-19 17:33 Kloot Resolution fixed => reopened
2011-09-19 17:33 Kloot Note Edited: 0007384
2011-09-19 17:33 Kloot Status feedback => resolved
2011-09-19 17:33 Kloot Resolution reopened => fixed
+Issue History