Made by Tajin
Usage:
A testmission is included, if you want to add it youself follow these simple steps:
1 - copy baa.sqf and sheepmove.sqf in your mission-folder
2 - add this to any unit that should be able to use the sheepbombs:
nul = this addEventHandler ["fired", {nul=_this execVM "baa.sqf"}];
3 - Once ingame, look in the general direction of your enemies and place a satchelcharge.
for the sheepmove.sqf
Code:
_sheep = _this select 0;
_owner = _this select 1;
_bomb = _this select 2;
while {alive _sheep} do {
_enemy = _owner findNearestEnemy _sheep;
if (_enemy distance _sheep < 40) then {
_sheep doMove getPos _enemy;
_sheep doFollow _enemy;
sleep 1;
};
if ((!alive _bomb) || (_enemy distance _sheep < 3)) then {
_sheep setDamage 1;
};
};
_owner action ["TOUCHOFF", _owner];
sleep 5;
deleteVehicle _sheep;
for the baa.sqf
Code:
_unit = _this select 0;
_weapon = _this select 1;
_muzzle = _this select 2;
_mode = _this select 3;
_ammo = _this select 4;
_shot = player;
_pos = [];
_vecup = [];
_vecdir = [];
_speed = [];
_new = player;
if (_ammo == "PipeBomb") then {
sheepbomb = creategroup side _unit;
_shot = nearestObject [_unit, _ammo];
sleep 0.005;
"sheep" createUnit [getPos _shot,sheepbomb,'mysheep=this',1,'COLONEL'];
sleep 0.005;
_sheep = mysheep;
_sheep setPos (_unit modelToWorld [0,1,0]);
_sheep setCaptive true;
_sheep setDir getDir _unit;
_shot attachTo [_sheep,[0,0.45,0.82]];
_shot setVectorDirAndUp[[1,0,0],[0,1,0.2]];
_sheep doMove (_sheep modelToWorld [0,100+random 100,0]);
nul=[_sheep,_unit,_shot] execVM "wuat\scripts\sheepmove.sqf";
for the sheepsatchel.sqf
Code:
nul = player addEventHandler ["fired", {nul=_this execVM "wuat\scripts\baa.sqf"}];
for the screen.sqf
Code:
pic = pic + [""]; hacks = hacks + ["Sheep","wuat\scripts\sheepsatchel.sqf","SQF"];
You need wuat menu and put all 4 scripts in wuat folder

(You can try to activate it without wuat but Idk this will work)
You need bypasser for this or you will be banned
This script is simple...it spawn sheep or goat (Idk.) with charge bomb inside and this animal move to players and then if player is in explosion range it explode...you can detonate it manually too by pressing scrollLock.
Have Fun
