Epoch/Sources/epoch_code/compile/EPOCH_antiWall.sqf
vbawol 8f3b06f0f4 0.3.9.0 b553
Zombies: fixed issue with multiple targets
moved CfgSounds and CfgSay3Dhandler to mission file
added new mission config (CfgSwitchMovehandler) for
EPOCH_server_handle_switchMove function
minor cleanup to EPOCH_server_handle_say3D usages.
2016-07-05 13:22:14 -05:00

29 lines
868 B
Plaintext

/*
Author: Aaron Clark - EpochMod.com
Contributors:
Description:
A3 Epoch Anti-Vehicle Wall glitch
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_antiWall.sqf
*/
private ["_start","_end","_dirTo"];
params ["_unit","_position","_vehicle"];
if (_unit == player) then {
_start = getPosWorld _vehicle;
// _worldPos set[2, (_worldPos select 2) + 1];
_dirTo = _vehicle getDir player;
_end = _vehicle getPos [(_vehicle distance player) + 1, _dirTo];
{
if (_x isKindOf "Const_All_Walls_F") exitWith{
player moveInAny _vehicle;
EPOCH_antiWallCount = EPOCH_antiWallCount + 1;
};
} forEach lineintersectsobjs[_start, AGLToASL _end, player, _vehicle, true, 2];
};