Jump to content
Guest

Updating Epoch Event

Recommended Posts

changed some things new tutorial

 

add this

 

adminadd = adminadd + ["  Hunted Player",huntedPlayer,"0","0","0","1",[0,0.8,1,1]];
adminadd = adminadd + ["  Delete Hunted Marker",delhuntedPlayer,"0","0","0","1",[0,0.8,1,1]];

after

adminadd = adminadd + ["  Teleport To Player",admintele,"0","0","0","1",[0,0.8,1,1]];
huntedPlayer =
{
{
if (name _x == _this select 0) then
{
_pos = getPosATL (vehicle _x);
[_x] spawn playerMark;
hint format ["%1 marked on Map",name _x];
cutText [format["%1 marked on Map",name _x], "PLAIN"];


_savelog = format["%1 Marked %2 on map",name player,_this select 0];
PVAH_WriteLogReq = [_savelog];
publicVariableServer "PVAH_WriteLogReq";
};
} forEach playableUnits;
};
delhuntedPlayer =
{
huntedMarker = false;
publicVariableServer "huntedMarker";
hint format ["Marker will be deleted in the next 2 Min!"];
cutText [format["Marker will be deleted in the next 2 Min!"], "PLAIN"];


_savelog = format["Marker Deleted"];
PVAH_WriteLogReq = [_savelog];
publicVariableServer "PVAH_WriteLogReq";
};
playerMark = 
{
private ["_marked","_marker","_player","_getPosPlayer"];
huntedMarker = true;
publicVariableServer "huntedMarker";
_player = _this select 0;
_getPosPlayer = getPos _player;
_marker = createMarker ["Player", _getPosPlayer];
_marker setMarkerType "mil_destroy";
_marker setMarkerSize [1.25, 1.25];
_marker setMarkerColor "ColorRed";
_marker setMarkerText "Hunted";
_marked = true;
while {_marked} do {
if (!((alive _player) && (huntedMarker))) then {
_marked = false;
};
_getPosPlayer = getPos _player;
_marker setMarkerPos (_getPosPlayer);
sleep 120;
};
deleteMarker _marker;
};

after 

 

admintele =
{
{
if (name _x == _this select 0) then
{
_pos = getPosATL (vehicle _x);
_dir = direction (vehicle _x);
_distance = -1;
if (player != vehicle player) then {_distance = -8;};
_pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),(_pos select 2)];
(vehicle player) setPosATL _pos;
(vehicle player) setDir _dir;
hint format ["Moving to %1",name _x];
cutText [format["Moving to %1",name _x], "PLAIN"];


_savelog = format["%1 Moving to %2",name player,_this select 0];
PVAH_WriteLogReq = [_savelog];
publicVariableServer "PVAH_WriteLogReq";
};
} forEach playableUnits;
};

Share this post


Link to post
Share on other sites
Guest

Looks more like it updates the marker position every 2 minutes and deletes it only when "hunted" is dead.

oh ok thanks. well as i said i am going to test it. Yesterday was a pretty bussy day for me.

Share this post


Link to post
Share on other sites

take the script and save it as playerselect.sqf in your custom folder

private ["_unit","_marker"];
_unit = playableUnits select floor(random count playableUnits);_marker = createMarker ["Player", position _unit];
_marker setMarkerType "mil_destroy";
_marker setMarkerSize [1.25, 1.25];
_marker setMarkerColor "ColorRed";
_marker setMarkerText "Hunted";
while {alive _unit} do {
_marker setMarkerPos (position _unit);
sleep 120;
};

use a menu that is only usable with your (or selected) UID. For info on this look at some info on the forums

 

On the top of my head:

waituntil {!isnull (finddisplay 46)};
sleep 15;
if ((getPlayerUID player) in ["#########","#########"]) then {
playerselect = player addaction [("<t color=""#ff8810"">" + ("Playahselectah") +"</t>"),"custom\playerselect.sqf","",5,false,true,"",""];
} else {
player removeAction playerselect;
};

save this as playerselectmain.sqf and place it in your custom folder

in your init add:

 

[]execvm "custom/playerselectmain.sqf"

 

 

 

 

 

 

 

This is all untested and written whilst at work, so don't might not work but ok

Share this post


Link to post
Share on other sites

is there a way to incorporate DZAI's hunting player with ai? 

 

it would be cool to have ai spawning randomly only after one person, kind of to see how long they can last. 

 

click person > hunt = mark player on map and have dzai ai hunt him till deleted or dead.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
  • Advertisement
  • Supporters
  • Advertisement
  • Discord

×