aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-05 23:28:38 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-05 23:28:38 +0000
commitf1a07e1b01923b45f7a82c063d25b8dea5b13d53 (patch)
tree265a20be313fbdc054887c5be3d78797cbd6e707 /Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut
parent51e16034230f4dd759900c7922b8db43941e0a70 (diff)
downloadNorthstarMods-f1a07e1b01923b45f7a82c063d25b8dea5b13d53.tar.gz
NorthstarMods-f1a07e1b01923b45f7a82c063d25b8dea5b13d53.zip
fixes from playtest
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut7
1 files changed, 6 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut
index 3421419ca..399407694 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut
@@ -188,7 +188,12 @@ void function ScoreEvent_TitanKilled( entity victim, entity attacker, var damage
void function ScoreEvent_NPCKilled( entity victim, entity attacker, var damageInfo )
{
- AddPlayerScore( attacker, ScoreEventForNPCKilled( victim, damageInfo ), victim )
+ try
+ {
+ // have to trycatch this because marvins will crash on kill if we dont
+ AddPlayerScore( attacker, ScoreEventForNPCKilled( victim, damageInfo ), victim )
+ }
+ catch ( ex ) {}
}