Necromancy SA: Racial Profiling ESP
Smokin On Nothin But the Finest Chernogorsk Kush.
Credits: Mizzle420420 (Script), FonZ (Ideas), The Builder (Ideas)

Credits: Mizzle420420 (Script), FonZ (Ideas), The Builder (Ideas)

Code:
[]spawn
{
RacistESP2 =
{
if (isNil 'RacistESP1') then
{
RacistESP1 = 0;
};
if (RacistESP1 == 0) then
{
systemchat "Necromancy: Racist ESP Activated";
RacistESP1 = 1;
_a = [];
while {RacistESP1 == 1} do
{
_entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
{
if ((_x in _a) && !(alive _x)) then {_a = _a - [_x];};
if ((_x != player) && !(_x in _a)) then
{
_a = _a + [_x];
[_x] spawn RacistESP3;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
}
else
{
systemchat "Necromancy: Racist ESP Deactivated";
RacistESP1 = 0;
};
};
RacistESP3 =
{
disableSerialization;
if (isNil 'RacistESP4') then
{
RacistESP4 = 2733;
};
RacistESP4 cutRsc ['rscDynamicText', 'PLAIN'];
RacistESP4 = RacistESP4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
_unit = _this select 0;
while {(alive _unit) && !(isNull _unit)} do
{
if (RacistESP1 == 0) exitWith
{
_ctrl ctrlShow false;_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2) + 2];
_pos2D = WorldToScreen _pos;
_thebattleye = "";
if (typeof _unit == "SurvivorPartsMaleWhite") then
{
_thebattleye = "Honky";
};
if (typeof _unit == "SurvivorPartsMaleMatt") then
{
_thebattleye = "Honky";
};
if (typeof _unit == "SurvivorPartsMaleAsian") then
{
_thebattleye = "Gook";
};
if (typeof _unit == "SurvivorPartsMaleAfrican") then
{
_thebattleye = "Nigga";
};
if (typeof _unit == "SurvivorPartsMaleLatino") then
{
_thebattleye = "Spik";
};
if (typeof _unit == "SurvivorPartsMaleIndian") then
{
_thebattleye = "Haji";
};
if (typeof _unit == "SurvivorPartsMaleDean") then
{
_thebattleye = "Dean 'The Everest' Hall";
};
if (typeof _unit == "SurvivorPartsFemaleLatino") then
{
_thebattleye = "Spik Bitch";
};
if (typeof _unit == "SurvivorPartsFemaleIndian") then
{
_thebattleye = "Haji Bitch";
};
if (typeof _unit == "SurvivorPartsFemaleAsian") then
{
_thebattleye = "Gook Bitch";
};
if (typeof _unit == "SurvivorPartsFemaleWhite") then
{
_thebattleye = "Honky Bitch";
};
if (typeof _unit == "SurvivorPartsFemaleKamila") then
{
_thebattleye = "Bitch";
};
if (typeof _unit == "SurvivorPartsFemaleHenriet") then
{
_thebattleye = "Bitch";
};
if (typeof _unit == "SurvivorPartsFemaleJanaZ") then
{
_thebattleye = "Bitch";
};
if (typeof _unit == "SurvivorPartsFemaleAfrican") then
{
_thebattleye = "Nigga Bitch";
};
if (count _pos2D > 0) then
{
_ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format ['<t size=''0.4'' color=''#8DFF00''>%1 (%2m)</t><t size=''0.4'' color=''#A40000''><br/>%3</t>', name _unit, round (player distance _unit), _thebattleye];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn RacistESP2;
};

