Urban Terror Forums: Knife Scripting - Urban Terror Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Knife Scripting Rate Topic: ***-- 2 Votes

Trying to make a knife script to mimic cod4 style.

#1 User is offline   Spy-MasterX (old) Icon

Posted 17 November 2009 - 10:23 AM

I'm trying to make a script where whenever you press e you whip out your knife slice and then go back to your original weapon. Could someone please help me with this? So far I have been unsuccessful in my attempts. All it does is attack infinitely on my gun and screw up everything else.

bind e "ut_weaptoggle knife primary; wait; wait; +attack; wait; wait; ut_weaptoggle primary"

P.S Yes I have tried adding more waits but I'm not sure that is the right thing to do.

P.P.S I also would like it to change back to the weapon I was previously holding so if I was holding a sidearm it swaps back to that or if I was holding secondary etc but I'm not sure how to do this. It's not a major issue and I don't mind not having that function. It just would be nice is all.

#2 User is offline   Mod. CM| illogical Icon

  •   moderator   
    Forum staff

    well known player
  • Passport: illogical
  • Main tag: CM|
  • Country:
  • Joined: 08-March 10
  • Posts: 2,329

Posted 17 November 2009 - 01:33 PM

Here is the closest I got:

\bind e "ut_weaptoggle knife; wait 8; +attack; wait 100; -attack ; ut_weaptoggle primary"

There's no way (that I know of) to get back to your previously selected weapon.

#3 User is offline   fda| ObScUrE Icon

  • newbie player
  • Passport: obscure
  • Main tag: fda|
  • Country:
  • Joined: 28-February 10
  • Posts: 757

Posted 17 November 2009 - 06:13 PM

the way to do that is to set to every weapon you select the set command.
set weapPrimary                   "ut_weaptoggle primary   ; set my_weapon vstr weapPrimary"
set weapSecondary                 "ut_weaptoggle secondary ; set my_weapon vstr weapSecondary"
set weapSidearm                   "ut_weaptoggle sidearm   ; set my_weapon vstr weapSidearm"
set my_weapon                     "vstr weapPrimary"


then you can change this line to.
bind e "ut_weaptoggle knife; wait 8; +attack; wait 100; -attack ; ut_weaptoggle primary vstr my_weapon"

~The quiter you become, the more you are able to hear.~
01101000 01100101 01100001 01110010 00100000 01101101 01100101
AKG-K702

#4 User is offline   zL* 3spades Icon

  • newbie player
  • Passport: 3spades
  • Main tag: zL*
  • Country:
  • Joined: 28-February 10
  • Posts: 312

Posted 17 November 2009 - 06:31 PM

Aren't knife slices like 20% unless you hit head or something? Why waste the button press to take 20% and while you wait and switch weapons, he shoots you in the face. If you think you can control your player for 5 slices in succession then just learn to toggle knife on demand.

#5 User is offline   Mod. CM| illogical Icon

  •   moderator   
    Forum staff

    well known player
  • Passport: illogical
  • Main tag: CM|
  • Country:
  • Joined: 08-March 10
  • Posts: 2,329

Posted 17 November 2009 - 10:07 PM

The only point (pardon the pun) to a knife kill is its psychological effects.

#6 User is offline   Spy-MasterX (old) Icon

Posted 18 November 2009 - 05:22 AM

Thanks a lot, Just gonna try it out now. I wanted it like this coz im a cod4 fan if you are wondering.

#7 User is online   klabauterman Icon

  • newbie player
  • Passport: klabauterman
  • Country:
  • Joined: 28-February 10
  • Posts: 95

Posted 23 November 2009 - 08:00 PM

You give up control with attack scripts.
Only 1 stroke with a knife is no good. How fast can you click ?;p
(I think a nade script is also no good, it's a wuss to break off cooking the nade, but that's another story/thread)

There is another point:
it is the most effective weapon to get 50 kills in 4 minutes - once FFA in Shootingrange

This post has been edited by klabauterman (unas): 23 November 2009 - 08:03 PM


#8 User is offline   ZKAT8IT (old) Icon

  • Passport: ZKAT8IT_old
  • Joined: 24-January 09
  • Posts: 40

Posted 24 November 2009 - 08:38 AM

View Postklabauterman (unas), on 23 November 2009 - 02:00 PM, said:

