Jump to content

[Re-release] Admin hunt v0.3


5nine

Recommended Posts

What is it?
- An admin controlled mission. Admins can, whenever they like, start an Admin Hunt which puts a marker on the admin and tells other player about it using a hint similar to #SEM announcements. If the Admin feels threatened he can call for reinforcements which spawns 3 AI's which will then follow him around.

What is currently included/what are the features?

- Called by any admin specified in the admin list
- Gives players a marker on the map named "Adminhunt: (admin name)"

- Admins can call for reinforcements which spawns in 3 AI helpers. 

- Can, at any time, be stopped by the admin who started it.

- Gives players different hints depending on mission status ("started", "called for reinforcements", "stopped" and "admin killed")

- Supports multiple missions run in parallel (each admin can start their own mission)

 

Why Re-release? What has changed?

the old version was completely client side, which made it much harder to get it to work, with BE filter etc. In this version the AI's spawn serverside. This also includes a better function to get the scroll option to stay.

 

Known Issues?

None, but it is not tested on a server with high player count. 

 

BE filters?

Included in the Readme.

 

Epoch Anti Hack?

This has been tested and works with Epoch AH. 

 

Install instructions: 

https://github.com/5nine/NibbleGaming_AdminHunt

 

 

Still dont get what this is?

(sry about the lag/choppy video, I had my recording settings too high)

 

Support or questions?

Post a reply in this topic. please don't PM me. 

 

Credits:

BetterDeadThanZed: for coming up with this great Idea!

KiloSwiss: for creating #SEM. where i got some ideas for AI functions and hints. 

rems_be: for having a different solution

The Entire NibbleGaming community: for help with testing, testing and testing. They also helped me alot with testing....

Link to comment
Share on other sites

I needed add following to scripts.txt BE filters.

7 removeAllWeapons !"this"
7 removeAllItems !"this"
7 removeBackpack !"this"



7 createGroup !"_AIGroup = createGroup RESISTANCE;"






7 deleteMarker !="_markeradmin"
7 setMarker "_markeradmin"

publicvariable.txt

5 !="NibbleHint"

And i stucked in remoteexec.log with this:

 

07.03.2015 10:05:19: xx - #0 "removeUniform this;
                        removeHeadgear this;
                        removeBackpack this;
                        removeallitems this;
                        removeAllWeapons this;
                        this forceAddUniform 'U_NikosAgedBody';
                        this addVest 'V_Press_F';
                        this addHeadgear 'H_Hat_grey';
                        this addMagazines ['11Rnd_45ACP_Mag', 3];
                        this addWeapon 'hgun_Pistol_heavy_01_F';
                        this addHandgunItem 'optic_MRD';
                        this addMagazines ['1Rnd_HE_Grenade_shell', 2];
                        this enableAI 'TARGET';
                        this enableAI 'AUTOTARGET';
                        this enableAI 'MOVE';
                        this enableAI 'ANIM';
                        this enableAI 'FSM';
                        this call EPOCH_server_savePlayer;
                        EPOCH_TEMPOBJ_PVS = this;
                        publicVariableServer 'EPOCH_TEMPOBJ_PVS';
                         Machinegunner = this; this addWeapon 'LMG_Zafir_F'; this addMagazines ['150Rnd_762x51_Box_Tracer',3]; this addPrimaryWeaponItem 'optic_Arco'; this selectWeapon 'LMG_Zafir_F';"

Link to comment
Share on other sites

I needed add following to scripts.txt BE filters.

7 removeAllWeapons !"this"
7 removeAllItems !"this"
7 removeBackpack !"this"



7 createGroup !"_AIGroup = createGroup RESISTANCE;"






7 deleteMarker !="_markeradmin"
7 setMarker "_markeradmin"

publicvariable.txt

5 !="NibbleHint"

And i stucked in remoteexec.log with this:

 

07.03.2015 10:05:19: xx - #0 "removeUniform this;

                        removeHeadgear this;

                        removeBackpack this;

                        removeallitems this;

                        removeAllWeapons this;

                        this forceAddUniform 'U_NikosAgedBody';

                        this addVest 'V_Press_F';

                        this addHeadgear 'H_Hat_grey';

                        this addMagazines ['11Rnd_45ACP_Mag', 3];

                        this addWeapon 'hgun_Pistol_heavy_01_F';

                        this addHandgunItem 'optic_MRD';

                        this addMagazines ['1Rnd_HE_Grenade_shell', 2];

                        this enableAI 'TARGET';

                        this enableAI 'AUTOTARGET';

                        this enableAI 'MOVE';

                        this enableAI 'ANIM';

                        this enableAI 'FSM';

                        this call EPOCH_server_savePlayer;

                        EPOCH_TEMPOBJ_PVS = this;

                        publicVariableServer 'EPOCH_TEMPOBJ_PVS';

                         Machinegunner = this; this addWeapon 'LMG_Zafir_F'; this addMagazines ['150Rnd_762x51_Box_Tracer',3]; this addPrimaryWeaponItem 'optic_Arco'; this selectWeapon 'LMG_Zafir_F';"

 were you logged in as infi admin at that moment?

 

I might have to do a serverside function for spawning the AI..

Link to comment
Share on other sites

For those running a headless client, this ability is already included with FuMS.

 

Nice work putting together a non-hc version.

 

Horbin, can you elaborate on that a bit, do you mean the admin hunt ability is part of FUMS? If so how do we enable that?

Link to comment
Share on other sites

R4Ziel,

   Currently under FuMS, admins (or whomever you grant access too) have the ability to start stop Themes (which can be single missions) and kill individual missions.  

 

I sent you a PM to not take this thread off topic.

Link to comment
Share on other sites

