Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

Reply
 
Thread Tools Display Modes
Old 09-16-2007, 01:30 PM   #1
OneEyed
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Official Conc Lua Script - (Updated 9-16-2007)

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 - [REQUIRED] Goes in FortressForever/maps/includes folder. (Make sure you Unrar it.)


conc_oneeyed_b2 map - Test conc map. BETA 2
conc_oneeyed vmf Hammer file

Last edited by OneEyed; 09-17-2007 at 11:16 AM.
OneEyed is offline   Reply With Quote


Old 09-16-2007, 01:53 PM   #2
sir_frags
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
LOL.... good job man. This might be one of those things though that will take people a while to catch on to.
sir_frags is offline   Reply With Quote


Old 09-16-2007, 02:55 PM   #3
Atari
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
Nice one OneEyed

Although I don't have any ammo bags?

Edit: Just tried your map too, and no bags

Last edited by Atari; 09-16-2007 at 03:06 PM.
Atari is offline   Reply With Quote


Old 09-16-2007, 04:46 PM   #4
SizeableSSonic
Joystick Junkie
D&A Member
 
SizeableSSonic's Avatar
 
Join Date: Mar 2007
Location: I know where YOU live!
Class/Position: Engineer or Sniper
Gametype: CTF
Posts Rated Helpful 0 Times
Send a message via AIM to SizeableSSonic Send a message via MSN to SizeableSSonic
Great job man... it's great to see some of these LUAs for certain gametypes popping up.
__________________
I like chocolate milk.
SizeableSSonic is offline   Reply With Quote


Old 09-16-2007, 04:51 PM   #5
Atari
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
People are crying out for a conc map, even a simple one.
Atari is offline   Reply With Quote


Old 09-16-2007, 05:15 PM   #6
nodnarb
 
Join Date: Mar 2007
Posts Rated Helpful 5 Times
When ever I finally figure mine out...again.., it is going to be ace.
nodnarb is offline   Reply With Quote


Old 09-16-2007, 06:46 PM   #7
hlstriker
QUAD ROCKET
Server Owner
Fortress Forever Staff
 
hlstriker's Avatar
 
Join Date: Jul 2007
Class/Position: Soldier
Gametype: Rocket Jumping
Affiliations: -g1 ]qS[ -eC- :e0: [ESAD]
Posts Rated Helpful 11 Times
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
hlstriker is offline   Reply With Quote


Old 09-16-2007, 07:52 PM   #8
OneEyed
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Are the bags not working for you guys?
OneEyed is offline   Reply With Quote


Old 09-16-2007, 08:07 PM   #9
Atari
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
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.
Atari is offline   Reply With Quote


Old 09-16-2007, 08:27 PM   #10
OneEyed
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
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.
OneEyed is offline   Reply With Quote


Old 09-16-2007, 08:29 PM   #11
nodnarb
 
Join Date: Mar 2007
Posts Rated Helpful 5 Times
Are you putting "info_ff_scripts" into your map with the name of "concbackpack"?

I'll try it out in a min.
nodnarb is offline   Reply With Quote


Old 09-16-2007, 08:35 PM   #12
OneEyed
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Yes, thats how the entity script system works.
OneEyed is offline   Reply With Quote


Old 09-16-2007, 08:54 PM   #13
nodnarb
 
Join Date: Mar 2007
Posts Rated Helpful 5 Times
Quote:
Originally Posted by OneEyed
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. =/
nodnarb is offline   Reply With Quote


Old 09-16-2007, 09:02 PM   #14
Atari
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
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.

Last edited by Atari; 09-16-2007 at 09:31 PM.
Atari is offline   Reply With Quote


Old 09-16-2007, 10:16 PM   #15
OneEyed
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Updated "base_conc.lua" a few minutes ago to allow demoman, enjoy!
OneEyed is offline   Reply With Quote


Old 09-16-2007, 10:28 PM   #16
Sidd
Lua Team
 
Join Date: Mar 2007
Posts Rated Helpful 1 Times
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.
Sidd is offline   Reply With Quote


Old 09-17-2007, 10:25 AM   #17
OneEyed
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
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!
OneEyed is offline   Reply With Quote


Old 09-17-2007, 11:12 AM   #18
Menace
 
Menace's Avatar
 
Join Date: Jun 2007
Location: Den Haag , Holland
Class/Position: Medic , offense
Affiliations: PoW , +M|M+ , BoS , `phd
Posts Rated Helpful 0 Times
just played it and beated it gj man !!!
Menace is offline   Reply With Quote


Old 09-17-2007, 07:18 PM   #19
wicked_clown420
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
i was on your server playin it with you - 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/foru...709#post270709
a little concmap jump request i put in

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

Last edited by wicked_clown420; 09-17-2007 at 07:49 PM.
wicked_clown420 is offline   Reply With Quote


Old 09-17-2007, 07:22 PM   #20
Atari
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
It's on the rotation at "PlayNice! - Custom Maps " FF server if anyone wants to try it out.

85.234.148.34:27015
Atari is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:22 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.