PDA

View Full Version : Official Conc Lua Script - (Updated 9-16-2007)


OneEyed
09-16-2007, 12:30 PM
base_conc - Version 1.1

Description:
The base_conc.lua script allows for a concussion gameplay mode. It plays with 2 teams which are allied so they don't attack each other. Classes allowed are Scout, Medic, Soldier, Demoman, Pyro, and Engineer. Theres also 2 different modes: Race and Freestyle. Race will only allow one person to score per round, which respawns everyone after about 10 seconds. Freestyle will only respawn yourself when you touch endzone.

Mapping Entities:
The following entities must have the corresponding text as their name to become that entity.

info_ff_script:
"concbackpack" - Provides Full Health, Armor, Rockets, and Grenades
"healthbackpack" - Provides only Full Health and Armor

trigger_ff_script:
"trigger_conc" - Brush based Grenade/Health giver.
"endzone" - When player touches this, it qualifies them as finishing the map, then respawns according to CONC_MODE

Map Specific LUA file: - Copy paste this to your mapname.lua and edit accordingly.
------------------------------------------------
IncludeScript("base_conc")

-- Disable/Enable Concussion Effect.
CONC_EFFECT = 0

-- Freestyle / Race modes.
CONC_MODE = CONC_FREESTYLE

-- Race Restart Delay
RESTART_DELAY = 10

-- Points and Frags you receive for touching EndZone.
CONC_POINTS = 110
CONC_FRAGS = 10

-- Disable/Enable classes allowed.
SOLDIER = 0
SCOUT = 1
MEDIC = 1
DEMOMAN = 0
ENGINEER = 0
PYRO = 0

-- Disable/Enable Invunerability
INVUL = 1
------------------------------------------------

Note:
This still has room for improvement, so expect updates in the future. Along with the base_conc.lua, I'm providing a simple conc_map example.
MAKE SURE YOU UNRAR THE FILES!!!

FILES:
base_conc.lua (http://www.soccer-jam.com/base_conc.rar) - [REQUIRED] Goes in FortressForever/maps/includes folder. (Make sure you Unrar it.)


conc_oneeyed_b2 map (http://www.soccer-jam.com/conc_oneeyed_b2.rar) - Test conc map. BETA 2
conc_oneeyed vmf Hammer file (http://www.soccer-jam.com/conc_oneeyed_vmf_source.rar)

sir_frags
09-16-2007, 12:53 PM
LOL.... good job man. This might be one of those things though that will take people a while to catch on to.

Atari
09-16-2007, 01:55 PM
Nice one OneEyed :)

Although I don't have any ammo bags?

Edit: Just tried your map too, and no bags :(

SizeableSSonic
09-16-2007, 03:46 PM
Great job man... it's great to see some of these LUAs for certain gametypes popping up.

Atari
09-16-2007, 03:51 PM
People are crying out for a conc map, even a simple one.

nodnarb
09-16-2007, 04:15 PM
When ever I finally figure mine out...again.., it is going to be ace.

hlstriker
09-16-2007, 05:46 PM
Nice OneEyed, maybe add the Demoman in too since there are a lot of people that like to pipe the maps.

You're the OneEyed from the AMXX forums right? :P

OneEyed
09-16-2007, 06:52 PM
Are the bags not working for you guys?

Atari
09-16-2007, 07:07 PM
Didn't work for me, no :(

I'm running another conc map atm on my server and used your config and had no bags at all.

I tested your config on your demo map and there were no grens on that either.

If I can get that fixed, I'll run your map if thats ok? People really want conc maps at the moment, even basic ones.

Edit: Find me on IRC if you like, #playnice on Quakenet.

OneEyed
09-16-2007, 07:27 PM
Can more people try this out. It works fine for me. Make sure you download the base_conc.lua and have it in your maps/includes folder. Atari says its only working with it in the maps/ folder however.

nodnarb
09-16-2007, 07:29 PM
Are you putting "info_ff_scripts" into your map with the name of "concbackpack"?

I'll try it out in a min.

OneEyed
09-16-2007, 07:35 PM
Yes, thats how the entity script system works.

nodnarb
09-16-2007, 07:54 PM
Yes, thats how the entity script system works.
Yea, just making sure others have done it.

I checked your map and it works fine. I am wandering if people are downloading the include and putting it in the wrong place, or are not downloading it at all. =/

Atari
09-16-2007, 08:02 PM
I have it working on my local machine, but it's not working on my server. No idea why atm.

Edit: My bad, all working now. Didn't have the base_conc.lua in the right folder.

OneEyed
09-16-2007, 09:16 PM
Updated "base_conc.lua" a few minutes ago to allow demoman, enjoy!

Sidd
09-16-2007, 09:28 PM
I really wouldn't call any of your entities "healthkit", especially if you are asking people to include this lua file.

If they include "base_teamplay" as well, then it's fairly random which version of healthkit will actually be used.

OneEyed
09-17-2007, 09:25 AM
UPDATED to v1.1
- Added Invulnerability option.
- Added Class Picking easability for mappers.
- Added new trigger_ff_script entity, "trigger_conc", gives grenades and health.
- Changed "healthkit" to "healthbackpack"
- Fixed being killed when touched endzone on freestyle mode.
- Added Globals for points/frags received when touched endzone.
- Added sounds for when endzone is touched.

- BETA 2 released of conc_oneeyed map. Contains 7 levels now!
- Also updated the vmf file for the map!

Menace
09-17-2007, 10:12 AM
just played it and beated it gj man !!!

wicked_clown420
09-17-2007, 06:18 PM
i was on your server playin it with you :p - beat it using scout, havnt tried much with soldier yet

crazy how you can bhop from the end platform of jump one to the end platform of jump 2 after an HH LOL - or just hh across both jumps 1 and 2 at once - and i noticed on your long jumps that long jumps are gunna have to be alot longer than they were in TFC, as HH concs LAUNCH you now

good map man i posted it on the "Super map list thread" with a link pointing to this forum so that they can get it up on the map list

last jump is so weird tho... you and that M|M guy told me how to do it, and im like wtf that doesnt make sense.... but making sense or no, it works

i like the shortcut 2... reminds me of that juggle jump on concmap_2v2_2

if you plan on adding any more jumps to it please consider this:
http://www.fortress-forever.com/forum/showthread.php?p=270709#post270709
a little concmap jump request i put in

anyways had lots of fun on your map, glad to see people already releasing concmaps :D - looking forward to any future releases you may have

Atari
09-17-2007, 06:22 PM
It's on the rotation at "PlayNice! - Custom Maps :)" FF server if anyone wants to try it out.

85.234.148.34:27015

Lt Llama
09-17-2007, 11:11 PM
Really gj OneEyed and working fine to. It wasnt to hard to finish the map as concer but only one of us managed to do it with solly. Demoman up to last jump. Looking forward to the next beta.

TheWetMule
09-20-2007, 07:57 PM
Wahay, this is great. Nice work :>.

Also, I finished it as sol as well today Llama :), not nearly as hard as I thought after I worked out the map ;)

Just if anybody cares, start a little guild up for rocketing, get things off the bat :) conc_oneeyed is the trial, do it as sol in any means possible aslong as you don't use concs/pipes

