Stu?
- {SW}SkyWalker
- Posts: 664
- Joined: Wed Feb 05, 2014 2:46 pm
Re: Stu?
Somebody want to tell me how to put this code in? I'm don't exactly know how you techies do it still learning. And if I change the coding on the autoexe.cs it says windows cannot open this file so I open it with a notepad am I headed in the right direction if so where do I go from there?
No matter how long I stay away from this game I will never forget the stuff this game and community forged onto my heart!
Re: Stu?
Something about that script triggered my OCD, so I rewrote it.
My version makes the first and last message the same, and adds one too the random number if it is greater than or equal to the last message id.
This way, the probabilities for each message are exactly equal, and you don't have to manually number your messages or modify the function every time you add or subtract a message.
Also, it is more efficient, so it will take a fraction of a millisecond less to process.
Maybe you can use that fraction of a millisecond to unstick your throttle.
Code: Select all
EditActionMap("playMap.sae");
function addTaunt(%msg)
{
$taunt0 = %msg;
$taunt[$taunts++] = %msg;
}
addTaunt("DAMMIT! ...I just washed this thing~wcolor6");
addTaunt("That just never stops being funny~wcheer2");
addTaunt("...and that's why they call me THE DEATH PILOT~wtakcovr");
addTaunt("I think I found your liver~wovrhere");
addTaunt("...another victim of THE DEATH PILOT~wtaunt10");
addTaunt("Thanks for flying S']['U A][R!~wcheer3");
addTaunt("SORRY ...You were standing right where I needed to fly~wsorry");
function rndTaunt()
{
%rnd = floor(getRandom() * $taunts);
$lastTaunt = %rnd + ($lastTaunt <= %rnd);
say(0, $taunt[$lastTaunt]);
}
bindCommand(keyboard0, make, "space", TO, "rndTaunt();");
This way, the probabilities for each message are exactly equal, and you don't have to manually number your messages or modify the function every time you add or subtract a message.
Also, it is more efficient, so it will take a fraction of a millisecond less to process.
Maybe you can use that fraction of a millisecond to unstick your throttle.
Last edited by perrinoia on Fri Apr 25, 2014 1:04 pm, edited 4 times in total.
Re: Stu?
I'm left-handed so my keyboard config is definitely non-standard:perrinoia wrote:Space? What do you use to jump/ski?
I keep my mouse on the left side of my keyboard.
I use my arrow keys for movement, so my right CTRL becomes my jump.
I throw grenades with my right ALT.
ENTER and right SHIFT are used to change weapons up and down
perrinoia wrote:Something about that script triggered my OCD, so I rewrote it.
My version makes the first and last message the same, and adds one too the random number if it is greater than or equal to the last message id.
This way, the probabilities for each message are exactly equal, and you don't have to manually number your messages or modify the function every time you add or subtract a message.
Also, it is more efficient, so it will take a fraction of a millisecond less to process.
Maybe you can use that fraction of a millisecond to unstick your throttle.
I'll give it a try and see if there's a difference.
I'd also like to be able to add a few more taunts, but I have no clue on how to add them to the "random" order.
I'm sure Skywalker would appreciate a stand-alone, downloadable version that only requires a line to be added to his autoexec file.
Yes.{SW}SkyWalker wrote:...so I open it with a notepad am I headed in the right direction
copy and paste the code (either mine or perrin's) to the beginning of the text.if so where do I go from there?
Change the taunts to what you want: (type your own text between the first " and the ~for each taunt)
You may want to change the sounds to match your text. the sounds are after the ~and always start with a w.
EXAMPLE: wcheer3 = "Alright!" (can someone post a list of them?)
After you're done, close the autoexec.cs file and save the changes.
EDIT: Perrin, I tried your code and I get nothing
Last edited by S']['U on Thu Apr 17, 2014 12:21 pm, edited 1 time in total.
- {SW}SkyWalker
- Posts: 664
- Joined: Wed Feb 05, 2014 2:46 pm
Re: Stu?
Sounds easy I'll do that and Wow I wouldn't be able to play with your setup I would score -5 a game. And if I use perrs than how do what button do I push to use them?
No matter how long I stay away from this game I will never forget the stuff this game and community forged onto my heart!
Re: Stu?
To use my script, simply modify the lines that start with and end with
Replace the quotes with whatever phrase you want. You can add as many as you want (or until Tribes runs out of memory).
Also, change the keybind at the bottom of the script... The word "space" can be replaced with whichever key you prefer.
The following is a list of voice files that you can append to the end of your messages (after the ~).
Code: Select all
addTaunt("
Code: Select all
");
Also, change the keybind at the bottom of the script... The word "space" can be replaced with whichever key you prefer.
The following is a list of voice files that you can append to the end of your messages (after the ~).
- tgtout
wacknow
wattac2
wattack
wattbase
wattenem
wattobj
wattway
wbasatt
wbasetkn
wbasundr
wbelay
wboarda
wbsclr2
wbye
wcapobj
wcease
wcheer1
wcheer2
wcheer3
wclrflg
wclrobj
wcolor2
wcolor3
wcolor6
wcolor7
wcoverme
wdefbase
wdefend
wdefobj
wdefway
wdepamo
wdepapad
wdepbecn
wdepcam
wdepinv
wdepjamr
wdepmot
wdepobj
wdeppuls
wdeptur
wdeseqip
wdesgen
wdestur
wdoh
wdontkno
wdsgst1
wdsgst2
wdsgst4
wdsgst5
wescfr
wfiretgt
wflaghm
wflgmine
wflgtkm2
wflgtkn1
wflgtkn2
wgendes
wgeteflg
wgetobj
wgodef
wgooff
wgoto
wgoway
whaveflg
whello
whelp
whitdeck
whurystn
wincom2
wisbclr
wisbsclr
wmineclr
wmineflg
wmineobj
wmoveout
wneedamo
wneeddef
wneedesc
wneedpku
wneedrep
wneedtgt
wno
wnoprob
wobjcomp
wobjxcmp
woffflg
wono
woops
woops1
woops2
wordcan
woutway
wovrhere
wpilot
wproceed
wready
wregroup
wrepeqp
wrepitem
wrepobj
wrepplyr
wretflag
wretreat
wsorry
wtakcovr
wtaunt1
wtaunt10
wtaunt2
wtaunt3
wtaunt4
wtautn11
wtgtacq
wtgtobj
wtgtout
wthanks
wturdes
wwait1
wwait2
wwaitpas
wwaitsig
wwatchsh
wwshoot
wwshoot1
wwshoot3
wyes
Re: Stu?
I just tried perrin's code and it didn't work.{SW}SkyWalker wrote:Sounds easy I'll do that and Wow I wouldn't be able to play with your setup I would score -5 a game.
Use my code for now.{SW}SkyWalker wrote:And if I use perrs than how do what button do I push to use them?
Choose a key that isn't being used for anything else.
Enter that key to replace the word space at the end of the code where it says:
bindCommand(keyboard0, make, "space", TO, "RandomTaunt();");
If you still have problems, send me a list of the taunts you want, the voices to go with them and what key you want to activate them with.
I'll edit the code for you.
This would probably be best since your spelling is so bad.
- {SW}SkyWalker
- Posts: 664
- Joined: Wed Feb 05, 2014 2:46 pm
Re: Stu?
1.You Just Got Sky'd
2.I left you a SUPRISE... What's that? ... BOOM!
3.Hide your kid's hide your wife's {SW}SkyWalker is here!
4.Did you just see that? I just... I'm so shocked... I can't even tell you how happy I am!
5.Great Game!
6.Troll King of 2014 Is here!
Tell me if you think of more.
2.I left you a SUPRISE... What's that? ... BOOM!
3.Hide your kid's hide your wife's {SW}SkyWalker is here!
4.Did you just see that? I just... I'm so shocked... I can't even tell you how happy I am!
5.Great Game!
6.Troll King of 2014 Is here!
Tell me if you think of more.
No matter how long I stay away from this game I will never forget the stuff this game and community forged onto my heart!
- {SW}SkyWalker
- Posts: 664
- Joined: Wed Feb 05, 2014 2:46 pm
Re: Stu?
If you mean like tribes voices than male3 otherwise what you think would go best for them and 1 2 3 etc. Numpad
Last edited by {SW}SkyWalker on Thu Apr 17, 2014 4:48 pm, edited 1 time in total.
No matter how long I stay away from this game I will never forget the stuff this game and community forged onto my heart!
Re: Stu?
I think you misunderstand.{SW}SkyWalker wrote:If you mean like tribes voices than male3 otherwise what you think would go best for them and 1 2 3 etc. Numpad
One key activates the taunt.
You have no choice which one is played... that's what RANDOM means.
A different one will play every time you hit the key, but you won't know which one.
By "voice" I mean what do you want the voice to say?
I've already corrected your spelling errors and assigned appropriate voices to each taunt.
You only gave me six taunts and there's room for seven, so I need one more from you.
...and I still need to know what key should trigger it.
Considering that you now know how this works (I hope), you may want to change some of your taunts to something more general.
By "general" I mean you should choose taunts that will all be appropriate whenever you hit the key.
For example: "GREAT GAME!" makes little sense if you hit the key during the middle of the game.