Keycodes

Keycodes

Re: Keycodes Posted by TealSlut on Tue Dec 20th 2005 at 3:35pm
TealSlut
28 posts
Posted 2005-12-20 3:35pm
TealSlut
member
28 posts 3 snarkmarks Registered: May 29th 2003 Occupation: Pupil Location: England, Leeds
Hey guys. Im back after (one.. two) TWO years! :eek:

Just wondering, how do i do keycodes, EG:

I press 1-3-3-7 on a key pad and it opens the door?

Please help! Thx :biggrin:
Re: Keycodes Posted by Kasc1990 on Fri Dec 23rd 2005 at 12:09am
Kasc1990
32 posts
Posted 2005-12-23 12:09am
Kasc1990
member
32 posts 13 snarkmarks Registered: Dec 20th 2005 Occupation: 8-/ Geek Location: England, Leeds
OK this is going to take a while to explain :smile:

Entities = Green Entity names / values = Yellow Entity parameters = Cyan

First off make your buttons (func_button) of a keypad (1-9) giving them all a name, in this case i'll call them keypad1, keypad2, keypad3 etc...

Set the target of keypad1 to keypad1correct. Set the other targets of all the other buttons to keypadwrong.

This may seem strange but im now going to use trigger_changetarget's for the secequence.

Ok, create two trigger_changetarget's and call them both keypad1correct. Have the target of one as them keypad1 and the new target as keypadwrong, and set the the other one: ([color=cyan]target = keypad3, new target = keypad3onecorrect) ("3one" because we are using two 3's as the correct combination).[/color]

So far we have: Player presses button "1". If he presses any other button nothing happens.

Ok now we need to create the [color=limegreen]trigger_changetarget[/color] for button 3. For this its very similar , we create another trigger_changetarget and set the target = keypad3 to the new target = keypay3twocorrect. Dont forget to name the trigger_changetarget keypad3onecorrect. Only one change target is used because its only effecting one butting since the code goes 3-3.

So far we have: Player presses button "1" and then "3".

Ok this step is almost the same as the first two trigger_changetargets's, make them exactly the same except make them change keypad3's target to keypadwrong and change keypad7's target to triggerobject (Because its the last button to be pressed).

So far we have: Player presses button "1", "3" and then "3".

Now it gets easier :lol: . (Im assuming you know how to make a multi_manager, if not theres a tu on here some where).

Make a multi_mananger called triggerobject which targets's the door that you want to open and keypadwrong all with a time of 0 secs (instant).

Now make 3 more trigger_changetarget's called keypad3. This time they set: (keypad1 = keypad1correct, keypad3 = keypadwrong, keypad7 = keypadwrong).

Right now theres all the other buttons than cancel the process, if you get the code wrong. Just make them all target keypadwrong! And we are done!

If the player presses "1" then "3" then "3" and finally "7" the mulit_manager makes the code reset while targeting your door.

I hope this helped. And if anyone notices a problem with this, PLEASE DO SAY.
Re: Keycodes Posted by Underdog on Fri Dec 23rd 2005 at 1:05am
Underdog
1018 posts
Posted 2005-12-23 1:05am
Underdog
member
1018 posts 102 snarkmarks Registered: Dec 12th 2004 Occupation: Sales-Construction Location: United States
^^<sup>points</sup> up^^^

If that turns out to be legit, someone needs to make it into a tutorial for next time.
There is no history until something happens, then there is.
Re: Keycodes Posted by Kasc1990 on Fri Dec 23rd 2005 at 10:49am
Kasc1990
32 posts
Posted 2005-12-23 10:49am
Kasc1990
member
32 posts 13 snarkmarks Registered: Dec 20th 2005 Occupation: 8-/ Geek Location: England, Leeds
Underdog said:
^^<SUP>points</SUP> up^^^

If that turns out to be legit, someone needs to make it into a tutorial for next time.
I'm planning to, im going to test it out today, and tweak it abit.
Re: Keycodes Posted by G.Ballblue on Sun Dec 25th 2005 at 6:19am
G.Ballblue
1511 posts
Posted 2005-12-25 6:19am
1511 posts 211 snarkmarks Registered: May 16th 2004 Occupation: Student Location: A secret Nuclear Bunker on Mars
^^<sup>points</sup> up^^^

If that turns out to be legit, someone needs to make it into a tutorial for next time.
Indeed. I wanted to make an algebraic equation in my map internet,
involving symbols, numbers and letters :biggrin: but this is not exactly
what I would call an "easy read" :razz:
Breaking the laws of mapping since 2003 and doing a damn fine job at it
Re: Keycodes Posted by Dark|Killer on Sun Dec 25th 2005 at 6:29am
Dark|Killer
758 posts
Posted 2005-12-25 6:29am
758 posts 225 snarkmarks Registered: Dec 22nd 2004 Occupation: Student Location: Dubai (Middle East)
G.Ballblue...

I love you Genius !!
.::Dark|Masta::. - One name. One legend.
Re: Keycodes Posted by Kasc1990 on Sun Jan 1st 2006 at 1:20pm
Kasc1990
32 posts
Posted 2006-01-01 1:20pm
Kasc1990
member
32 posts 13 snarkmarks Registered: Dec 20th 2005 Occupation: 8-/ Geek Location: England, Leeds
Teal, is that wrong, its been a while, and i spent i while thinking about that while writing it. Please make this right/wrong...
Re: Keycodes Posted by [Dixi]*Orange on Sat Apr 1st 2006 at 1:59pm
[Dixi]*Orange
2 posts
Posted 2006-04-01 1:59pm
2 posts 10 snarkmarks Registered: Apr 1st 2006 Location: Germany
Hello,

can somebody tell me the key for the doors in the level surf_hawk? :confused:

I don?t know them and i would like to go into the rooms :cry:

please write back. :smile:

thank you,

Yours [Dixi]*Orange

:rolleyes:
Re: Keycodes Posted by Elon Yariv on Sat Apr 1st 2006 at 3:16pm
Elon Yariv
130 posts
Posted 2006-04-01 3:16pm
130 posts 63 snarkmarks Registered: Mar 4th 2006
Keys!!!

Do you mean keypads(code) or a key that you use to open doors?
Next start a new thread for your problem.(if it's not answered)

Edit:

What the heck? This isn't even a mapping question! :rocketwhore:
Elon Yariv
Re: Keycodes Posted by ReNo on Sat Apr 1st 2006 at 3:20pm
ReNo
5457 posts
Posted 2006-04-01 3:20pm
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
I'm afraid thats not the sort of question these forums are for Orange - this is a forum for asking level design questions, not questions about gameplay of existing levels. You could ask in the general forums, but I highly doubt you'll get any answer to a question like this on this website. I don't think we have many fans of surf maps here to be honest. Good luck finding the code or whatever it is you need though :smile:
[img]http://card.mygamercard.net/sig/Default/reno84.png[/img]
Designer @ Haiku Interactive | ReNo-vation.net
Re: Keycodes Posted by Orpheus on Sat Apr 1st 2006 at 3:27pm
Orpheus
13860 posts
Posted 2006-04-01 3:27pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
ReNo said:
. I don't think we have many fans of surf maps here to be honest. Good luck finding the code or whatever it is you need though :smile:
Not many, but a few. I have seen the topic a time or two.

Yeah.. Good luck with it and... Welcome to Snarkpit.

The best things in life, aren't things.
Re: Keycodes Posted by Andrei on Sat Apr 1st 2006 at 7:56pm
Andrei
2455 posts
Posted 2006-04-01 7:56pm
Andrei
member
2455 posts 1248 snarkmarks Registered: Sep 15th 2003 Location: Bucharest, Romania
noclip?