add sounds for grenades; fix crash in -2

This commit is contained in:
Chris Forbes
2010-05-01 14:58:06 +12:00
parent 0c81356449
commit affd853a96
2 changed files with 3 additions and 1 deletions

View File

@@ -146,7 +146,7 @@ namespace OpenRA
public static bool IsVisible(this Actor a) public static bool IsVisible(this Actor a)
{ {
if (a.World.LocalPlayer.Shroud.Disabled) if (a.World.LocalPlayer != null && a.World.LocalPlayer.Shroud.Disabled)
return true; return true;
var shroud = a.World.WorldActor.traits.Get<Shroud>(); var shroud = a.World.WorldActor.traits.Get<Shroud>();

View File

@@ -191,6 +191,7 @@ Hellfire:
Grenade: Grenade:
ROF: 60 ROF: 60
Range: 4 Range: 4
Report: grenade1
Bullet: Bullet:
Speed: 5 Speed: 5
High: true High: true
@@ -206,6 +207,7 @@ Grenade:
InfDeath: 2 InfDeath: 2
SmudgeType: Crater SmudgeType: Crater
Damage: 50 Damage: 50
ImpactSound: kaboom12
75mm: 75mm:
ROF: 40 ROF: 40