03-06-2009, 10:21 PM | #1 |
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? |
|
03-06-2009, 10:29 PM | #2 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
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 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 |
|
03-06-2009, 10:59 PM | #3 |
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 |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|