mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-04 19:29:34 +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:
1 parent
12f59f046c
commit
d416ae80ab
8 files changed
+16
-21
No files matched your search
@@ -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