mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Configs: antihack for logic and plants
This commit is contained in:
43
SQF/dayz_code/Configs/CfgVehicles/antihack_logic.hpp
Normal file
43
SQF/dayz_code/Configs/CfgVehicles/antihack_logic.hpp
Normal file
@@ -0,0 +1,43 @@
|
||||
|
||||
//Prevent SVI hack using BattleFieldClearance & al.
|
||||
class Logic;
|
||||
class BattleFieldClearance: Logic
|
||||
{
|
||||
vehicleClass = "Modules";
|
||||
class Eventhandlers
|
||||
{
|
||||
init = "if (isServer) then { diag_log(""WARNING, b4ttlefieldclearance attack from player PID#""+str(owner this)); deleteVehicle this;};";
|
||||
};
|
||||
};
|
||||
class HighCommandSubordinate: Logic
|
||||
{
|
||||
vehicleClass = "Modules";
|
||||
class Eventhandlers
|
||||
{
|
||||
init = "if (isServer) then { diag_log(""WARNING, HighCommand5ubordinate attack from player PID#""+str(owner this)); deleteVehicle this;};";
|
||||
};
|
||||
};
|
||||
class FirstAidSystem: Logic
|
||||
{
|
||||
vehicleClass = "Modules";
|
||||
class Eventhandlers
|
||||
{
|
||||
init = "if (isServer) then { diag_log(""WARNING, First4idSystem attack from player PID#""+str(owner this)); deleteVehicle this;};";
|
||||
};
|
||||
};
|
||||
class AlternativeInjurySimulation: Logic
|
||||
{
|
||||
vehicleClass = "Modules";
|
||||
class Eventhandlers
|
||||
{
|
||||
init = "if (isServer) then { diag_log(""WARNING, 4lternativeInjurySimulation attack from player PID#""+str(owner this)); deleteVehicle this;};";
|
||||
};
|
||||
};
|
||||
class FunctionsManager : Logic {
|
||||
vehicleClass = "Modules";
|
||||
class Eventhandlers
|
||||
{
|
||||
init = "diag_log format ['PRELOAD_ Functions\init %1', [_this, BIS_functions_mainscope]];if (isnil 'BIS_functions_mainscope') then { BIS_functions_mainscope = _this select 0; if (isServer) then {_this execVM 'ca\modules\functions\main.sqf'};} else {_this spawn { diag_log format ['PRELOAD_ Functions\init ERROR: deleting redundant FM! %1', [_this, (_this select 0), BIS_functions_mainscope]]; _mygrp = group (_this select 0); deleteVehicle (_this select 0); deleteGroup _mygrp;};};if (isnil 'RE') then {diag_log 'MPframework inited';[] execVM '\ca\Modules\MP\data\scripts\MPframework.sqf'};";
|
||||
};
|
||||
};
|
||||
|
||||
90
SQF/dayz_code/Configs/CfgVehicles/antihack_plants.hpp
Normal file
90
SQF/dayz_code/Configs/CfgVehicles/antihack_plants.hpp
Normal file
@@ -0,0 +1,90 @@
|
||||
|
||||
// check that plants libs are properly loaded
|
||||
// thanks to Tansien
|
||||
class faplants : House {};
|
||||
class grass: faplants
|
||||
{
|
||||
model = "\ca\data\cl_grass1.p3d";
|
||||
displayName = "grass";
|
||||
vehicleClass = "grass";
|
||||
class AnimationSources {};
|
||||
};
|
||||
|
||||
class prunus: faplants
|
||||
{
|
||||
model = "\ca\plants2\bush\b_prunus.p3d";
|
||||
displayName = "prunus";
|
||||
vehicleClass = "prunus";
|
||||
class AnimationSources {};
|
||||
};
|
||||
|
||||
class picea: faplants
|
||||
{
|
||||
model = "\ca\plants2\clutter\c_picea.p3d";
|
||||
displayName = "picea";
|
||||
vehicleClass = "picea";
|
||||
class AnimationSources {};
|
||||
};
|
||||
|
||||
class fallentree: faplants
|
||||
{
|
||||
model = "\ca\plants2\misc\misc_fallentree1.p3d";
|
||||
displayName = "fallentree";
|
||||
vehicleClass = "fallentree";
|
||||
class AnimationSources {};
|
||||
};
|
||||
|
||||
class phragmites: faplants
|
||||
{
|
||||
model = "\ca\plants2\plant\p_phragmites.p3d";
|
||||
displayName = "phragmites";
|
||||
vehicleClass = "phragmites";
|
||||
class AnimationSources {};
|
||||
};
|
||||
|
||||
class acer: faplants
|
||||
{
|
||||
model = "\ca\plants2\tree\t_acer2s.p3d";
|
||||
displayName = "acer";
|
||||
vehicleClass = "acer";
|
||||
class AnimationSources {};
|
||||
};
|
||||
|
||||
class amygdalusn: faplants
|
||||
{
|
||||
model = "\ca\plants_e\bush\b_amygdalusn1s_ep1.p3d";
|
||||
displayName = "amygdalusn";
|
||||
vehicleClass = "amygdalusn";
|
||||
class AnimationSources {};
|
||||
};
|
||||
|
||||
class Brush: faplants
|
||||
{
|
||||
model = "\ca\plants_E\Clutter\c_Brush_Hard_EP1.p3d";
|
||||
displayName = "Brush";
|
||||
vehicleClass = "Brush";
|
||||
class AnimationSources {};
|
||||
};
|
||||
|
||||
class fiberplant: faplants
|
||||
{
|
||||
model = "\ca\plants_e\plant\p_fiberplant_ep1.p3d";
|
||||
displayName = "fiberplant";
|
||||
vehicleClass = "fiberplant";
|
||||
class AnimationSources {};
|
||||
};
|
||||
|
||||
class amygdalusc: faplants
|
||||
{
|
||||
model = "\ca\plants_e\tree\t_amygdalusc2s_ep1.p3d";
|
||||
displayName = "amygdalusc";
|
||||
vehicleClass = "amygdalusc";
|
||||
class AnimationSources {};
|
||||
};
|
||||
class boulder: faplants
|
||||
{
|
||||
model = "\ca\rocks2\R2_Boulder1.p3d";
|
||||
displayName = "boulder";
|
||||
vehicleClass = "boulder";
|
||||
class AnimationSources {};
|
||||
};
|
||||
Reference in New Issue
Block a user