mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Should improve client FPS while still allowing conditions and scripts to be customized. Some special vehicles like MV22, UH1Y, etc. have UserActions overwritten in their configs, so please let me know if you find any others that do not get the option to repair or salvage because UserActions is overwritten in their config. I think I got them all. Vanilla commits:a8c4238c0c350d73abe1
30 lines
923 B
C++
30 lines
923 B
C++
#define ACTION_REPAIR displayName = $STR_ACTIONS_REPAIRVEH;\
|
|
displayNameDefault = $STR_ACTIONS_REPAIRVEH;\
|
|
priority = 0;\
|
|
position = "";\
|
|
showWindow = 0;\
|
|
onlyForPlayer = 1;\
|
|
shortcut = "";\
|
|
condition = "(['Repair',this] call userActionConditions)";\
|
|
statement = "this call player_repairVehicle;"
|
|
|
|
#define ACTION_SALVAGE displayName = $STR_ACTIONS_SALVAGEVEH;\
|
|
displayNameDefault = $STR_ACTIONS_SALVAGEVEH;\
|
|
priority = 0;\
|
|
position = "";\
|
|
showWindow = 0;\
|
|
onlyForPlayer = 1;\
|
|
shortcut = "";\
|
|
condition = "(['Salvage',this] call userActionConditions)";\
|
|
statement = "this call player_salvageVehicle;"
|
|
|
|
#define ACTION_PUSH displayName = $STR_ACTIONS_PUSH;\
|
|
displayNameDefault = $STR_ACTIONS_PUSH;\
|
|
priority = 0;\
|
|
radius = 8;\
|
|
position = "";\
|
|
showWindow = 0;\
|
|
onlyForPlayer = 1;\
|
|
shortcut = "";\
|
|
condition = "(['PushPlane',this] call userActionConditions)";\
|
|
statement = "this call player_pushPlane;" |