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

◆ OnAction()

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

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

3615 {
3616 if (action_id == EActions.FIX_ENTITY)
3617 {
3618 #ifdef DIAG_DEVELOPER
3619 FixEntity();
3620 #endif
3621 }
3622 else if (action_id == EActions.GET_TOTAL_WEIGHT) //Prints total weight of item + its contents
3623 {
3624 WeightDebug.ClearWeightDebug();
3625 #ifndef SERVER
3626 Debug.Log("======================== "+ GetType() +" =================================");
3627 #endif
3628 Debug.Log("Weight:" + GetWeightEx().ToString());
3629 Debug.Log("Weight excluding cargo and attachments:" + GetSingleInventoryItemWeightEx());
3630 Debug.Log("----------------------------------------------------------------------------------------------");
3631 }
3632 else if (action_id == EActions.GET_TOTAL_WEIGHT_RECALC) //Prints total weight of item + its contents
3633 {
3634 WeightDebug.ClearWeightDebug();
3635 WeightDebug.SetVerbosityFlags(WeightDebugType.RECALC_FORCED);
3636 #ifndef SERVER
3637 Debug.Log("======================== "+ GetType() +" RECALC ===========================");
3638 #endif
3639 Debug.Log("Weight:" + GetWeightEx(true).ToString());
3640 Debug.Log("Weight excluding cargo and attachments:" + GetSingleInventoryItemWeightEx());
3641 WeightDebug.PrintAll(this);
3642 Debug.Log("----------------------------------------------------------------------------------------------");
3643 WeightDebug.SetVerbosityFlags(0);
3644 }
3645 else if (action_id == EActions.GET_PLAYER_WEIGHT) //Prints total weight of item + its contents
3646 {
3647 WeightDebug.ClearWeightDebug();
3648 #ifndef SERVER
3649 Debug.Log("======================== PLAYER: "+player+" ===========================");
3650 #endif
3651 Debug.Log("New overall weight Player:"+player.GetWeightEx().ToString());
3652
3653 Debug.Log("----------------------------------------------------------------------------------------------");
3654 }
3655 else if (action_id == EActions.GET_PLAYER_WEIGHT_RECALC) //Prints total weight of item + its contents
3656 {
3657 WeightDebug.ClearWeightDebug();
3658 WeightDebug.SetVerbosityFlags(WeightDebugType.RECALC_FORCED);
3659 #ifndef SERVER
3660 Debug.Log("======================== PLAYER RECALC: "+player+" ===========================");
3661 #endif
3662 Debug.Log("New overall weight Player:"+player.GetWeightEx(true).ToString());
3663 WeightDebug.PrintAll(player);
3664 Debug.Log("----------------------------------------------------------------------------------------------");
3665 WeightDebug.SetVerbosityFlags(0);
3666 }
3667 return false;
3668 }
eBleedingSourceType GetType()
EActions
Определения EActions.c:2
proto string ToString()
void Debug()
Определения UniversalTemperatureSource.c:349
float GetWeightEx(bool forceRecalc=false)
returns overall weight of the entity, 'forceRecalc = true' is meant to be used only when debugging,...
Определения 3_Game/Entities/EntityAI.c:3570
float GetSingleInventoryItemWeightEx()
Определения 3_Game/Entities/EntityAI.c:3598

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