You give up control with attack scripts.
Only 1 stroke with a knife is no good. How fast can you click ?;p
(I think a nade script is also no good, it's a wuss to break off cooking the nade, but that's another story/thread)

There is another point:
it is the most effective weapon to get 50 kills in 4 minutes - once FFA in Shootingrange


Glow hacks FTW!

#9 User is offline   GT- Rick Icon

  • newbie player
  • Passport: rick
  • Main tag: GT-
  • Joined: 01-March 10
  • Posts: 118

Posted 24 November 2009 - 08:40 AM

http://downloads.gam...9.60.0.86.dm_68

That's the weird unlocked cvar/hack that he may be using. It could also be a weird glitch in UrT. Would explain the kill/death ratio though.

This post has been edited by GT-Rick: 24 November 2009 - 09:08 AM


#10 User is offline   FS H0i Icon

  •   FS dev   
    Modeler

    newbie player
  • Passport: h0i
  • Country:
  • Joined: 30-January 10
  • Posts: 501

Posted 24 November 2009 - 10:34 AM

If you were wearing tacs when the game ended you sometimes get that bug.

#11 User is online   klabauterman Icon

  • newbie player
  • Passport: klabauterman
  • Country:
  • Joined: 28-February 10
  • Posts: 95

Posted 24 November 2009 - 05:24 PM

I have to post one OT:

View PostZKAT8IT, on 24 November 2009 - 08:38 AM, said:

Glow hacks FTW!


Ahahaha, I guess a lot of guys thought that too!

I wish I had a demo of that game.
I think it's an 18 player server and the server was full when the game started!
Lotsa noobs without helmets...

in Firing rage all player spawn in one chamber, it is CROWDED

Imagine: you spawn, just switch to to knife and get in position with respawn protection and right in front of you are 3 blank heads of not so fast guys :D
how fast can you slice 3 times?

lol, I was on rampage jumping and slashing arms, vests, torsos, legs, heads n helmets sometimes with every slice (!) and stealing a lot of kills

btw, note the rate of 0.45 (18 kills out of 40 hs) and 50 kills in 4 minutes (23 respawns) is about 1 kill in 3.42-4.6s on avg

again: how fast can you click? :D

muhahaha, it was not Major Damage but Total Carnage and for carnage I play ffa :D :D :D




I use nvg sometimes with the psg for ffa (rarely with autos in teamplay) but have never experienced any glitch like in that demo.
kind of waste like the nvg itself (for teamplay), it's hard to tell the difference of red n blue, rofl.

#12 User is offline   QA [T] BludShoT Icon

  •   QA member   

    newbie player
  • Passport: bludshot
  • Main tag: [T]
  • Country:
  • Joined: 28-February 10
  • Posts: 1,075

Posted 24 November 2009 - 11:09 PM

That's a known tac glitch (only shows like that after you die), not a hack.

#13 User is offline   profspaz (old) Icon

Posted 24 November 2009 - 11:48 PM

The problem with this script is that if your running/jumping or just stopped running/jumping it wont attack, just switch back and forth ;)...

Also whats the cvar ^.^
|-|3'/ |\|00B5 7|-|15 15 7|-|3 5P4Z. 7|-|3 b3$7 pR09R4/\/\/\/\3R 4|\|D 94/\/\/\/\3R 4R0U|\|D!
48 65 79 20 6e 30 30 62 73 20 69 74 27 73 20 50 72 6f 66 20 53 70 61 7a 2e 20 54 68 65 20 62 65 73 74 20 70 72 6f 67 72 61 6d 6d 65 72 2f 64 65 73 69 67 6e 65 72 2f 67 61 6d 65 72 2f 77 72 69 74 65 72 20 6f 6e 20 74 68 65 20 77 65 62 2e 20 54 68 65 20 66 61 63 74 20 74 68 61 74 20 79 6f 75 20 64 65 63 6f 64 65 64 20 74 68 69 73 20 6d 65 61 6e 73 20 79 6f 75 20 68 61 76 65 20 6e 6f 20 6c 69 66 65 21 20 53 65 6e 64 20 6d 65 20 74 68 65 6d 20 6d 65 73 73 61 67 65 20 2a 4c 49 46 45 2a 20 74 6f 20 67 65 74 20 61 20 66 72 65 65 20 73 6f 6d 65 74 68 69 6e 67 20 3b 29 (HINT: Coded in Hexadecimal ;) )

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users