From 7543950e8d1ec5836a08814ded4f76a0520b4bb7 Mon Sep 17 00:00:00 2001 From: vbawol Date: Mon, 6 Mar 2017 11:35:18 -0600 Subject: [PATCH] give toxic sapper his own toxic bomb --- Sources/epoch_code/compile/EPOCH_unitSpawn.sqf | 2 +- .../epoch_antagonists/EPOCH_server_handle_sapperObjs.sqf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/epoch_code/compile/EPOCH_unitSpawn.sqf b/Sources/epoch_code/compile/EPOCH_unitSpawn.sqf index 2bac555a..3d7280aa 100644 --- a/Sources/epoch_code/compile/EPOCH_unitSpawn.sqf +++ b/Sources/epoch_code/compile/EPOCH_unitSpawn.sqf @@ -99,7 +99,7 @@ switch _unitClass do { for "_i" from 0 to (_unitCount-1) do { _unit = createAgent[_unitClass, _targetPos, [], 256, "FORM"]; _units pushBack _unit; - _bomb = createVehicle ["SmokeShellCustom", _targetPos, [], 0, "CAN_COLLIDE"]; + _bomb = createVehicle ["SmokeShellToxic", _targetPos, [], 0, "CAN_COLLIDE"]; _bomb attachTo [_unit, [0,0,0],"Pelvis"]; _unit call _disableAI; _sapperHndl = [_unit, _bomb, _trgt] execFSM "\x\addons\a3_epoch_code\System\Sapper_Brain.fsm"; diff --git a/Sources/epoch_server/compile/epoch_antagonists/EPOCH_server_handle_sapperObjs.sqf b/Sources/epoch_server/compile/epoch_antagonists/EPOCH_server_handle_sapperObjs.sqf index da505aa2..13efc311 100644 --- a/Sources/epoch_server/compile/epoch_antagonists/EPOCH_server_handle_sapperObjs.sqf +++ b/Sources/epoch_server/compile/epoch_antagonists/EPOCH_server_handle_sapperObjs.sqf @@ -15,8 +15,8 @@ private["_safeUnits"]; params [["_bomb",objNull], "_player", ["_token","",[""]], "_unit", ["_killUnit",false]]; if !([_player,_token]call EPOCH_server_getPToken)exitWith{}; -_safeUnits = ["Epoch_Sapper_F","Epoch_SapperB_F"]; -_safeBombs = ["Sapper_Charge_Ammo","SapperB_Charge_Ammo"]; +_safeUnits = ["Epoch_Sapper_F","Epoch_SapperB_F","Epoch_SapperG_F"]; +_safeBombs = ["Sapper_Charge_Ammo","SapperB_Charge_Ammo","SmokeShellToxic"]; if!(isNull _bomb)then{ if(typeOf _bomb in _safeBombs) then { _bomb setDamage 1;