Lt Llama
09-21-2007, 11:04 AM
Gj Muleh. I think I wait for the next FF patch when quad will hopefully work, and for Adam to start making FF quad maps :).

wicked_clown420
09-22-2007, 04:52 PM
yes definatly looking forward to some quad maps

MrLoutre
09-24-2007, 08:20 PM
The best of all map, but... I havent the technical than i had 10 ten years ago. I give up at the point looks like a U, how to pass it grrrr :lol:

Demon
09-24-2007, 09:50 PM
could someone link me to the conc_juggleface_b2 lua, i tried searching google, even the whole forum, cant find anything related to it :(

Lt Llama
09-25-2007, 01:03 PM
could someone link me to the conc_juggleface_b2 lua, i tried searching google, even the whole forum, cant find anything related to it :(

http://www.euroskillz.eu/FortressForever/maps/conc_juggleface_b2.lua

Demon
09-25-2007, 02:25 PM
cheers llama, ill give ya a note when i fixed the bags :P

Boogieman117
09-27-2007, 09:30 PM
I installed concpillar_b3 on my machine, and placed the beta_conc.lua in the maps/ folder.

Didn't work. Put concpillar_b3.bsp and the renamed concpillar_b3.lua into the maps/ folder and success.

stino
10-02-2007, 03:17 PM
base conc has problem:

[SCRIPT] Error calling player_spawn ([string "maps/includes/base_conc.lua"]:127: attempt to index local 'player' (a nil value)) ent: NULL
[SCRIPT] Error calling player_spawn ([string "maps/includes/base_conc.lua"]:127: attempt to index local 'player' (a nil value)) ent: NULL
[SCRIPT] Error calling player_spawn ([string "maps/includes/base_conc.lua"]:127: attempt to index local 'player' (a nil value)) ent: NULL
[SCRIPT] Error calling player_spawn ([string "maps/includes/base_conc.lua"]:127: attempt to index local 'player' (a nil value)) ent: NULL

Demon
10-02-2007, 03:20 PM
i havent had a problem with it, works great when i put my home machine as server, putted conc_adam to include the base_conc.lua

HellBringer
10-18-2007, 04:46 AM
you're base_conc.lua doesn't make backpacks.. -.- had to manually do it, and also how do you set respawn time on backpacks to be instant?

Demon
10-18-2007, 09:25 AM
if you know how to set the time, its easy, just set the variable to 0, if not, then i cant help ya, i have no knowledge about FF ents, yet.

public_slots_free
10-18-2007, 02:17 PM
This line.

concbackpack = info_ff_script:new({
health = 200,
armor = 200,
rockets = 50,
gren = 4,
respawntime = 2,

Also, the LUA must be the same name as the map and you must name the ff script right in hammer. If you do both of these things, this LUA works fine. I have used parts of it in 3 different maps.

GeoKill----->
12-07-2007, 10:38 AM
Any Chance of updating this and adding it to the Wiki (http://fortress-forever.com/wiki/Main_Page)

fluffyhamster
10-04-2016, 05:03 AM
Anyone got this still?