1up Clan Forums

[1upZ] => Zombie Info => Topic started by: TurbanError on August 15, 2011, 05:14:25 AM

Title: Novice Guide to "Fast Knife"
Post by: TurbanError on August 15, 2011, 05:14:25 AM
Because it was asked of me, and I have thought about adding this topic to the zombie bomb forum in the past; I wanted to go over a feature in Zombie Bomb, ts, and Super ts.  Namely, the ability to use your knife quickly, without the limitations of the knife animation.  This is a feature in the named servers, and will not work in all servers.  I will do my best to explain this as plainly and concisely as possible (starting with the simpilist of idea, and working to more complicated). 

So how does one get a fast knife?

Scrolling
Spoiler:  All About Scrolling (click to show/hide)

Scripting

So, you stabbed a bit, got excited, your zombie game improved by 100%, but everything else that relies on the attack command (switching in spec, autos) you now lack control over.  So what do you do? 

Organization and Implementation
Spoiler: organization (click to show/hide)

If your getting a index.php on the attachement just rename it to what the file should be or download from here:
http://www.mediafire.com/?5lnzli0v7i9ndic (http://www.mediafire.com/?5lnzli0v7i9ndic)
Title: Re: Novice Guide to "Fast Knife"
Post by: Replay on August 15, 2011, 10:28:54 AM
Nice, but I already have the best knife script for my fps
Title: Re: Novice Guide to "Fast Knife"
Post by: Gautch on August 15, 2011, 11:11:16 AM
Yay for Turban :D
Title: Re: Novice Guide to "Fast Knife"
Post by: BoBThEImaM on August 15, 2011, 12:17:01 PM
Lol doesnt seem like much until u hit those spoilers, then, holy crap thats a lot :D .  Good work but already got my knife perfect.
Title: Re: Novice Guide to "Fast Knife"
Post by: Replay on August 15, 2011, 01:35:20 PM
Lol doesnt seem like much until u hit those spoilers, then, holy crap thats a lot :D .  Good work but already got my knife perfect.
Whats your fps?
Title: Re: Novice Guide to "Fast Knife"
Post by: BoBThEImaM on August 15, 2011, 09:01:08 PM
91-92
Title: Re: Novice Guide to "Fast Knife"
Post by: SnKcoffee on August 15, 2011, 09:08:23 PM
Why not just use a mouse with scripting? This way you can use a wait command and it won't stop all input in urt. The problem is cooking nades, but there are probably work arounds. This is probably illegal in most leagues.
Title: Re: Novice Guide to "Fast Knife"
Post by: TurbanError on August 15, 2011, 10:06:18 PM
Why not just use a mouse with scripting? This way you can use a wait command and it won't stop all input in urt. The problem is cooking nades, but there are probably work arounds. This is probably illegal in most leagues.

Well, this wouldn't for league play because your knife is limited to the normal attack animation in league play.  What I described is how to utilize a feature of the 1upservers.  If you look under the organization and implementation spoiler you will notice that I address the issue of using a bind button to switch your binds mid game (like a toggle, on/off) so you would be able to cook your nade and fast knife when needed. 

You are correct, using a mouse that has form of auto scroll or scripting language, would be an advantage over the wait commands.  Since, I personally do not own such a mouse (nor my drivers support that) I explained how to do it with only the urt client.
Title: Re: Novice Guide to "Fast Knife"
Post by: Wargasm on August 16, 2011, 03:10:41 AM
Ugh, hate the fact that zombies can scroll knife or script on 1up zombie servers. I don't want to be a whiny *****, but I will for the sake of expressing myself lmao. People who argue that taking it out would screw zombies don't realize that blue can always be nerfed to compensate. Not to mention it could be taken out and the game would still prob be balanced.
Title: Re: Novice Guide to "Fast Knife"
Post by: Zhalix[1up] on August 16, 2011, 08:33:30 AM
No.
Title: Re: Novice Guide to "Fast Knife"
Post by: BoBThEImaM on August 16, 2011, 12:48:55 PM
Scrolling is fine tbh.  And The servers are pretty balanced atm...
Title: Novice Guide to "Fast Knife"
Post by: rondonboy on August 16, 2011, 05:49:34 PM
I'm gonna stick to good old scrolling :)
Title: Re: Novice Guide to "Fast Knife"
Post by: Wargasm on August 16, 2011, 10:29:15 PM
Lol I got -2 karma for criticizing 1up servers for fast knife..
Title: Re: Novice Guide to "Fast Knife"
Post by: TurbanError on August 16, 2011, 11:02:20 PM
Better add some karma  :P 

I do understand the criticism of fast knife, since not everyone knows how to do it, it makes a vast gap when determining balance.  But it is also one of the fundamental parts of the zombie server.  Someone correct me if I am wrong, but it is my understanding that both zombie servers are/were originally set up so that zombies shouldn't have to worry about aim, only getting to the enemy, while humans need to be more skilled at shooting specific body parts and running for there life.  Zombies mindless, Humans mindful.  So in that regard, I enjoy fast knife.  Also it doesn't feel like a nerf bringing a knife to a gun fight.

Hopefully those who are using a basic knife will see this and take a bit of time figuring out what works for them.  I feel like playing without it, especially in bomb, you become a living pinball people just push around till death.

Title: Re: Novice Guide to "Fast Knife"
Post by: Wargasm on August 16, 2011, 11:51:45 PM
I agree, but with scripting I feel that you take away another facet of concentration zombie players don't have to worry about so they can put all their energy into look the direction of their enemy and jumping to catch their enemy.