Ok this may be a really dumb question but I can't seem to figure this one out. I believe I have installed this correctly, but I can't figure out how to access the admin hunt option in the scroll menu. I was able to one time seemingly by a lucky key-smash, but was never able to recreate it. Is there a certain key I need to hold while scrolling? I have added the admins correctly to the list of player ids, I have added the correct lines to init, and I have added the files into the pbo in the correct place.

Link to comment
Share on other sites

With some inputs from Kilo and Face, the following seems to be a pretty reliable way of adding 'addactions'.

waitUntil{!isNull (uiNameSpace getVariable ["EPOCH_loadingScreen", displayNull])};
waitUntil{isNull (uiNameSpace getVariable "EPOCH_loadingScreen")};

//waituntil {!isnull (finddisplay 46)};
//waituntil {player == player};
sleep 10;
player addaction [("<t color=""#1376e5"">" + ("FuMS Admin") +"</t>"),FuMS_AdminMenu,"",5,false,true,"",""];    

while {true} do 
{
    waitUntil {!alive player};
    // uh oh...
    waitUntil {alive player};
    player addaction [("<t color=""#1376e5"">" + ("FuMS Admin") +"</t>"),FuMS_AdminMenu,"",5,false,true,"",""];       
};        

not even sure the sleep 10 is needed, but after adding the wait's to look for the drop in the loadscreen interface, things seem to be a lot more reliable.

Of note  ***I am told****  addaction is an autoban under most security addons, so if you want this functionality for the general player, there is probably a little more work to be done.

Link to comment
Share on other sites

Alright well thanks for responding, luckily I only need the addaction for admins. I had to make some modifications as I am not using this for the FuMS admin menu, just the admin hunt. I will test it out tomorrow. In the original code given by 5nine, is it necessary to have "nibblemenu = player addaction" or would it just be easier to do "player addaction"?

 

Edit: I ask this because in the code you have presented it is simply "player addaction"

 

Double Edit: here is the editted version of your code, based off of 5nine's code, does it look correct?

waitUntil{!isNull (uiNameSpace getVariable ["EPOCH_loadingScreen", displayNull])};
waitUntil{isNull (uiNameSpace getVariable "EPOCH_loadingScreen")};
sleep 10;
if (getPlayerUID player in [
/*-------specify your admins below -----*/
"7xxxxxxxxxxxxxxx",
"7xxxxxxxxxxxxxxx" //no comma at last entry
]) then {
	nibblemenu = player addaction [("" + ("Admin menu") +""),"scripts\nibbleadmin\adminhunt.sqf","",-97,false,false,"",""];   
	while {true} do 
	{
	waitUntil {!alive player};
	// uh oh...
	waitUntil {alive player};
	nibblemenu = player addaction [("" + ("Admin menu") +""),"scripts\nibbleadmin\adminhunt.sqf","",-97,false,false,"",""];          
	};      
};
Link to comment
Share on other sites

darkclaw, that looks about right, try it and report back please.

You need 'nibblemenu =' because we want to remove the addaction once you click it, if you look inside adminhunt.sqf among the first things that happens is 'player removeAction nibblemenu;'

Link to comment
Share on other sites

 were you logged in as infi admin at that moment?

 

I might have to do a serverside function for spawning the AI..

 

 

Alright well thanks for responding, luckily I only need the addaction for admins. I had to make some modifications as I am not using this for the FuMS admin menu, just the admin hunt. I will test it out tomorrow. In the original code given by 5nine, is it necessary to have "nibblemenu = player addaction" or would it just be easier to do "player addaction"?

 

Edit: I ask this because in the code you have presented it is simply "player addaction"

 

Double Edit: here is the editted version of your code, based off of 5nine's code, does it look correct?

waitUntil{!isNull (uiNameSpace getVariable ["EPOCH_loadingScreen", displayNull])};
waitUntil{isNull (uiNameSpace getVariable "EPOCH_loadingScreen")};
sleep 10;
if (getPlayerUID player in [
/*-------specify your admins below -----*/
"7xxxxxxxxxxxxxxx",
"7xxxxxxxxxxxxxxx" //no comma at last entry
]) then {
	nibblemenu = player addaction [("" + ("Admin menu") +""),"scripts\nibbleadmin\adminhunt.sqf","",-97,false,false,"",""];   
	while {true} do 
	{
	waitUntil {!alive player};
	// uh oh...
	waitUntil {alive player};
	nibblemenu = player addaction [("" + ("Admin menu") +""),"scripts\nibbleadmin\adminhunt.sqf","",-97,false,false,"",""];          
	};      
};

hello, thank for shared. ;)

 

PB BE 

#27 " removeBackpack this;
removeallitems this;
removeAllWeapons this;
this forceAddUniform 'U_NikosAgedBody';  :(  :(  :(
Link to comment
Share on other sites

 were you logged in as infi admin at that moment?

 

I might have to do a serverside function for spawning the AI..

 

 were you logged in as infi admin at that moment?

 

I might have to do a serverside function for spawning the AI..

.

Link to comment
Share on other sites

I am not currently logged in as infistar admin as we don't have infistar yet :( new server, havent invested in that yet

 

Its not something you HAVE to invest in either, I would wait some time, Im sure the epoch devs will open up the entire mod a bit more as soon as they leave alpha

Link to comment
Share on other sites

After testing this script out, using the built in init file is crap.

use/add the on player respawn files and on player killed file in your mission pbo to ensure add and removal.

However with this script as is the menus double and triple up allowing for multiple spawning in of reinforcements and if mission canceled only the last 3 ai are deleted and the rest kill you. lol

But all in all thanks for the share and I might modify it to work properly and post it up

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...