give toxic sapper his own toxic bomb

This commit is contained in:
vbawol 2017-03-06 11:35:18 -06:00
parent 8b77ed0be7
commit 7543950e8d
2 changed files with 3 additions and 3 deletions

View File

@ -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";

View File

@ -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;