Press Use (e) to follow a player

Post your scripting questions / solutions here

Moderator: Moderators

Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Press Use (e) to follow a player

Post by Krane »

You guys know this, right? In spectator mode, this is the first thing you read, in the bottom of the page.

Where is that? Is this a thread? where is this thread/script? I've been digging the whole thing and didn't find it...

Anyone knows????
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

code

Post by tltrude »

It is probably built into the game engine.
Tom Trude,

Image
LiTe
Corporal
Posts: 34
Joined: Sat Dec 13, 2003 1:07 pm
Contact:

Post by LiTe »

How would you set it up so people cannot actually look around as free spectate and they cannot choose who they follow?
33rd[SS]SCpl.*LiTe*|AD|SP|

"Casualties many; Percentage of dead unknown; Combat efficiency; we're winning."
- Colonel David M. Shoup
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think you can't :(
Image
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

Too bad...I'm making a "screenshooters" mod without anything on the screen so we can take screenshots and don't need to work on PS too much...but I'm affraid the "Press Use" stuff will have to be erased in PS...Well, at least I took the rest out.
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

well what u can do is this, there is a txt file (sorry i forget the name) in mohaas foler. u can add, seta cg_3rdperson view 1 or something like that to it. then when u enter the game u are in 3rd person view. also add cg_showcrosshar 0 (something similar) in there do u dont have a corsshair and viola. u have to enter it in the txt file, if u put it in console, its will say its cheat protected (cuz it is a cheat) ill check back a little later and tell u exactly what to do.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

ui_hud 0 to turn off hud and ui_hud 1 to turn it on
toggle ui_compass to toggle the compass on and off
toggle cg_lagometer to turn lag meter on or off
toggle fps to toggle frames per second showing on screen on or off
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

there ya go bd, thats some of the stuff, ill find the txt document for ya soon sumo. i forgot about it lol sorry.
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

just a silly idea, if you create a black square in front of the players head, and bind it

then script
while (1)
{
for (local.i=1;local.i<=$player.size;local.i++)
{
if ($player[1].dmteam == "spectator")
$black_out show
wait 0.5
}
else
{
$black_out hide
wait 0.5
}
}
hope this helps, prob not cos it's all foreign 2 me :-/
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

neggues, what would that do?
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

omniscient wrote:neggues, what would that do?
who's neggues :P

it would create a blackout to stop spectators following players around the map as Lite asked :D
hope this helps, prob not cos it's all foreign 2 me :-/
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Krane wrote:Too bad...I'm making a "screenshooters" mod without anything on the screen so we can take screenshots and don't need to work on PS too much...but I'm affraid the "Press Use" stuff will have to be erased in PS...Well, at least I took the rest out.
Ah! So your question here is actually: How do I get rid of the the "Press Use (e) to follow a player" text... right?

Well you do like this ( from my Making films with MOH:AA tutorial ) :

How to get rid of the "Press fire to join" message when in spectator mode

This only works server-side so you wont be able to take it off if you don't know the person who runs the server. Although if you're running your own server (want to make a cool demo of your new map) you can edit the 'localization.txt' file. The best way is to create a folder and name it 'global', put this folder into your Main folder. Next step is to get the 'localization.txt' file from your 'Pak0.pk3' . Put this into your 'main/global' folder (create it if it does not exist). Okay so far so good... Now open 'localization.txt' in your text editor and search for "Press fire to join". You'll find two (2) lines of the same and it will look something like this:

Code: Select all

{ "Press fire to join the battle!" "Press fire to join the battle!"}
Now what you have to do is to change the second line, which is the right one. Delete it and replace it with a space character, leaving " " (IMPORTANT! There must be at least one character between the ":s, or MOH:AA will use the default "Press fire to join the battle!") It would look like this:

Code: Select all

{ "Press fire to join the battle!" " "}
That's it! Start your server and nothing will appear when in Spectate mode.
Admin .MAP Forums
Image
Head above heels.
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

Thanks all of you guys for the tips. Bjarne BZR: special thanks m8, I'll get rid of the "Press fire stuff" as you said. Omniscient, the 3rd person thing would be cool, try to find where is this stuff.

But the "Press Use(e)..." stuff is still a mystery. I think is built-in the game, like tltrude said...

Txs again, m8s
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

krane, u can try the same method bjarne said but search for aur string. and i keep forgetting. ill get it to u today.
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

krane, got a present for ya buddy :D go to the mohaa/main folder and look for newconfig.cfg add seta g_3rdpersonview 1 to the bottom. when u enter a game, viola, 3rd person. it is a cheat though so take it off.
Image
Post Reply