aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2023-10-16 13:53:02 +0100
committerGitHub <noreply@github.com>2023-10-16 14:53:02 +0200
commit6df399f251bbaf8b43629ba023061eea67a37656 (patch)
tree374f4e9d0d181ed63e0994dec022968ec2fc242f /Northstar.CustomServers/mod/scripts
parent8dfc1b9a0749c35c9f53745400718188cf6fe6f6 (diff)
downloadNorthstarMods-6df399f251bbaf8b43629ba023061eea67a37656.tar.gz
NorthstarMods-6df399f251bbaf8b43629ba023061eea67a37656.zip
Make dropships immune to Titan step damage (#737)v1.19.9-rc1
Currently dropships take damage from titans stepping on them, this prevents that Co-authored-by: William Miller <william-millennium@hotmail.com>
Diffstat (limited to 'Northstar.CustomServers/mod/scripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut4
1 files changed, 4 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
index bab7eaed..c11ca36f 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
@@ -628,6 +628,10 @@ void function SetRecalculateRespawnAsTitanStartPointCallback( entity functionref
bool function ShouldEntTakeDamage_SPMP( entity ent, var damageInfo )
{
+ // dropships are immune to being crushed
+ if ( ( IsDropship( ent ) || IsEvacDropship( ent ) ) && IsTitanCrushDamage( damageInfo ) )
+ return false
+
return true
}