diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2022-12-30 18:19:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-30 19:19:48 +0100 |
commit | fb44295254028d9396dd5bb84dc1bdc40bd57179 (patch) | |
tree | d725eefbb4e156246fbf3a75cd87b57ddaa2db5f /Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut | |
parent | a7353815e4b1211a2b983e7000d6c6a2f34f1738 (diff) | |
download | NorthstarMods-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.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut')
-rw-r--r-- | Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut | 8 |
1 files changed, 8 insertions, 0 deletions
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<void functionref(entity,entity)> onRodeoEndedCallbacks array<void functionref(entity,entity)> onRodeoStartedCallbacks + array<void functionref(entity,entity,int,int)> batteryHealCallbacks table<entity, AntiRodeoPlayerData> 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() |