Fix healing messages not showing up when healed with medic dart
This commit is contained in:
parent
2ddd4a34f0
commit
2bf5f3dbe1
2 changed files with 37 additions and 22 deletions
|
|
@ -66,15 +66,19 @@ simulated function WeaponTick(float dt){
|
|||
}
|
||||
super.WeaponTick(dt);
|
||||
}
|
||||
simulated function ClientSuccessfulHeal(NiceHumanPawn healer, NiceHumanPawn healed){
|
||||
if(healed == none)
|
||||
return;
|
||||
if(instigator != none && PlayerController(instigator.controller) != none)
|
||||
PlayerController(instigator.controller).
|
||||
ClientMessage("You've healed"@healed.GetPlayerName(), 'CriticalEvent');
|
||||
if(NiceHumanPawn(instigator) != none && PlayerController(healed.controller) != none)
|
||||
PlayerController(healed.controller).
|
||||
ClientMessage("You've been healed by"@healer.GetPlayerName(), 'CriticalEvent');
|
||||
|
||||
simulated function ClientSuccessfulHeal(
|
||||
NiceHumanPawn healer,
|
||||
NiceHumanPawn healed
|
||||
){
|
||||
if(healed == none) {
|
||||
return;
|
||||
}
|
||||
if(instigator != none && PlayerController(instigator.controller) != none) {
|
||||
PlayerController(instigator.controller).ClientMessage(
|
||||
"You've healed" @ healed.GetPlayerName(),
|
||||
'CriticalEvent');
|
||||
}
|
||||
}
|
||||
|
||||
defaultproperties
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue