03-19-2010, 07:33 PM | #1 |
Join Date: Jul 2007
Location: Staten Island, NY
Class/Position: Offense Gametype: CTF Affiliations: [TALOS] .t5 Posts Rated Helpful 3 Times
|
text
How do I edit screen text? For example when someone on my concmap goes to jump 1. I want it to say on their screen "jump 4, hand held"... I'm sure it has something to do with lua. But, what else do I need?
|
|
03-19-2010, 07:57 PM | #2 |
Banned
Join Date: Sep 2008
Class/Position: Soldier Gametype: AVD Affiliations: TALOS Posts Rated Helpful 5 Times
|
You can use locations for this. Create a brush and apply the trigger texture, cover the area you want to display the message in, ctrl-t to tie it to an entity, and then name it after the location you define in Lua. For example:
Code:
IncludeScript('base_locations') Jump4 = location_info:new({ text = "Jump 4: Hand-Held", team = NO_TEAM }) Jump5 = location_info:new({ text = "Jump 5: Double Conc", team = NO_TEAM }) Jump6 = location_info:new({ text = "Jump 6: Bunnyhop", team = NO_TEAM }) Last edited by Bridget; 03-19-2010 at 08:07 PM. |
|
03-19-2010, 08:11 PM | #3 |
WhenNailGrenWillOut?
Beta Tester
Join Date: May 2009
Gametype: mp_prematch Affiliations: [:)] - Frag Happy, babe| Posts Rated Helpful 29 Times
|
I think he means on the screen? Just place a trigger_multiple and a game_text. Write whatever you want into the game_text and then name it. then go into the trigger multiple and set an output to something like OnStartTouching > your game_text name > show.
If you're talking about the text that appears under your health,armor. Refer to Bridget's post.
__________________
[[ ff_hotfudge - bhop_theonlyone ]] "As the the new year approaches I await for it like an case of explosive fecalomania otherwise know as diareha or the massive shits. I am gripping the sides of the toilet as my stomach produces the first hollow thud out of the anus of the year to come." DarkeN_HellspawN Last edited by moosh; 03-19-2010 at 08:15 PM. |
|
03-19-2010, 08:19 PM | #4 |
Banned
Join Date: Sep 2008
Class/Position: Soldier Gametype: AVD Affiliations: TALOS Posts Rated Helpful 5 Times
|
Locations display on the HUD. If he wants it to just show a quick message on the screen, then he can use what I originally wrote before figuring locations would be a better way of doing things.
Code:
Base_Trigger = trigger_ff_script:new({ message = '', seconds = 5, color = Color.kYellow }) function Base_Trigger:ontouch(touch_entity) if IsPlayer(touch_entity) then local player = CastToPlayer(touch_entity) BroadCastMessageToPlayer(player, self.message, self.seconds, self.color) end end Jump_4_Trigger = Base_Trigger:new({ message = 'Jump 4. Hand Held.', seconds = 5 }) Code:
Name_Here = Base_Trigger:new({ message = 'Message to output here', seconds = float, color = COLOR}) Last edited by Bridget; 03-19-2010 at 08:24 PM. |
|
03-19-2010, 09:53 PM | #5 |
Join Date: Jul 2007
Location: Staten Island, NY
Class/Position: Offense Gametype: CTF Affiliations: [TALOS] .t5 Posts Rated Helpful 3 Times
|
is there any way I can make it so everyone has unlimited concs? So there is no bags? Or does that take the fun out of it? lol
|
|
03-19-2010, 10:21 PM | #6 |
Who the fuck is this guy?
D&A Member
Beta Tester Join Date: Mar 2007
Class/Position: O Preferred Gametype: AvD Affiliations: [AE] Asseaters Posts Rated Helpful 2 Times
|
You can. There a couple of LUAS done for "easy-mode" rocketjumping where you don't need to reload, and of course Squeek DM... I'd assume modifying it for grenades/concs should be similar.
|
|
03-19-2010, 10:30 PM | #7 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
Unlimited concs:
Code:
function restock_all() local c = Collection() -- get all scouts and medics c:GetByFilter({CF.kPlayers, CF.kPlayerScout, CF.kPlayerMedic}) -- loop through all players in the collection for temp in c.items do local player = CastToPlayer( temp ) if player then -- add ammo/health/armor/grens/etc player:AddAmmo( Ammo.kGren2, 4 ) end end end Code:
AddScheduleRepeating( "restock", 1, restock_all )
__________________
#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 |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|