Deathmatch PVP Scenario 0.6

This is the place to share custom user maps, scenarios, and campaigns.
User avatar
LotA
Fast Inserter
Fast Inserter
Posts: 117
Joined: Fri Oct 10, 2014 11:41 am
Contact:

Deathmatch PVP Scenario 0.6

Post by LotA »

Last iteration : V0.6, 2016-12-17

This map is a deathmatch arena featuring :
- Free for all : each player has his own force. that means there is a technical limit of 61 maximum concurrent players
- Chests with random respawning loots
- Random spawning position
- Ranking & leaderboard
- Admin gui to configure things ingame such as length of round (default 10 kills) the chest respawn delay etc

Standalone scenario : does not need any mod

Screenshot
v0.6
v0.5
v0.4
The scripts can be edited to easily fit any map one would create
Create you own arena map then copy the control.lua and edit it.
simply change the variable arena_box to fit your arena size and you're good to go
The script will generate random spawn point (you can either specify an array of position)
The script will use any chests in the map as loot spawn, loot tables are easily customable

Possible To do list :
- auto pickup chests when close (probably too cpu-heavy for the benefit) a solution would be to spawn items on ground but i think its lacks visibility
- Gui rework
Changelog
Criticism, suggestions and feedback are welcome.
ffa-arena-0.6.zip
(52.9 KiB) Downloaded 186 times
ffa-arena-0.5.zip
(51.6 KiB) Downloaded 178 times
ffa-arena-0.4.zip
(40.08 KiB) Downloaded 175 times
Last edited by LotA on Tue Dec 20, 2016 1:12 am, edited 3 times in total.
akyuky
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Dec 09, 2016 12:44 pm
Contact:

Re: Deathmatch PVP Scenario 0.5

Post by akyuky »

When i add chest there is a error. It shows that for i=1 #global.chest_table[tier] do. What is wrong what i must change to add new chests ?
User avatar
LotA
Fast Inserter
Fast Inserter
Posts: 117
Joined: Fri Oct 10, 2014 11:41 am
Contact:

Re: Deathmatch PVP Scenario 0.5

Post by LotA »

Near the beginning of the control.lua is the chest_loot_table definition, it should be like this :
code
In order to add a chest to the map simply edit this variable to meet your needs

So for example if you want to add the iron chest to the map and set it so that it spawns 1 laser turret then the chest_loot_table should look like this :
code
You can of course edit/remove steel and wooden chest

Once you've added a chest to the loot table, you'll also need to specify its default settings : respawn delay and initial spawn delay
check for these lines :
code

After that it should work, the chest type will appear on the admin gui and its delay settings will be editable ingame
Post Reply

Return to “Maps and Scenarios”