IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> help with script
fistach91
post Feb 21 2011, 05:01 PM
Post #1


Group Icon Private 1st Class

Group: Members

Joined: 15-October 08
Member No.: 77641



I need a script. When I push mouse3 it'll automatically use heal packs and it will heal me and when I let it automatically returns to the weapon. Please help me.
Go to the top of the page
 
+Quote Post
Guest_Scarhand_*
post Feb 22 2011, 01:42 AM
Post #2




Guests






I think this is what you are asking for:

CODE
bind mouse3 "+vstr heal1 heal2"
seta heal1 "weaponbank 6; +attack"
seta heal2 "-attack; -attack; weaponbank 2; weaponbank 3"


Haven't tried it, so let me know if it works.
Go to the top of the page
 
+Quote Post
fistach91
post Feb 22 2011, 02:42 PM
Post #3


Group Icon Private 1st Class

Group: Members

Joined: 15-October 08
Member No.: 77641



Thank you very much it works grin.gif

This post has been edited by fistach91: Feb 22 2011, 02:43 PM
Go to the top of the page
 
+Quote Post
fistach91
post Feb 26 2011, 05:01 PM
Post #4


Group Icon Private 1st Class

Group: Members

Joined: 15-October 08
Member No.: 77641



But there is one problem. Before removing the heal pack. Once a weapon is fired and then starts to throw a medic packs. Could you fix it.
Go to the top of the page
 
+Quote Post
TerrorTom
post Feb 26 2011, 06:56 PM
Post #5


Group Icon Staff Sergeant

Group: Members

Joined: 13-March 07
From: Austria
Member No.: 48104



hm, maybe you need wait command after switching weaponbank.
Put it between "weaponbank 6;" and " +attack". Try different numbers so it fits best for you:
wait 10;

some ET binding-infos (GER)
The wait command waits a speicified amount of frames, before doing next command. If you have 125 fps the wait 125 command would pause 1 sec.


--------------------
Terror is everywhere.
Go to the top of the page
 
+Quote Post
Scarhand
post Feb 26 2011, 09:02 PM
Post #6


Group Icon Private 1st Class

Group: Members

Joined: 22-February 11
Member No.: 97940



QUOTE (TerrorTom @ Feb 26 2011, 12:56 PM) *
hm, maybe you need wait command after switching weaponbank.
Put it between "weaponbank 6;" and " +attack". Try different numbers so it fits best for you:
wait 10;

some ET binding-infos (GER)
The wait command waits a speicified amount of frames, before doing next command. If you have 125 fps the wait 125 command would pause 1 sec.


I thought the wait command waited 1/2 frame for each interval. So wait 2 will wait for one frame. Sorry, probably should have tested it to see if I forgot something. Like he said, all you need to do is insert a "wait 2;" between those two commands.

This will be the new script:

CODE
bind mouse3 "+vstr heal1 heal2"
seta heal1 "weaponbank 6; wait 2; +attack"
seta heal2 "-attack; -attack; weaponbank 2; weaponbank 3"


This post has been edited by Scarhand: Feb 26 2011, 09:08 PM
Go to the top of the page
 
+Quote Post
fistach91
post Feb 27 2011, 09:51 AM
Post #7


Group Icon Private 1st Class

Group: Members

Joined: 15-October 08
Member No.: 77641



Thank you it works so nice.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 27th April 2024 - 05:27 PM