mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
give toxic sapper his own toxic bomb
This commit is contained in:
parent
8b77ed0be7
commit
7543950e8d
@ -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";
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user