I would say that it is an APM factor or "actions per minute". It is commonly referred to in Starcraft because players with high apm often have the ability to concentrate on several things at the same time and maintain upwards of 200+ apm. Why does this matter with zombie mode? Humans probably need to master several times the apm of a zombie player, switching between weapons, aiming at body parts, cooking grenades, jumping and evading zombies while doing all that. Zombie players with a knife script essentially have to do two things. Jump to reach the enemy, and look in the general direction of the human prey. That makes it that much easier for zombies as they don't have to do as much multitasking, they can focus on just killing.

Lol, I came back and lost another -2 karma. I don't understand who would do such a thing to me for voicing an opinion?
Title: Re: Novice Guide to "Fast Knife"
Post by: Zhalix[1up] on August 17, 2011, 12:09:16 AM
I agree, but with scripting I feel that you take away another facet of concentration zombie players don't have to worry about so they can put all their energy into look the direction of their enemy and jumping to catch their enemy.
That's exactly how we want the zombie team to play.

Why does this matter with zombie mode? Humans probably need to master several times the apm of a zombie player, switching between weapons, aiming at body parts, cooking grenades, jumping and evading zombies while doing all that.
That's exactly how we want the human team to play.

Zombie players with a knife script essentially have to do two things. Jump to reach the enemy, and look in the general direction of the human prey. That makes it that much easier for zombies as they don't have to do as much multitasking, they can focus on just killing.
Precisely.

Lol, I came back and lost another -2 karma. I don't understand who would do such a thing to me for voicing an opinion?
As opposed to you doing nothing...?
Title: Re: Novice Guide to "Fast Knife"
Post by: Fantom on August 17, 2011, 12:20:36 AM
Holy crao! I always thought that script for zombies was hard and ihave been looking for ir for like ever thanks turban u are a beast!
Title: Re: Novice Guide to "Fast Knife"
Post by: Wargasm on August 17, 2011, 12:24:43 AM
I agree, but with scripting I feel that you take away another facet of concentration zombie players don't have to worry about so they can put all their energy into look the direction of their enemy and jumping to catch their enemy.
That's exactly how we want the zombie team to play.

Why does this matter with zombie mode? Humans probably need to master several times the apm of a zombie player, switching between weapons, aiming at body parts, cooking grenades, jumping and evading zombies while doing all that.
That's exactly how we want the human team to play.

Zombie players with a knife script essentially have to do two things. Jump to reach the enemy, and look in the general direction of the human prey. That makes it that much easier for zombies as they don't have to do as much multitasking, they can focus on just killing.
Precisely.

Lol, I came back and lost another -2 karma. I don't understand who would do such a thing to me for voicing an opinion?
As opposed to you doing nothing...?

What do you mean "as opposed to you doing nothing...?". I literally lost 5 karma for saying "scripting imo is cheap". Whatever, it's cool, just thought it was funny I got the -karma for saying what I said.
Title: Re: Novice Guide to "Fast Knife"
Post by: Stella on October 25, 2011, 05:26:23 PM
wargasm chill...i give u 1 karma xD
nd also to turban...thanks it is veru useful  :D
Title: Novice Guide to "Fast Knife"
Post by: Lancers09 on October 25, 2011, 07:11:18 PM
I am not a fan of script. HOWEVER, is there a way for the script to work only in zombie server so I don't got to go and change everything when I play at superTS?
That would be awesome


Sent from my iPod touch using tapatalk
(why do we write these?)
Title: Re: Novice Guide to "Fast Knife"
Post by: p$yKo on October 25, 2011, 07:17:28 PM
Nice post Turban Error! Now people won't accuse me of scripting just because I have fast knife ( I use the first method).

How do you find out your fps?
Don't we set our fps in the setting?
Title: Re: Novice Guide to "Fast Knife"
Post by: AuXAuV on October 25, 2011, 11:22:40 PM
Hey Psyko, setting your attack to scroll wheel? That's a script.
Scripts are simply singular or chains of commands to be executed
on an event (like key press).

Stop the misinformation!
Title: Re: Novice Guide to "Fast Knife"
Post by: TurbanError on October 26, 2011, 01:15:10 AM
Thanks everyone.  I just want everyone to play a zombies and utilize the features of the server as they make a huge difference in game play.

I am not a fan of script. HOWEVER, is there a way for the script to work only in zombie server so I don't got to go and change everything when I play at superTS?
That would be awesome

If you check out the last section of the guide it shows how to make a bind that will essentially reset your binds.  In this case, I have "z" bound to change all my binds to the ones I use as a zombie, it also echoes back to me that I am in "zombie mode" and when I hit "x" it resets all the binds to how I want them as a human or all the time.  To make this even simpler and better for super ts you could bind "1" as a recursive script.  Hitting it once draws a knife and rebinds your attacks for the scripted fast knife.  Then hitting 1 again will go back to your previous weapon and change the attack command to normal.  You just have to remember that you can't scroll out of knife, you need to hit 1 again.

How do you find out your fps?
Don't we set our fps in the setting?
You can find your fps on your heads up display on your screen.  By default it is located in the upper right hand corner by your timer.  FPS is how many frames your computer can render in a second, it also used as a timeline for game actions (everything with a duration is measured in fps).  Certain situations can cause your fps to drop, like lots of smoke nades and your gpu not being able to render them properly, taking more time to render each frame, slowing your game down. 

While you can't set your fps, you can set a maximum number and your computer won't try to render higher.  Two reasons why this is a benefit.  First your computer isn't working as hard, doesn't heat up, ect.  More importantly, if you have a script that has a wait time and your fps fluctuates, the actual time (minutes and seconds) will be longer if your fps (frames per second) drop.  Also there is a theory on packets of information and fps and certain fps maximums are better than others.
Title: Re: Novice Guide to "Fast Knife"
Post by: p$yKo on October 26, 2011, 07:50:32 AM
@Ruusan

Oh I didn't know that...Sorry :p

I DO USE SCRIPTS! :D XD
Title: Re: Novice Guide to "Fast Knife"
Post by: TurbanError on October 31, 2011, 11:43:18 AM
I call setting 1 key to do 1 command a "bind" and setting 1 key to do multiple commands a "script".  So if you bind your scroll wheel to +attack; -attack, that is a script, but scroll wheel to +attack is a bind.  Mainly because you can bind in the settings of urt, but scripts usually have to be done in configs.

But that's really just splitting hairs... oh semantics  :-[
Title: Re: Novice Guide to "Fast Knife"
Post by: (DEAD) Revolution on December 24, 2011, 09:05:52 PM
yeah thanks for your idea. i find this extremely interesting. although i consider myself a very experienced zombie, im extremely noob at scripting. i get very annoyed having to change scripts everytime i switch from red to blue, or blue to red.

When i go to human team (blue) with a fast knife script, i can't change my weapons and im stuck with one wepon in my hand. number keys are useless because in zombie you have more than one main and secondary weapons and weapons come out random.

When i go to zombie (red) with a weapon switch script, i dont have the advantage of fast knifing. , so i find myself constantly having to type in another script to change it from this to that, and on and on every time i switch teams which is very tiring and annoying.

but your script told me that you can switch from both fast knife to human with one push of a button. WOW  :omg: but even though i read your post very thoroly, i dont completely understand what to type in the urt console.  :|  :-\  :o i know you were just explaining what is happening, but it's because of that why i'm confused what to type.

could someone please tell me what to type in the console? like no explanation, just a straight forward line by line command im supposed to type. sort of like what im about to show at the bottom.

PS, the script below is an untested script from an unexperienced beginner (me).
What it's supposed to do is when i press Z, it will say "zombie mode activated" and the scroll wheel will be attack commands (for fast knifing). when i press X it will say "human mode activated" and the scroll wheel will for switching weapons instead. i dont know if it works. it may have a few gimiks and mistakes or somthing i didnt add. could someone tell me if this would work? and any feed back, suggestion and improvement is very helpful and appreciated. thanks for your time.

/set exec zombie.cfg "bind MWHEELUP +attack; -attack; +attack; -attack"
/set exec zombie.cfg "bind MWHEELDOWN +attack; -attack; +attack; -attack"
/set exec human.cfg "bind MWHEELUP weapon prev"
/set exec human.cfg "bind MWHEELDOWN weapon next"
/bind Z "exec zombie.cfg; ut_echo "Zombie Mode Activated";"
/bind X "exec human.cfg; ut_echo "Human Mode Activated";"
Title: Re: Novice Guide to "Fast Knife"
Post by: TurbanError on December 24, 2011, 09:26:17 PM
Its slightly more involved than typing something in the console.  The method I use keeps a human mode config file and a zombie mode config file in the urt/q3ut folder and then binding a key to alternate from running one script or the other. 

There are three cfg (text files readable with a text editor) files attached to the initial post, these file go into your q3ut folder (you can copy and paste what is in the autoexec into your autoexec.cfg if you already have binds set up in there).

The autoexec holds the "switch" bind that says when pressing z or x it will change your binds and echo back which mode is active.

The zombie and human.cfg hold the specific zombie and human binds.  You can put whatever you like just as long as you know that bind one function on one side needs a bind on the other.  Example:  In the Zombie side I included a script that changes to your throwing knife and lowers your fov (the poor mans zoom).  Because I used the command for change weapon mode I need to put the bind on the human side (and its set to default with n changing weapon mode) since the weapon mode function can only be bound to one key at a time.  I don't have urt or ts3 untill January 5th, but that should be the jist.  Just change the zombie cfg binds to wheelup/down or whatever you like.
Title: Re: Novice Guide to "Fast Knife"
Post by: Zangetsu on December 24, 2011, 09:26:43 PM
yeah thanks for your idea. i find this extremely interesting. although i consider myself a very experienced zombie, im extremely noob at scripting. i get very annoyed having to change scripts everytime i switch from red to blue, or blue to red.

When i go to human team (blue) with a fast knife script, i can't change my weapons and im stuck with one wepon in my hand. number keys are useless because in zombie you have more than one main and secondary weapons and weapons come out random.

When i go to zombie (red) with a weapon switch script, i dont have the advantage of fast knifing. , so i find myself constantly having to type in another script to change it from this to that, and on and on every time i switch teams which is very tiring and annoying.

but your script told me that you can switch from both fast knife to human with one push of a button. WOW  :omg: but even though i read your post very thoroly, i dont completely understand what to type in the urt console.  :|  :-\  :o i know you were just explaining what is happening, but it's because of that why i'm confused what to type.

could someone please tell me what to type in the console? like no explanation, just a straight forward line by line command im supposed to type. sort of like what im about to show at the bottom.

PS, the script below is an untested script from an unexperienced beginner (me).
What it's supposed to do is when i press Z, it will say "zombie mode activated" and the scroll wheel will be attack commands (for fast knifing). when i press X it will say "human mode activated" and the scroll wheel will for switching weapons instead. i dont know if it works. it may have a few gimiks and mistakes or somthing i didnt add. could someone tell me if this would work? and any feed back, suggestion and improvement is very helpful and appreciated. thanks for your time.

/set exec zombie.cfg "bind MWHEELUP +attack; -attack; +attack; -attack"
/set exec zombie.cfg "bind MWHEELDOWN +attack; -attack; +attack; -attack"
/set exec human.cfg "bind MWHEELUP weapon prev"
/set exec human.cfg "bind MWHEELDOWN weapon next"
/bind Z "exec zombie.cfg; ut_echo "Zombie Mode Activated";"
/bind X "exec human.cfg; ut_echo "Human Mode Activated";"

The commands DO NOT go into Urban Terrors console.

What you do is go to your Urban Terror folder and open q3urt. Then find the entry that says autoexec.cfg. Open this and copy the script and paste it there. Save it and your done. Then press the toggle key to switch between modes.
Title: Re: Novice Guide to "Fast Knife"
Post by: (DEAD) Revolution on December 26, 2011, 04:50:09 PM
ahh ok thank you both. i kinda understand. but is the script i wrote correct does it have any mistakes that will not make it work? does it have any errors in it? WIL IT WORK?  ;) so you are saying that (if it works) i just need to copy and paste the whole script into the autoexec.cfg thing, save it, and the next time i go zombie and press z or x it will work? ahaaa sweet  :P :D
Title: Re: Novice Guide to "Fast Knife"
Post by: TurbanError on December 26, 2011, 05:30:54 PM
For starters, when your working in the cfg files you don't need a "/" to show a command. 

Quote
/set exec zombie.cfg "bind MWHEELUP +attack; -attack; +attack; -attack"
/set exec zombie.cfg "bind MWHEELDOWN +attack; -attack; +attack; -attack"
/set exec human.cfg "bind MWHEELUP weapon prev"
/set exec human.cfg "bind MWHEELDOWN weapon next"
/bind Z "exec zombie.cfg; ut_echo "Zombie Mode Activated";"
/bind X "exec human.cfg; ut_echo "Human Mode Activated";"

There are more than a few things wrong with your set of scripts and will not work.  For starters read this (http://www.urbanterror.info/support/108-/).

Here is whats wrong.  The "set" command defines a step in a recursive script.  The "exec" command runs an external file. Set and Exec should not be on the same line unless your step is to execute an external file.  You are also missing " symbols and I often put ; as a good habit to get into. 

Recursive scripts are a method of organization (grouping commands together and being able to toggle through them).  Making an external cfg is another method of organization (requiring a bind to activate the external file).

What you want looks like this:

In your Autoexec.cfg file:
Code: [Select]
//Main zombie, human switch
bind z "exec zombie.cfg; ut_echo "Zombie Mode Activated";"
bind x "exec human.cfg; ut_echo "Human Mode Activated";"

In your human.cfg file:
Code: [Select]
//Normal Weapon Scrolling
bind MWHEELUP "weapon prev;"
bind MWHEELDOWN "weapon next;"

//Normal Firing
bind MOUSE1 "+attack;"

Note: We rebind +attack as the key it would have been bindined to (wheelup/down) is no longer bound to that in human mode.

In your zombie.cfg
Code: [Select]
//Fast knife Scroll
bind MWHEELUP "+attack; -attack; wait #; +attack; -attack;"
bind MWHEELDOWN "+attack; -attack; wait #; +attack; -attack"

Note you will need to change the # symbol to a value based on your fps or be happy with dropped commands (not a bad option).  Also, I don't think your can have your +attack - attack bound to two separate keys at the same time... I am away on holidays so I won't be able to test, I would bet this makes only wheeldown with the attack routine.  For this reason mouse1 will probably not work for a single attack and was rebound in the human cfg.

Also, if you look at the original post I explain that this is an ok method, but lacks usability when you need to swap to your throwing knife.  Refer to the original post for more info, otherwise this should get you started.

because of that weird index.php glitch on attachments I reattached and made a megaupload of the 3 cfg files in the first post.
Title: Re: Novice Guide to "Fast Knife"
Post by: AuXAuV on December 26, 2011, 09:19:22 PM
The "set" command defines a step in a recursive script. 

Wrong.
First off, it's not recursive, it's just looped, USUALLY.
Second, it's just a variable, that may be a step in a script.
Title: Re: Novice Guide to "Fast Knife"
Post by: (DEAD) Revolution on December 26, 2011, 11:46:22 PM
thank you TurbanError[1up] for the:

Code: [Select]
//Main zombie, human switch
bind z "exec zombie.cfg; ut_echo "Zombie Mode Activated";"
bind x "exec human.cfg; ut_echo "Human Mode Activated";"

In your human.cfg file:
Code: [Select]
//Normal Weapon Scrolling
bind MWHEELUP "weapon prev;"
bind MWHEELDOWN "weapon next;"

In your zombie.cfg
Code: [Select]
//Fast knife Scroll
bind MWHEELUP "+attack; -attack; wait #; +attack; -attack;"
bind MWHEELDOWN "+attack; -attack; wait #; +attack; -attack"

i did have a look at http://www.urbanterror.info/support/108-/ (http://www.urbanterror.info/support/108-/) before i posted on this. some use, except it doesnt tell you how to link the z and x with two completely different scripts.

ok lets just say all the scripts above, i copied and pasted it into the autoexec.cfg under the file urban terror. i still get the feeling that when i pressed z the system will say 'zombie more activated' but will not change the mwhweel to attack. why? because the part of the script where it links them together is missing. so far in your words, i now have the mwheel and the z and x sorted out. but what i didnt sort out yet is how these two are linked. (there is no script for that)

and the part about the #, that i should put in a number depending on my fps, if my ingame fps was 94, what number should i put in the #?... 94??

PS. on your next post could you put in the complete codes for me to just copy and paste into the autoexec.cfg and will just work? remember, (press z. system says zombie mode activated. mousewheel up and down becomes attacks..... press x. system says human mode activated. mousewheel up and down switches weapons) could you put in ONE BIG, COMPLETE code to make this happen? thank you.
Title: Re: Novice Guide to "Fast Knife"
Post by: AuXAuV on December 27, 2011, 02:44:17 AM
A block of code, alright.
Code: [Select]
bind x "vstr n_tog"

//Do not change anything below this line unless you know
//what you are doing.

//Declare settings
//---------------------------------------------------------------------------
seta zombie_m1 "weapnext"
seta zombie_mu "+attack; -attack; wait 1; +attack; -attack"
seta zombie_md "+attack; -attack"

seta human_m1 "+attack; set next_mouse1 vstr zombie_mouse1"
//Note: swap weapnext/weapprev if desired. Not everyone
//goes the same way.

seta human_mu "weapnext"
seta human_md "weapprev"
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
seta m1 "vstr human_m1"
seta mu "vstr human_mu"
seta md "vstr human_md"
//---------------------------------------------------------------------------

//Set the binds for mouse control.
bind MOUSE1 "vstr m1"
bind MWHEELUP "vstr mu"
bind MWHEELDOWN "vstr md"

//Set toggle
seta tog1 "set m1 vstr zombie_m1; set mu vstr zombie_mu; set md vstr zombie_md; ut_echo ^1Zombie ^7Mode Active.; set n_tog vstr tog2"
seta tog2 "set m1 vstr human_m1; set mu vstr human_mu; set md vstr human_md; ut_echo ^4Human ^7Mode active.; set n_tog vstr tog1"
seta n_tog "vstr tog1"

Pressing "x" (or whatever you change it to)
Will swap your controls.
Copy this into your autoexec.cfg if you want.

(controls:
Human Mouse1 fire, mwheel to swap weaps.
Zombie Mouse1 next weapon, mouse wheel to attack)
Title: Re: Novice Guide to "Fast Knife"
Post by: Term on December 27, 2011, 08:08:59 AM
A block of code, alright.
Code: [Select]
bind x "vstr n_tog"

//Do not change anything below this line unless you know
//what you are doing.

//Declare settings
//---------------------------------------------------------------------------
seta zombie_m1 "weapnext"
seta zombie_mu "+attack; -attack; wait 1; +attack; -attack"
seta zombie_md "+attack; -attack"

seta human_m1 "+attack; set next_mouse1 vstr zombie_mouse1"
//Note: swap weapnext/weapprev if desired. Not everyone
//goes the same way.

seta human_mu "weapnext"
seta human_md "weapprev"
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
seta m1 "vstr human_m1"
seta mu "vstr human_mu"
seta md "vstr human_md"
//---------------------------------------------------------------------------

//Set the binds for mouse control.
bind MOUSE1 "vstr m1"
bind MWHEELUP "vstr mu"
bind MWHEELDOWN "vstr md"

//Set toggle
seta tog1 "set m1 vstr zombie_m1; set mu vstr zombie_mu; set md vstr zombie_md; ut_echo ^1Zombie ^7Mode Active.; set n_tog vstr tog2"
seta tog2 "set m1 vstr human_m1; set mu vstr human_mu; set md vstr human_md; ut_echo ^4Human ^7Mode active.; set n_tog vstr tog1"
seta n_tog "vstr tog1"

Pressing "x" (or whatever you change it to)
Will swap your controls.
Copy this into your autoexec.cfg if you want.

(controls:
Human Mouse1 fire, mwheel to swap weaps.
Zombie Mouse1 next weapon, mouse wheel to attack)

I don't know whats wrong with this but human mode doesn't work. The only way to fire your weapon is to hit t then hit enter or to open the console and close it again. Also when you do that to get the weapon to fire it never stops.
Just keeps on firing until the clip/slip is unloaded and just keep dry firing. You can't even change weapons after you fire the one time.
 :|
Title: Re: Novice Guide to "Fast Knife"
Post by: TurbanError on December 27, 2011, 03:54:49 PM
The "set" command defines a step in a recursive script. 

Wrong.
First off, it's not recursive, it's just looped, USUALLY.
Second, it's just a variable, that may be a step in a script.

When else would you define a variable in urt?  Usually when your defining a step in a recursive script.  Guides to scripting call them recursive scripts (http://www.urbanterror.info/support/108-/#1.5), there is no need to change terminology, especially when recursive and loop are so similar.

and the part about the #, that i should put in a number depending on my fps, if my ingame fps was 94, what number should i put in the #?... 94??

This will take some trial and error on your part.  I run fps 125 and have my wait at 9 with no command dropping.  Since your scrolling, it is ok to have some commands drop, since you don't NEED the wait time.  If my math is right, somewhere around 6 will leave you with no dropped commands, but even try it without wait time and see if its your thing.  Trial and error.


PS. on your next post could you put in the complete codes for me to just copy and paste into the autoexec.cfg and will just work? remember, (press z. system says zombie mode activated. mousewheel up and down becomes attacks..... press x. system says human mode activated. mousewheel up and down switches weapons) could you put in ONE BIG, COMPLETE code to make this happen? thank you.

Everything you need is in my previous post for you to copy and paste for what you want. My bind setup is on the first post for dl and you can just drop into your q3urt folder.  My code is slightly less complicated than ruusan's block of code (which I assume is more of a joke, term).

You need 3 separate files.  Your auto exec, your zombie.cfg and your human.cfg as explained in the first post.  When the game loads it will load your autoexec.cfg by default but not the other two.  Your auto exec has a key bound to running one of the other cfg files (which in turn changes your binds).

the command: /exec "name.cfg"

Runs a script that has the name.cfg.  If you were to type in /exec "autoexec.cfg" the autoexec binds would be loaded (when urt starts, this is part of the commands that happen when urt starts).  Instead of typing that in the console I bound them to a key (since you will be switching back and forth), namly z and x.  This is the reason bind x "exec human.cfg;" is in your auto exec.  This is also why you have two separate cfg files to easily overwrite your current binds with which mode (zombie or human) you want to be in.

Hopefully this makes sense, the code that you want are already there.  Otherwise you can wait till after January 5th and chat with me on ts3.
Title: Re: Novice Guide to "Fast Knife"
Post by: TurbanError on December 27, 2011, 05:05:53 PM
thank you TurbanError[1up] for the:

Code: [Select]
//Main zombie, human switch
bind z "exec zombie.cfg; ut_echo "Zombie Mode Activated";"
bind x "exec human.cfg; ut_echo "Human Mode Activated";"

In your human.cfg file:
Code: [Select]
//Normal Weapon Scrolling
bind MWHEELUP "weapon prev;"
bind MWHEELDOWN "weapon next;"

In your zombie.cfg
Code: [Select]
//Fast knife Scroll
bind MWHEELUP "+attack; -attack; wait #; +attack; -attack;"
bind MWHEELDOWN "+attack; -attack; wait #; +attack; -attack"

Note this current script is missing +attack bind for huaman mode.  Which means human mode doesn't have a method to fire a weapon. 
Note: We rebind +attack as the key it would have been bindined to (wheelup/down) is no longer bound to that in human mode.

Each cfg file overwrites the previous one.  When you set your scroll to attack it takes that function away from any other button that had it and then you overwrite that to be previous and next weapon, you essentially leave the attack command floating in the abyss.  It doesn't rebind to mouse 1, which is why that is in human mode.
Title: Re: Novice Guide to "Fast Knife"
Post by: ShadowSkittles on December 27, 2011, 06:34:58 PM
"Novice Guide to Fast Knifing, Skittles version" learn to spam click, and be happy  8)
Title: Re: Novice Guide to "Fast Knife"
Post by: AuXAuV on December 27, 2011, 09:47:57 PM
A block of code, alright.
Code: [Select]
bind x "vstr n_tog"

//Do not change anything below this line unless you know
//what you are doing.

//Declare settings
//---------------------------------------------------------------------------
seta zombie_m1 "weapnext"
seta zombie_mu "+attack; -attack; wait 1; +attack; -attack"
seta zombie_md "+attack; -attack"

seta human_m1 "+attack; set next_mouse1 vstr zombie_mouse1"
//Note: swap weapnext/weapprev if desired. Not everyone
//goes the same way.

seta human_mu "weapnext"
seta human_md "weapprev"
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
seta m1 "vstr human_m1"
seta mu "vstr human_mu"
seta md "vstr human_md"
//---------------------------------------------------------------------------

//Set the binds for mouse control.
bind MOUSE1 "vstr m1"
bind MWHEELUP "vstr mu"
bind MWHEELDOWN "vstr md"

//Set toggle
seta tog1 "set m1 vstr zombie_m1; set mu vstr zombie_mu; set md vstr zombie_md; ut_echo ^1Zombie ^7Mode Active.; set n_tog vstr tog2"
seta tog2 "set m1 vstr human_m1; set mu vstr human_mu; set md vstr human_md; ut_echo ^4Human ^7Mode active.; set n_tog vstr tog1"
seta n_tog "vstr tog1"

Pressing "x" (or whatever you change it to)
Will swap your controls.
Copy this into your autoexec.cfg if you want.

(controls:
Human Mouse1 fire, mwheel to swap weaps.
Zombie Mouse1 next weapon, mouse wheel to attack)

I don't know whats wrong with this but human mode doesn't work. The only way to fire your weapon is to hit t then hit enter or to open the console and close it again. Also when you do that to get the weapon to fire it never stops.
Just keeps on firing until the clip/slip is unloaded and just keep dry firing. You can't even change weapons after you fire the one time.
 :|

Whoops, hate writing in the forum post box,
Code: [Select]
bind x "vstr n_tog"

//Do not change anything below this line unless you know
//what you are doing.

//Declare settings
//---------------------------------------------------------------------------
seta zombie_m1 "weapnext"
seta zombie_mu "+attack; -attack; wait 1; +attack; -attack"
seta zombie_md "+attack; -attack"

seta human_m1 "+attack"
//Note: swap weapnext/weapprev if desired. Not everyone
//goes the same way.

seta human_mu "weapnext"
seta human_md "weapprev"
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
seta m1 "vstr human_m1"
seta mu "vstr human_mu"
seta md "vstr human_md"
//---------------------------------------------------------------------------

//Set the binds for mouse control.
bind MOUSE1 "vstr m1"
bind MWHEELUP "vstr mu"
bind MWHEELDOWN "vstr md"

//Set toggle
seta tog1 "set m1 vstr zombie_m1; set mu vstr zombie_mu; set md vstr zombie_md; ut_echo ^1Zombie ^7Mode Active.; set n_tog vstr tog2"
seta tog2 "set m1 vstr human_m1; set mu vstr human_mu; set md vstr human_md; ut_echo ^4Human ^7Mode active.; set n_tog vstr tog1"
seta n_tog "vstr tog1"

That should work. For obvious reasons, I can't double check.
Title: Re: Novice Guide to "Fast Knife"
Post by: (DEAD) Revolution on December 27, 2011, 11:01:12 PM
Whoops, hate writing in the forum post box,
Quote
Code: [Select]
bind x "vstr n_tog"

//Do not change anything below this line unless you know
//what you are doing.

//Declare settings
//---------------------------------------------------------------------------
seta zombie_m1 "weapnext"
seta zombie_mu "+attack; -attack; wait 1; +attack; -attack"
seta zombie_md "+attack; -attack"

seta human_m1 "+attack"
//Note: swap weapnext/weapprev if desired. Not everyone
//goes the same way.

seta human_mu "weapnext"
seta human_md "weapprev"
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
seta m1 "vstr human_m1"
seta mu "vstr human_mu"
seta md "vstr human_md"
//---------------------------------------------------------------------------

//Set the binds for mouse control.
bind MOUSE1 "vstr m1"
bind MWHEELUP "vstr mu"
bind MWHEELDOWN "vstr md"

//Set toggle
seta tog1 "set m1 vstr zombie_m1; set mu vstr zombie_mu; set md vstr zombie_md; ut_echo ^1Zombie ^7Mode Active.; set n_tog vstr tog2"
seta tog2 "set m1 vstr human_m1; set mu vstr human_mu; set md vstr human_md; ut_echo ^4Human ^7Mode active.; set n_tog vstr tog1"
seta n_tog "vstr tog1"

That should work. For obvious reasons, I can't double check.

ahh i managed to test out your script but sorry to burst your bubble but.. theres something wrong with it.
on red team it works absolutely perfectly. But the most problematic part is the human team. you can switch weapons yes. but if you just shoot ONCE on your first shot, on ANY weapon, after the first shot it wont shoot again. for example: i used a sr8 for my first shot. (BOOM/ reload/ gun never is ready for next shot.) same thing for the shotgun. (BOOM/ reload/ reload freezes/ gun is never ready for next shot.) i tried switching to a different gun using my scroll wheel but only one gun appears which is the gun you fired your first shot with, and you guessed it, still not ready for its next shot. no other gun appears. i tried reloading clips in the lr after exiting and reattempting. (Reload/ reload freezes halfway/ gun is never ready for next shot.) so i am basically stuck with no guns to fire after the first shot on human team. but AuXAuV farr out man, that is one helluva script right there. but remember, a complicated script comes with very annoying problems if something's wrong. is there a possibility that you can downsize this script into a more simpler one?

PS:
The gun will only fire when you open up the console, then close. also when you press t to talk and then enter.
funny thing heppened to me when i tested out the script. in game i typed "dont kill me im testing out my script" to the reds cuz they kept camping (not that i cared). the moment i hit enter, my shotgun whent BOOM to a red's face. they though i tricked them and they killed me xD >:(


PPS: TURBAN ERROR for an odd reason i cant access the mediafire thing. could you just put in your script word for word? kinda like what AuXAuV wrote? i think thats the easiest way.

thanks for the help everyone :D ;)
Title: Re: Novice Guide to "Fast Knife"
Post by: TurbanError on December 28, 2011, 01:47:51 AM
PPS: TURBAN ERROR for an odd reason i cant access the mediafire thing. could you just put in your script word for word? kinda like what AuXAuV wrote? i think thats the easiest way.

What you want looks like this:

In your Autoexec.cfg file:
Code: [Select]
//Main zombie, human switch
bind z "exec zombie.cfg; ut_echo "Zombie Mode Activated";"
bind x "exec human.cfg; ut_echo "Human Mode Activated";"

In your human.cfg file:
Code: [Select]
//Normal Weapon Scrolling
bind MWHEELUP "weapon prev;"
bind MWHEELDOWN "weapon next;"

//Normal Firing
bind MOUSE1 "+attack;"

Note: We rebind +attack as the key it would have been bindined to (wheelup/down) is no longer bound to that in human mode.

In your zombie.cfg
Code: [Select]
//Fast knife Scroll
bind MWHEELUP "+attack; -attack; wait #; +attack; -attack;"
bind MWHEELDOWN "+attack; -attack; wait #; +attack; -attack"


Quoting myself twice=end of my help.  Not trying to be mean, there is only so many times I can tell you the answer to your question.
Title: Re: Novice Guide to "Fast Knife"
Post by: AuXAuV on December 28, 2011, 06:55:59 PM
--snip--

ahh i managed to test out your script but sorry to burst your bubble but.. theres something wrong with it.
on red team it works absolutely perfectly. But the most problematic part is the human team. you can switch weapons yes. but if you just shoot ONCE on your first shot, on ANY weapon, after the first shot it wont shoot again. for example: i used a sr8 for my first shot. (BOOM/ reload/ gun never is ready for next shot.) same thing for the shotgun. (BOOM/ reload/ reload freezes/ gun is never ready for next shot.) i tried switching to a different gun using my scroll wheel but only one gun appears which is the gun you fired your first shot with, and you guessed it, still not ready for its next shot. no other gun appears. i tried reloading clips in the lr after exiting and reattempting. (Reload/ reload freezes halfway/ gun is never ready for next shot.) so i am basically stuck with no guns to fire after the first shot on human team. but AuXAuV farr out man, that is one helluva script right there. but remember, a complicated script comes with very annoying problems if something's wrong. is there a possibility that you can downsize this script into a more simpler one?

PS:
The gun will only fire when you open up the console, then close. also when you press t to talk and then enter.
funny thing heppened to me when i tested out the script. in game i typed "dont kill me im testing out my script" to the reds cuz they kept camping (not that i cared). the moment i hit enter, my shotgun whent BOOM to a red's face. they though i tricked them and they killed me xD >:(


PPS: TURBAN ERROR for an odd reason i cant access the mediafire thing. could you just put in your script word for word? kinda like what AuXAuV wrote? i think thats the easiest way.

thanks for the help everyone :D ;)

It fails because the Frozen Sands dev team sucks,
I forgot how frustrating their work is.

Well, the simplest is 2 configs, human and zombie, that have an exec toggle.
Code: [Select]
bind x "vstr toggle_mode"
seta toggle_mode "vstr zombie_mode"
seta zombie_mode "set toggle_mode vstr human_mode; exec zombie.cfg; echo ^1Zombie ^6Mode Active."
seta human_mode "set toggle_mode vstr zombie_mode; exec human.cfg; echo ^4human ^6Mode Active."
However, that's what Turban has been trying to tell you the whole time.
Title: Re: Novice Guide to "Fast Knife"
Post by: (DEAD) Revolution on December 29, 2011, 01:48:48 AM
lol
Title: Novice Guide to "Fast Knife"
Post by: Lancers09 on December 29, 2011, 03:15:47 AM
I am against scripting. But what choice do I got with pingers these days.

