From fb44295254028d9396dd5bb84dc1bdc40bd57179 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Fri, 30 Dec 2022 18:19:48 +0000 Subject: [FD] Fix compile errors (#558) * mimic changes in CustomServers into Custom * fix compile errors due to int -> float stuff * remove unimplmented function causing compile error --- .../mod/scripts/vscripts/gamemodes/_gamemode_fd.nut | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Northstar.CustomServers/mod/scripts') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut index 1e282f96..b032d257 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut @@ -892,7 +892,7 @@ void function SetWaveStateReady() void function FD_StunLaserHealTeammate( entity player, entity target, int shieldRestoreAmount ) { if( IsValid( player ) && player in file.players ){ - file.playerAwardStats[player]["heals"] += shieldRestoreAmount + file.playerAwardStats[player]["heals"] += float(shieldRestoreAmount) player.AddToPlayerGameStat( PGS_DEFENSE_SCORE, shieldRestoreAmount / 100 ) file.players[ player ].scoreThisRound += shieldRestoreAmount / 100 } @@ -901,7 +901,7 @@ void function FD_StunLaserHealTeammate( entity player, entity target, int shield void function FD_SmokeHealTeammate( entity player, entity target, int shieldRestoreAmount ) { if( IsValid( player ) && player in file.players ){ - file.playerAwardStats[player]["heals"] += shieldRestoreAmount + file.playerAwardStats[player]["heals"] += float(shieldRestoreAmount) player.AddToPlayerGameStat( PGS_DEFENSE_SCORE, shieldRestoreAmount / 100 ) file.players[ player ].scoreThisRound += shieldRestoreAmount / 100 } @@ -927,14 +927,12 @@ void function FD_BatteryHealTeammate( entity battery, entity titan, int shieldRe if( IsValid( BatteryParent ) && BatteryParent in file.players ){ currentHeal = shieldRestoreAmount + healthRestoreAmount currentHealScore = currentHeal / 100 - file.playerAwardStats[BatteryParent]["heals"] += currentHeal - player.AddToPlayerGameStat( PGS_DEFENSE_SCORE, currentHealScore ) + file.playerAwardStats[BatteryParent]["heals"] += float(currentHeal) + BatteryParent.AddToPlayerGameStat( PGS_DEFENSE_SCORE, currentHealScore ) file.players[ BatteryParent ].scoreThisRound += currentHealScore } } -void function gameWonMedals() - void function FD_SetupEpilogue() { AddCallback_GameStateEnter( eGameState.Epilogue, FD_Epilogue ) -- cgit v1.2.3