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 --- Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut') diff --git a/Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut b/Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut index ad433ae2..1056be8b 100644 --- a/Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut +++ b/Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut @@ -27,6 +27,7 @@ global function Rodeo_PilotPicksUpBattery_Silent global function AddOnRodeoStartedCallback global function AddOnRodeoEndedCallback +global function AddBatteryHealCallback global function PilotBattery_SetMaxCount global function ThrowRiderOff @@ -89,6 +90,7 @@ struct { array onRodeoEndedCallbacks array onRodeoStartedCallbacks + array batteryHealCallbacks table antiRodeoPlayerData @@ -534,6 +536,12 @@ void function AddOnRodeoEndedCallback( void functionref(entity,entity) callbackF file.onRodeoEndedCallbacks.append( callbackFunc ) } +void function AddBatteryHealCallback( void functionref(entity,entity,int,int) callbackFunc ) +{ + Assert (!( file.batteryHealCallbacks.contains( callbackFunc ) )) + file.batteryHealCallbacks.append( callbackFunc ) +} + function PlayerBeginsTitanRodeo( entity player, RodeoPackageStruct rodeoPackage, entity rodeoTitan ) { entity soul = rodeoTitan.GetTitanSoul() -- cgit v1.2.3