Not logged inOpenClonk Forum
Up Topic Development / Developer's Corner / Kill tracing issue
- - By Maikel Date 2015-05-17 12:43
Currently (even after my latest commits), if I throw a firestone into a lorry which then blows up, that explosion has a controller equal to the controller of the lorry (see these lines of code). This is due to the fact that the controller of non-alive objects is changed when they enter a new container.

Now if that lorry is exploded and emits several sticks of dynamite, these are traced back to the controller of the lorry and not to the controller of the firestone who has set of this explosion, leading to incorrect kill tracing.

My preferred solution would be to only change the controller of an object which enters a container object if the object that enters is non-alive and the container is alive (or has an existing controller).

But I am not sure of the consequences of this changes, so someone with more insight into killtracing please reply!
Parent - By Anonymous [de] Date 2015-05-18 09:58
The controller adjustment is also for stuff like cannons and catapults. Make sure these set their ammo controller when they shoot.
Reply
Up Topic Development / Developer's Corner / Kill tracing issue

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill