Looking for a specific SCR file
Moderator: Moderators
-
Lucky Luciano
- Lance Corporal
- Posts: 14
- Joined: Thu Apr 17, 2003 6:04 pm
Looking for a specific SCR file
Does anyone know the specific scr file that controls the localization? Looking for the comand that displays the user name prior to the message. Think it is local.user or something like that maybe ($player). Trying to write a script that needs the player name, but cant figure out how to tell the game to get it. There are alot of commands that are used for a particular instance in reference to the player. (position, time, weapon, stance, etc.) these help the game simulate the actions that take place.
I need the one that calls out the players name.
Please help, I have a nice sister that I can give you! heheheh
-Lucky
I need the one that calls out the players name.
Please help, I have a nice sister that I can give you! heheheh
-Lucky
-
Lucky Luciano
- Lance Corporal
- Posts: 14
- Joined: Thu Apr 17, 2003 6:04 pm
The AI tells the program that xxx was shot by xxx in the xxx. Therefor there MUST be a script (or combination of scripts) that tells the game to print that. It is an action that results in another action. It preforms this action therfor there MUST be a code that handles the player name.
Am I just thinking too much? But if the text appears then in has to be getting the source from something !!??
Basically were does the game get the player name in order to print the death message in that way. How does it know to print that Lucky shot so-and-so?
-Lucky
Am I just thinking too much? But if the text appears then in has to be getting the source from something !!??
Basically were does the game get the player name in order to print the death message in that way. How does it know to print that Lucky shot so-and-so?
-Lucky
you are right there is. But unfortunatly that is in the MOHAA Icon. if you had a tool that can convert binary code back to human readable code then you can find it. But as faar as I know the Code probably costs over a million bucks. And that would take a lot of money just to change the way servers say stuff.
-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
the names are got from the array's given to players, it finds the player number or bot number that killed who and prints that in there, that's the bit you'll need,
then inside the killed.scr you'll find
start local.attacker local.damage local.inflictor local.position local.direction local.normal local.knockback local.dflags local.meansofdeath local.location:
self.fact = local CreateListener
self.fact.attacker = local.attacker
self.fact.damage = local.damage
self.fact.inflictor = local.inflictor
self.fact.position = local.position
self.fact.direction = local.direction
self.fact.normal = local.normal
self.fact.knockback = local.knockback
self.fact.dflags = local.dflags
self.fact.meansofdeath = local.meansofdeath
self.fact.location = local.location
all this stuff, that's what triggers the localization scripts
depending on what u wanna do u could make ur own global.scr and exec it from the level.scr
do i win the sister now?
then inside the killed.scr you'll find
start local.attacker local.damage local.inflictor local.position local.direction local.normal local.knockback local.dflags local.meansofdeath local.location:
self.fact = local CreateListener
self.fact.attacker = local.attacker
self.fact.damage = local.damage
self.fact.inflictor = local.inflictor
self.fact.position = local.position
self.fact.direction = local.direction
self.fact.normal = local.normal
self.fact.knockback = local.knockback
self.fact.dflags = local.dflags
self.fact.meansofdeath = local.meansofdeath
self.fact.location = local.location
all this stuff, that's what triggers the localization scripts
depending on what u wanna do u could make ur own global.scr and exec it from the level.scr
do i win the sister now?
hope this helps, prob not cos it's all foreign 2 me :-/
-
Lucky Luciano
- Lance Corporal
- Posts: 14
- Joined: Thu Apr 17, 2003 6:04 pm
I tried using those, maybe i scripted it wrong, I will take a look at it agian. Good to know that I was looking in the right place. The line self.fact.attacker = local.attacker refers to the atacker but the print script would be println=local.attacker or self.fact.attacker??? And were is the script that tells it to look into the localization. How does it know to find information about the death from that particular file and from the right line?
You are however the closest so far so I give you some of my sisters number (949) 768-xxxx hehehe.
Thanks for the info.
-Lucky
You are however the closest so far so I give you some of my sisters number (949) 768-xxxx hehehe.
Thanks for the info.
-Lucky
-
Lucky Luciano
- Lance Corporal
- Posts: 14
- Joined: Thu Apr 17, 2003 6:04 pm
-
Lucky Luciano
- Lance Corporal
- Posts: 14
- Joined: Thu Apr 17, 2003 6:04 pm
-
Lucky Luciano
- Lance Corporal
- Posts: 14
- Joined: Thu Apr 17, 2003 6:04 pm
-
Lucky Luciano
- Lance Corporal
- Posts: 14
- Joined: Thu Apr 17, 2003 6:04 pm

