mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-23 04:22:13 +03:00
Use waterHoleProxy in drink water and fill water #1835
The slow searches are needed on other maps until waterHoleProxy objects are added for them. They need to be added at every pond and non-"Land_pumpa" well. Right now Chernarus is the only map that has them placed. Fixes #1835 Fixes #1841
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
class Land_pumpa: House
|
||||
{
|
||||
class UserActions
|
||||
{
|
||||
class Drink
|
||||
{
|
||||
displayName = $STR_ACTIONS_DRINK2;
|
||||
displayNameDefault = $STR_ACTIONS_DRINK2;
|
||||
priority = 3;
|
||||
radius = 3;
|
||||
position = "";
|
||||
showWindow = 1;
|
||||
onlyForPlayer = 1;
|
||||
shortcut = "";
|
||||
condition = "(['Drink',this] call userActionConditions)";
|
||||
statement = "'hands' spawn player_drinkWater;";
|
||||
};
|
||||
};
|
||||
};
|
||||
39
SQF/dayz_code/Configs/CfgVehicles/Buildings/WaterSources.hpp
Normal file
39
SQF/dayz_code/Configs/CfgVehicles/Buildings/WaterSources.hpp
Normal file
@@ -0,0 +1,39 @@
|
||||
class Land_pumpa: House
|
||||
{
|
||||
class UserActions
|
||||
{
|
||||
class Drink
|
||||
{
|
||||
displayName = $STR_ACTIONS_DRINK2;
|
||||
displayNameDefault = $STR_ACTIONS_DRINK2;
|
||||
priority = 3;
|
||||
radius = 3;
|
||||
position = "";
|
||||
showWindow = 1;
|
||||
onlyForPlayer = 1;
|
||||
shortcut = "";
|
||||
condition = "(['Drink',this] call userActionConditions)";
|
||||
statement = "'Land_pumpa' spawn player_drinkWater;";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class Land_Barrel_water: Thing
|
||||
{
|
||||
class UserActions
|
||||
{
|
||||
class Drink
|
||||
{
|
||||
displayName = $STR_ACTIONS_DRINK2;
|
||||
displayNameDefault = $STR_ACTIONS_DRINK2;
|
||||
priority = 3;
|
||||
radius = 3;
|
||||
position = "";
|
||||
showWindow = 1;
|
||||
onlyForPlayer = 1;
|
||||
shortcut = "";
|
||||
condition = "(['Drink',this] call userActionConditions)";
|
||||
statement = "'Land_Barrel_water' spawn player_drinkWater;";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user