From 8c26a0b08d8327d6db14718754ff1b44e476acd2 Mon Sep 17 00:00:00 2001 From: Maya Date: Wed, 16 Feb 2022 22:13:33 +0100 Subject: Fix Amped Hardpoint on Homestead (#174) * Adds Missing Entity Data to Homestead * Fix Homestead in Script * Encapsulated getting Hardpointgroup in function * fixing respawning on amped hardpoint --- .../mod/scripts/vscripts/gamemodes/_gamemode_speedball.nut | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_speedball.nut') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_speedball.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_speedball.nut index 9446a8c24..cb277b004 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_speedball.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_speedball.nut @@ -129,7 +129,7 @@ void function CreateFlagIfNoFlagSpawnpoint() foreach ( entity hardpoint in GetEntArrayByClass_Expensive( "info_hardpoint" ) ) { - if ( hardpoint.kv.hardpointGroup == "B" ) + if ( GetHardpointGroup(hardpoint) == "B" ) { CreateFlag( hardpoint ) return @@ -160,4 +160,12 @@ void function GamemodeSpeedball_OnWinnerDetermined() { if(IsValid(file.flagCarrier)) file.flagCarrier.AddToPlayerGameStat( PGS_ASSAULT_SCORE, 1 ) +} + +string function GetHardpointGroup(entity hardpoint) //Hardpoint Entity B on Homestead is missing the Hardpoint Group KeyValue +{ + if((GetMapName()=="mp_homestead")&&(!hardpoint.HasKey("hardpointGroup"))) + return "B" + + return string(hardpoint.kv.hardpointGroup) } \ No newline at end of file -- cgit v1.2.3