Can you recommend how many +attack.
My fps is around 78-99 fps.
My ping is almost always 68-76

Thanks


Sent from my iPod touch using tapatalk
(why do we write these?)
Title: Re: Novice Guide to "Fast Knife"
Post by: TurbanError on December 29, 2011, 03:17:15 PM
Well, the simplest is 2 configs, human and zombie, that have an exec toggle.
Code: [Select]
bind x "vstr toggle_mode"
seta toggle_mode "vstr zombie_mode"
seta zombie_mode "set toggle_mode vstr human_mode; exec zombie.cfg; echo ^1Zombie ^6Mode Active."
seta human_mode "set toggle_mode vstr zombie_mode; exec human.cfg; echo ^4human ^6Mode Active."
However, that's what Turban has been trying to tell you the whole time.

THANKYOU :D

I am against scripting. But what choice do I got with pingers these days.

Can you recommend how many +attack.
My fps is around 78-99 fps.
My ping is almost always 68-76

I like the script mostly because it is a feature of the server, and you can't use it outside of zombie and super, or any server that doesn't have it as a feature.  In that regards, I don't feel it is unfair or cheating to have it set up.

The number of + attack; -attack  combos in my guide is five.  I imagine that's probably what I have it set to on my comp (away from computer).  I would set up the binds and then test it a few times and count how many attacks your getting per click (I often start a map stabbing and counting and checking my fov script to make sure nothing is screwed up).  If you can get close to 5 per click you are golden, if you get 2, you might have a problem.  The more +attack; -attack; combinations the more you loose control of your movement while stabbing (as the game must resolve your commands before reading other ones). 

My math says the wait time for 78 fps is 5.6... I am not sure if you can do a fraction of a frame, I would bet you couldn't.  In order to minimize unneeded wait time at low fps I would set my wait to 5 and not worry about any dropped commands at higher fps.  Also try 6 and see what works best for you.  Best of luck.


alright, i got another script which i modified to fit my game play.

Code: [Select]
set sl_00 "set sl_f vstr sl_01; ut_echo ^7Human Mode Activated; vstr hum"
set sl_01 "set sl_f vstr sl_00; ut_echo ^3Zombie Mode Activated; vstr zom"
set sl_f "vstr sl_01" // Set Default
bind x "vstr sl_f" // Replace "x" with a key of choice
set zom “bind MWHEELDOWN “+attack; -attack”;”
set zom “bind MWHEELUP “+attack; -attack”;”
set hum “bind MWHEELDOWN “weapprev”;”
set hum “bind MWHEELUP “weapnext”;”
set hum "bind MOUSE1 vstr att"
set att "+attack; -attack"

try it and tell me what you think of it. im rather proud to have endured all those trial and errors. there still may be some mistakes in it but try it and tell me what you think of it.  :D

I haven't played this, but I can already see a bug you might not know about.  Using the set command sets a variable, using it to set a variable of the same name overwrites what was previously set (like dragging and dropping a file into a folder with the same name).  URT reads from top to bottom, so all those set commands for the same variable will only read your bottom set command line.  With that said, you want all your "zom" binds and "hum" binds on one line, and to set them once.  Also from experience I know that setting human attack to +attack; - attack combo essentially eliminates the use of autos (as it shoots one shot per click).  Just delete the - attack from the hum...att... variable.
Title: Re: Novice Guide to "Fast Knife"
Post by: (DEAD) Revolution on December 30, 2011, 01:10:35 AM
lol
Title: Re: Novice Guide to "Fast Knife"
Post by: (DEAD) Revolution on September 17, 2012, 03:07:05 AM


I haven't played this, but I can already see a bug you might not know about.  Using the set command sets a variable, using it to set a variable of the same name overwrites what was previously set (like dragging and dropping a file into a folder with the same name).  URT reads from top to bottom, so all those set commands for the same variable will only read your bottom set command line.  With that said, you want all your "zom" binds and "hum" binds on one line, and to set them once.  Also from experience I know that setting human attack to +attack; - attack combo essentially eliminates the use of autos (as it shoots one shot per click).  Just delete the - attack from the hum...att... variable.
[/quote]

thanks. but its been a long time since i started scripting and binding and i am pleased to say im no rookie anymore at scrippting. currently i have a script that combines many other scripts over the internet as well as my own uniquemodifications for zombie mod. The scrollwheel can attack 32 clicks in a second (secret) using my inventative "+vstrs". great thing about it is i dont even have to aim at the guys. I just need to swipe my crosshair over a guys torso with full on fast knife for bout a quarter of a second, and let the lagg finish him off with my clicks without me having to aim at him. of course i take have no merit in finding pleasure in using the script (attracts alot of leechers and haters about how fast i can knife), and therefore i don't script anymore. i still have the script written out in word "just in case ;)"
Title: Re: Novice Guide to "Fast Knife"
Post by: Premium[1upZ] on October 16, 2012, 12:47:08 PM
Hi Turban Error,
I have a fps around the 90, so what would i fill in?