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

◆ OnAction()

bool Entity::OnAction ( int action_id,
Man player,
ParamsReadContext ctx )
inlineprotected

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 3657

3658 {
3659 if (action_id == EActions.FIX_ENTITY)
3660 {
3661 #ifdef DIAG_DEVELOPER
3662 FixEntity();
3663 #endif
3664 }
3665 else if (action_id == EActions.GET_TOTAL_WEIGHT) //Prints total weight of item + its contents
3666 {
3667 WeightDebug.ClearWeightDebug();
3668 #ifndef SERVER
3669 Debug.Log("======================== "+ GetType() +" =================================");
3670 #endif
3671 Debug.Log("Weight:" + GetWeightEx().ToString());
3672 Debug.Log("Weight excluding cargo and attachments:" + GetSingleInventoryItemWeightEx());
3673 Debug.Log("----------------------------------------------------------------------------------------------");
3674 }
3675 else if (action_id == EActions.GET_TOTAL_WEIGHT_RECALC) //Prints total weight of item + its contents
3676 {
3677 WeightDebug.ClearWeightDebug();
3678 WeightDebug.SetVerbosityFlags(WeightDebugType.RECALC_FORCED);
3679 #ifndef SERVER
3680 Debug.Log("======================== "+ GetType() +" RECALC ===========================");
3681 #endif
3682 Debug.Log("Weight:" + GetWeightEx(true).ToString());
3683 Debug.Log("Weight excluding cargo and attachments:" + GetSingleInventoryItemWeightEx());
3684 WeightDebug.PrintAll(this);
3685 Debug.Log("----------------------------------------------------------------------------------------------");
3686 WeightDebug.SetVerbosityFlags(0);
3687 }
3688 else if (action_id == EActions.GET_PLAYER_WEIGHT) //Prints total weight of item + its contents
3689 {
3690 WeightDebug.ClearWeightDebug();
3691 #ifndef SERVER
3692 Debug.Log("======================== PLAYER: "+player+" ===========================");
3693 #endif
3694 Debug.Log("New overall weight Player:"+player.GetWeightEx().ToString());
3695
3696 Debug.Log("----------------------------------------------------------------------------------------------");
3697 }
3698 else if (action_id == EActions.GET_PLAYER_WEIGHT_RECALC) //Prints total weight of item + its contents
3699 {
3700 WeightDebug.ClearWeightDebug();
3701 WeightDebug.SetVerbosityFlags(WeightDebugType.RECALC_FORCED);
3702 #ifndef SERVER
3703 Debug.Log("======================== PLAYER RECALC: "+player+" ===========================");
3704 #endif
3705 Debug.Log("New overall weight Player:"+player.GetWeightEx(true).ToString());
3706 WeightDebug.PrintAll(player);
3707 Debug.Log("----------------------------------------------------------------------------------------------");
3708 WeightDebug.SetVerbosityFlags(0);
3709 }
3710 return false;
3711 }
eBleedingSourceType GetType()
string Debug()
Определения CachedEquipmentStorageBase.c:29
EActions
Определения EActions.c:2
proto string ToString()
float GetWeightEx(bool forceRecalc=false)
returns overall weight of the entity, 'forceRecalc = true' is meant to be used only when debugging,...
float GetSingleInventoryItemWeightEx()

Перекрестные ссылки GetSingleInventoryItemWeightEx(), GetType(), GetWeightEx(), Debug::Log() и ToString().