Lightning Bullets Script: Enjoy :)
//Thread Opened again... Dont close... I just renamed variables
heres the script :P
"""""Thanks to JME and Lystic for pretty much the base script"""""
MAKE SURE YOU RENAME VARIABLES!!
-- Fixed Glitch where it didnt work on MultiPlayer and only on Editor. --
heres the script :P
"""""Thanks to JME and Lystic for pretty much the base script"""""
if (isNil "PEDO_IS_FUKED" ) then {PEDO_IS_FUKED=0};
if (PEDO_IS_FUKED==0) then
{
PEDO_IS_FUKED=1;
vehicle player removeAllEventHandlers "Fired";
hint "Explosive Bullets ON";
vehicle player addeventhandler ["Fired",{call Those_Massive_Bullets_Tho} ];
Those_Massive_Bullets_Tho =
{
if (isNull cursorTarget) then
{
PEDO_IS_A_SEXY_CUNT = screenToWorld [0.5,0.5];
}
else
{
PEDO_IS_A_SEXY_CUNT = getpos cursorTarget;
};
private ["_caller"];
_caller = _this select 0;
omsz = false;
_center = createCenter sideLogic;
_group = createGroup _center;
_target = PEDO_IS_A_SEXY_CUNT;
_zlb = _group createUnit ["ModuleLightning_F",_target,[],0,""];
_thunder = ["thunder_1", "thunder_2"] call BIS_fnc_selectRandom;
playSound _thunder;
omscz = true;
true;
};
}
else
{
PEDO_IS_FUKED=0;
hint "Explosive Bullets OFF";
vehicle player removeAllEventHandlers "Fired";
};
if (PEDO_IS_FUKED==0) then
{
PEDO_IS_FUKED=1;
vehicle player removeAllEventHandlers "Fired";
hint "Explosive Bullets ON";
vehicle player addeventhandler ["Fired",{call Those_Massive_Bullets_Tho} ];
Those_Massive_Bullets_Tho =
{
if (isNull cursorTarget) then
{
PEDO_IS_A_SEXY_CUNT = screenToWorld [0.5,0.5];
}
else
{
PEDO_IS_A_SEXY_CUNT = getpos cursorTarget;
};
private ["_caller"];
_caller = _this select 0;
omsz = false;
_center = createCenter sideLogic;
_group = createGroup _center;
_target = PEDO_IS_A_SEXY_CUNT;
_zlb = _group createUnit ["ModuleLightning_F",_target,[],0,""];
_thunder = ["thunder_1", "thunder_2"] call BIS_fnc_selectRandom;
playSound _thunder;
omscz = true;
true;
};
}
else
{
PEDO_IS_FUKED=0;
hint "Explosive Bullets OFF";
vehicle player removeAllEventHandlers "Fired";
};
MAKE SURE YOU RENAME VARIABLES!!
-- Fixed Glitch where it didnt work on MultiPlayer and only on Editor. --



