Jump to content

BaseBattle / PvP HotSpot


Shak

Recommended Posts

BASEBATTLE / PVP HOTSPOT / BATTLEFIELD - WHATEVER YOU WANT TO CALL IT

 

Fk6NBOw.jpg

 

 

This script will spawn in a pre-built collection of buildings, add a marker to the map, alert the players and then finally spawn a loot box after a certain amount of time, which is also announced to the server.

It is very easy to modify the location of the buildings and loot spawns to suit your server.

Each base battle that I've created has multiple sniper and counter sniping areas. 

 

DOWNSIDES / LIMITATIONS

This script requires the 'execute epoch events manually' by Sandbird to run, but I am sure that someone with greater scripting ability then me could make this execute via the epoch events system, or perhaps at server startup.

It would be great if this script detected if a player were nearby and only spawned the loot crate if the area had been 'held' for a certain amount of time. Alas, that's well beyond my level.

The event marker does not show to people who either die or join after the event has started.

The event marker does not delete, it stays until restart. I don't really see that as an issue however, as each .sqf is quite small (7-12kb) and they do contain military buildings to loot.

The loot in the rewards boxes may be unsuitable for your server - But it's very easy to change.

The location of the BaseBattles may clash with your current map additions. I suggest testing these in a test environment before adding to a live server.

This has not been tested on a full / busy server. The sleep 1800 may bother you.

 

Installation.

1. Backup your current files and make a copy.

2. Install Sandbird's excellent script and confirm you have that working.

 

3. Save these files as kamenka.sqf, cherno.sqf and nwcastle.sqf respectively. Add them to your server.pbo/modules folder, where the helicrash and ikea events are.

kamenka.sqf

  Reveal hidden contents

Cherno.sqf

  Reveal hidden contents

nwcastle.sqf

  Reveal hidden contents

4. Edit mission/custom/execute.sqf so that it looks like this

 

  Reveal hidden contents

 

DONE!

Repack, upload your files to your server. Log in, spawn yourself a map_debug. Scroll your mouse, select events. Enjoy.

 

To make your own BaseBattles

1. Make the area for the basebattle in the editor.  Example - Novy Lug MilBase. Make sure to add the lootbox that you want to use for the reward last, I personally use CZBasicWeapons_EP1

2. In your server/modules folder, make a copy of kamenka.sqf. 

3. Rename the copy of kamenka.sqf copy to novylug.sqf

4. Add your custom buildings into novylug.sqf.

5. Edit the marker location and name in novylug.sqf (The first line in the marker section needs to be unique per basebattle). 

6. Edit the Color and text of the announcement.

7. Lastly, edit the weapons box location. This is also where you edit the loot. Take note of where the _this setPos line is, it's at the bottom, different to the rest of the buildings.

  Reveal hidden contents

 

btPLpTh.jpg

 

 

 

 

 

U1cRsgJ.png

 

 

 

 

RuwuLf1.jpg

 

 

 

Credits

Epoch team - legends

DE1000 - Original concept

Killerkiwi - Released something kinda the same which jogged my memory to do this.

Sandbird - His manual execution of events is required to do this.

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
  • 2 weeks later...
  On 6/10/2016 at 6:00 AM, Shak said:

DOWNSIDES / LIMITATIONS

This script requires the 'execute epoch events manually' by Sandbird to run, but I am sure that someone with greater scripting ability then me could make this execute via the epoch events system, or perhaps at server startup.

It would be great if this script detected if a player were nearby and only spawned the loot crate if the area had been 'held' for a certain amount of time. Alas, that's well beyond my level.

The event marker does not show to people who either die or join after the event has started.

The event marker does not delete, it stays until restart. I don't really see that as an issue however, as each .sqf is quite small (7-12kb) and they do contain military buildings to loot.

Expand  
  1. What is actually stopping this from being executed as an Epoch Event?  From a quick glance, I believe you should be able to.  You could even randomly choose which battlefield location spawns.
  2. This is very rough pseudo code, and could be completely incorrect or bad practice, but I believe you could do something along the lines of:
    i = 0;
    while {players are within radius of area} do {
    	waitUntil { _i = _i + 1; _i >= "# in seconds to wait" };
    	create loot box;
    };

     

  3. You can refresh the markers in whatever interval you want by creating a while loop that runs while the event is active (more pseudo code):
    while {EventRunning} do {
    	//create your marker(s)
    	sleep "# in seconds for refresh";
    	//delete your marker(s)
    };

     

  4. To delete the marker you should only have to:
  5. deleteMarker "Marker Name";

     

It's almost 5 in the morning, so if this was completely unintelligible, then please ignore me. xD

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

I got them all fixed thanks. Love it! I have noticed that my markers dont refresh, and if using a debug monitor the message only shows for a split second.

So I changed the messages to this, they work perfect now.

  Reveal hidden contents

 

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
  • Advertisement
  • Discord

×
×
  • Create New...