sl.Home | sl.Search | sl.Forum | sl.Settings | sl.Serverlist | sl.Maplist | sl.Team | sl.Wiki |
help with script |
Feb 21 2011, 05:01 PM
Post
#1
|
|
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.
|
|
|
Guest_Scarhand_* |
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. |
|
|
Feb 22 2011, 02:42 PM
Post
#3
|
|
Private 1st Class Group: Members Joined: 15-October 08 Member No.: 77641 |
Thank you very much it works
This post has been edited by fistach91: Feb 22 2011, 02:43 PM |
|
|
Feb 26 2011, 05:01 PM
Post
#4
|
|
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.
|
|
|
Feb 26 2011, 06:56 PM
Post
#5
|
|
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. -------------------- |
|
|
Feb 26 2011, 09:02 PM
Post
#6
|
|
Private 1st Class Group: Members Joined: 22-February 11 Member No.: 97940 |
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 |
|
|
Feb 27 2011, 09:51 AM
Post
#7
|
|
Private 1st Class Group: Members Joined: 15-October 08 Member No.: 77641 |
Thank you it works so nice.
|
|
|
Lo-Fi Version | Time is now: 27th April 2024 - 05:27 PM |