mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-12 19:22:56 +03:00
Move study body back to fn_selfActions
Adding UserActions to players (CAManBase) is not efficient, because the
condition evaluates onEachFrame when you are "inside" that vehicle type.
Also admins usually want to add more custom actions to dead bodies
anyway.
https://community.bistudio.com/wiki/addAction#Syntax
This partially reverts 3aad4b6.
This commit is contained in:
@@ -8,22 +8,6 @@ class CAManBase: Man //includes all skins except animals
|
||||
class HitHead;
|
||||
class HitBody;
|
||||
};
|
||||
class UserActions
|
||||
{
|
||||
class StudyBody
|
||||
{
|
||||
displayName = $STR_ACTION_STUDYBODY;
|
||||
displayNameDefault = $STR_ACTION_STUDYBODY;
|
||||
priority = 0;
|
||||
radius = 3;
|
||||
position = "";
|
||||
showWindow = 0;
|
||||
onlyForPlayer = 1;
|
||||
shortcut = "";
|
||||
condition = "(['StudyBody',this] call userActionConditions)";
|
||||
statement = "this call player_studyBody;";
|
||||
};
|
||||
};
|
||||
};
|
||||
class Civilian: CAManBase
|
||||
{
|
||||
|
||||
@@ -73,7 +73,6 @@ class zZombie_Base : Zed_Base {
|
||||
condition = "(['Butcher',this] call userActionConditions)";
|
||||
statement = "this spawn player_butcher;";
|
||||
};
|
||||
delete StudyBody;
|
||||
};
|
||||
|
||||
class HitPoints {
|
||||
|
||||
Reference in New Issue
Block a user