mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
Move some addActions to config UserActions
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
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include "CommonActions.hpp"
|
||||
class WeaponFireGun; // External class reference
|
||||
class WeaponCloudsGun; // External class reference
|
||||
class WeaponFireMGun; // External class reference
|
||||
@@ -136,6 +137,11 @@ class CfgVehicles {
|
||||
class ViewOptics;
|
||||
};
|
||||
};
|
||||
class UserActions
|
||||
{
|
||||
class Repair {ACTION_REPAIR; radius = 8;};
|
||||
class Salvage {ACTION_SALVAGE; radius = 8;};
|
||||
};
|
||||
};
|
||||
class Plane: Air
|
||||
{
|
||||
@@ -147,6 +153,12 @@ class CfgVehicles {
|
||||
class HitHull;
|
||||
};
|
||||
class AnimationSources;
|
||||
class UserActions
|
||||
{
|
||||
class Repair {ACTION_REPAIR; radius = 8;};
|
||||
class Salvage {ACTION_SALVAGE; radius = 8;};
|
||||
class PushPlane {ACTION_PUSH;};
|
||||
};
|
||||
};
|
||||
class Land; // External class reference
|
||||
class LandVehicle : Land
|
||||
@@ -179,6 +191,11 @@ class CfgVehicles {
|
||||
brightness = 0.5;
|
||||
};
|
||||
};
|
||||
class UserActions
|
||||
{
|
||||
class Repair {ACTION_REPAIR; radius = 4;};
|
||||
class Salvage {ACTION_SALVAGE; radius = 4;};
|
||||
};
|
||||
};
|
||||
class Car: LandVehicle {
|
||||
class HitPoints
|
||||
@@ -440,9 +457,6 @@ class CfgVehicles {
|
||||
class Strategic;
|
||||
class NonStrategic;
|
||||
// class Land_Fire;
|
||||
class Animal;
|
||||
class Pastor;
|
||||
class Fin;
|
||||
class BuiltItems;
|
||||
class Building;
|
||||
class ReammoBox;
|
||||
@@ -531,7 +545,7 @@ class CfgVehicles {
|
||||
#include "Bikes\TT650_Civ.hpp"
|
||||
#include "Bikes\M1030.hpp"
|
||||
//Boat
|
||||
#include "Boat\RHIB.hpp"
|
||||
#include "Boat\RHIB.hpp" //Must be first boat, includes Ship base class
|
||||
#include "Boat\PBX.hpp"
|
||||
#include "Boat\Fishing_Boat.hpp"
|
||||
#include "Boat\smallboat.hpp"
|
||||
|
||||
Reference in New Issue
Block a user