forked from Mirrors/openclonk
add cause_plr to OnShockWaveHit callback
This can be used to damage and kill tracing for objects which die, receive damage or are destroyed on shockwaves.stable-6.1
parent
b17d0bccb6
commit
097ddd9ae1
|
@ -302,7 +302,7 @@ global func BlastObjects(int x, int y, int level, object container, int cause_pl
|
||||||
if (obj) // Test obj, cause OnShockwaveHit could have removed objects.
|
if (obj) // Test obj, cause OnShockwaveHit could have removed objects.
|
||||||
{
|
{
|
||||||
// Object has special reaction on shockwave?
|
// Object has special reaction on shockwave?
|
||||||
if (obj->~OnShockwaveHit(level, x, y))
|
if (obj->~OnShockwaveHit(level, x, y, cause_plr))
|
||||||
continue;
|
continue;
|
||||||
// Living beings are hurt more.
|
// Living beings are hurt more.
|
||||||
var cat = obj->GetCategory();
|
var cat = obj->GetCategory();
|
||||||
|
|
Loading…
Reference in New Issue