mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
toxic sapper updates
Increase range for toxic smoke from 6m to 12m. toxic sapper.: trigger smoke at unit spawn readd smaller explosive charge
This commit is contained in:
parent
f11f8a5a6c
commit
cce0f4aa2b
@ -105,6 +105,9 @@ switch _unitClass do {
|
|||||||
_units pushBack _unit;
|
_units pushBack _unit;
|
||||||
_bomb = createVehicle ["SmokeShellToxicSapper", _targetPos, [], 0, "CAN_COLLIDE"];
|
_bomb = createVehicle ["SmokeShellToxicSapper", _targetPos, [], 0, "CAN_COLLIDE"];
|
||||||
_bomb attachTo [_unit, [0,0,0],"Pelvis"];
|
_bomb attachTo [_unit, [0,0,0],"Pelvis"];
|
||||||
|
[_bomb, player, Epoch_personalToken,_unit,false] remoteExec ["EPOCH_server_handle_sapperObjs",2];
|
||||||
|
_bomb = createVehicle ["Sapper_Charge_Ammo", _targetPos, [], 0, "CAN_COLLIDE"];
|
||||||
|
_bomb attachTo [_unit, [0,0,0],"Pelvis"];
|
||||||
_unit call _disableAI;
|
_unit call _disableAI;
|
||||||
_sapperHndl = [_unit, _bomb, _trgt] execFSM "\x\addons\a3_epoch_code\System\Sapper_Brain2.fsm";
|
_sapperHndl = [_unit, _bomb, _trgt] execFSM "\x\addons\a3_epoch_code\System\Sapper_Brain2.fsm";
|
||||||
_unit setVariable ["sapperHndl",_sapperHndl];
|
_unit setVariable ["sapperHndl",_sapperHndl];
|
||||||
|
@ -86,7 +86,7 @@ if !(_attackers isEqualTo[]) then {
|
|||||||
(_attackers select 0) call EPOCH_client_bitePlayer;
|
(_attackers select 0) call EPOCH_client_bitePlayer;
|
||||||
_panic = true;
|
_panic = true;
|
||||||
} else {
|
} else {
|
||||||
_toxicObjs = player nearobjects["SmokeShellCustom", 6];
|
_toxicObjs = player nearobjects["SmokeShellCustom", 12];
|
||||||
if!(_toxicObjs IsEqualTo[]) then {
|
if!(_toxicObjs IsEqualTo[]) then {
|
||||||
(_toxicObjs select 0) call EPOCH_client_bitePlayer;
|
(_toxicObjs select 0) call EPOCH_client_bitePlayer;
|
||||||
_panic = true;
|
_panic = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user