diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-05 23:28:38 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-05 23:28:38 +0000 |
commit | f1a07e1b01923b45f7a82c063d25b8dea5b13d53 (patch) | |
tree | 265a20be313fbdc054887c5be3d78797cbd6e707 /Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut | |
parent | 51e16034230f4dd759900c7922b8db43941e0a70 (diff) | |
download | NorthstarMods-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.nut | 7 |
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 ) {} } |