DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnStartAnimationLoop()

override void ActionTransferLiquid::OnStartAnimationLoop ( ActionData action_data)
inlineprivate

См. определение в файле ActionTransferLiquid.c строка 147

148 {
149 if ( !GetGame().IsMultiplayer() || GetGame().IsServer() )
150 {
151 Bottle_Base vessel_in_hands = Bottle_Base.Cast( action_data.m_Target.GetObject() );
152 Param1<bool> play = new Param1<bool>( true );
153 if (TransferLiquidActionData.Cast(action_data))
154 {
155 if (TransferLiquidActionData.Cast(action_data).m_Tendency == true)
156 GetGame().RPCSingleParam( vessel_in_hands, SoundTypeBottle.EMPTYING, play, true );
157 else if (!TransferLiquidActionData.Cast(action_data).m_Tendency == false)
158 GetGame().RPCSingleParam( vessel_in_hands, SoundTypeBottle.POURING, play, true );
159 }
160 }
161 }
SoundTypeBottle
Определения Bottle_Base.c:2
void Bottle_Base()
Определения Bottle_Base.c:42
proto native void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
proto native CGame GetGame()

Перекрестные ссылки ActionData, GetGame() и CGame::RPCSingleParam().