killtracing: set controller of keg when incinerated

shapetextures
Maikel de Vries 2016-01-03 12:30:47 +01:00
parent 6530cba8eb
commit 64af909a49
1 changed files with 7 additions and 6 deletions

View File

@ -92,9 +92,10 @@ public func UpdatePicture()
SetObjDrawTransform(s, 0, xoffs, 0, s, yoffs, 12); SetObjDrawTransform(s, 0, xoffs, 0, s, yoffs, 12);
} }
public func Incineration() public func Incineration(int caused_by)
{ {
AddEffect("Fuse",this,1,1,this); SetController(caused_by);
AddEffect("Fuse", this, 1, 1, this);
} }
public func FxFuseTimer(object target, effect, int timer) public func FxFuseTimer(object target, effect, int timer)
@ -113,14 +114,14 @@ public func IsProjectileTarget()
return true; return true;
} }
public func Damage() public func Damage(int change, int cause, int by_player)
{ {
Incinerate(); Incinerate(100, by_player);
} }
public func OnProjectileHit() public func OnProjectileHit(object projectile)
{ {
Incinerate(); Incinerate(100, projectile->GetController());
} }
func Hit() func Hit()