Fortress Forever

Fortress Forever (https://forums.fortress-forever.com/index.php)
-   Lua (https://forums.fortress-forever.com/forumdisplay.php?f=44)
-   -   Official Conc Lua Script - (Updated 9-16-2007) (https://forums.fortress-forever.com/showthread.php?t=11105)

OneEyed 09-16-2007 12:30 PM

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

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

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. =/

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/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 :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


All times are GMT. The time now is 03:30 AM.

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