aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2022-12-30 18:19:48 +0000
committerGitHub <noreply@github.com>2022-12-30 19:19:48 +0100
commitfb44295254028d9396dd5bb84dc1bdc40bd57179 (patch)
treed725eefbb4e156246fbf3a75cd87b57ddaa2db5f /Northstar.CustomServers/mod
parenta7353815e4b1211a2b983e7000d6c6a2f34f1738 (diff)
downloadNorthstarMods-fb44295254028d9396dd5bb84dc1bdc40bd57179.tar.gz
NorthstarMods-fb44295254028d9396dd5bb84dc1bdc40bd57179.zip
[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
Diffstat (limited to 'Northstar.CustomServers/mod')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut10
1 files changed, 4 insertions, 6 deletions
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 )