Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

Reply
 
Thread Tools Display Modes
Old 03-06-2009, 10:21 PM   #1
nufan
 
Join Date: Feb 2009
Gametype: Capture the Flag
Posts Rated Helpful 0 Times
conc effect

I'm very new to mapping, and even less experienced in LUA. What I want to know is if it's possible to emulate the conc effect in some manner?

My idea is to make a map for practicing conc aim, so want to be able to make a area on the ground, so when you stand in it you get conced (not necessarily the push effect, just the disorientation). Then I can setup targets around the room of varying size & moving etc to practice hitting over & over till I don't suck :P

Possible?
nufan is offline   Reply With Quote


Old 03-06-2009, 10:29 PM   #2
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 352 Times
Send a message via AIM to squeek.
It's very easy using player:AddEffect( EFFECT, EFFECT_DURATION, ICON_DURATION, SPEED_MULTIPLIER ).
Code:
conc_aim = trigger_ff_script:new({ })

function conc_aim:ontrigger( trigger_entity )
	if IsPlayer(trigger_entity) then
		local player = CastToPlayer(trigger_entity)
		player:AddEffect( EF.kConc, -1, 0, 0 )
	end
end
Put that in your mapname.lua file and make a trigger_ff_script and name it conc_aim.

That'll give you an infinite conc effect whenever you step into the conc_aim trigger.
__________________
#FF.Pickup ยค Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington
squeek. is offline   Reply With Quote


Old 03-06-2009, 10:59 PM   #3
nufan
 
Join Date: Feb 2009
Gametype: Capture the Flag
Posts Rated Helpful 0 Times
Awesome, thanks for that

Unfortunately, now I will have no excuse for rubbish conc aim
nufan 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 04:04 PM.


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