Script "Injection"

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
User avatar
ODD
CJ Wannabe
CJ Wannabe
Posts: 13
Joined: March 14th, 2006, 4:19 am
Location: Illinois, U.S.A.
Contact:

Script "Injection"

Post by ODD » August 6th, 2007, 9:19 pm

Scripting question...

Let's say I finish a map, and 3 months later, my .map file gets erased. Let's also say I had put a few secrets into the map, but I don't remember where my triggers where. I'm wondering if it's possible to write a script, put it in my PK3, and make it find and print the coordinates of the trigger brushmodel.

Any help is appreciated.
Image
ODD

Deadly
CJ Fan
CJ Fan
Posts: 138
Joined: July 14th, 2007, 8:53 pm
Location: New Jersey
Contact:

Post by Deadly » August 6th, 2007, 9:36 pm

i doubt that would work. but what do u want to find the trigger or the brushmodel? what you could do and it MIGHT work, /r_showtris 1 and try to find the trigger.
Image

User avatar
ODD
CJ Wannabe
CJ Wannabe
Posts: 13
Joined: March 14th, 2006, 4:19 am
Location: Illinois, U.S.A.
Contact:

Post by ODD » August 6th, 2007, 9:45 pm

Deadly wrote:but what do u want to find the trigger or the brushmodel?
The brushmodel that acts as the trigger to open the secret.

Like...

Code: Select all

main()
{
thread showCoords();
}

showCoords()
{
trig1 = getent ("trig1", "targetname");
while (1)
{
iprintln( trig1.origin )
}
I know very little of the language... and most of that is probably invalid, but that's just to give you an idea of what I'm trying to do.
Image
ODD

Deadly
CJ Fan
CJ Fan
Posts: 138
Joined: July 14th, 2007, 8:53 pm
Location: New Jersey
Contact:

Post by Deadly » August 6th, 2007, 10:04 pm

lol i didnt know that showtris wouldnt work and lol thats my thread =D
Image

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » August 6th, 2007, 10:06 pm

There was a thread that covered this recently i think. You'll get 0,0,0 for triggers and brushmodel as they don't have an origin on they're own, unless they were given an origin.
Watch this before posting a question: http://www.albinoblacksheep.com/flash/posting.php

Deadly
CJ Fan
CJ Fan
Posts: 138
Joined: July 14th, 2007, 8:53 pm
Location: New Jersey
Contact:

Post by Deadly » August 7th, 2007, 11:15 pm

yo send me the .bsp file i will find and name the corredinits or all the trigs. =]
Image

User avatar
ODD
CJ Wannabe
CJ Wannabe
Posts: 13
Joined: March 14th, 2006, 4:19 am
Location: Illinois, U.S.A.
Contact:

Post by ODD » August 11th, 2007, 1:45 am

What's your XFire?

BTW:

Not my map, the above was merely hypothetical. I'm finding secrets... >_>
Image
ODD

User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Post by YaNo » August 11th, 2007, 12:03 pm

Arrekusuof93 wrote:What's your XFire?

BTW:

Not my map, the above was merely hypothetical. I'm finding secrets... >_>
don't decompile maps :P i tried it at nm_portal, just try to find it yourself :D
i found it at nm_portal without decompile :wink:

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 36 guests