Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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


 


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:42 AM.


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