News:

Come Chat with us live! Learn how HERE!

Main Menu

Packedup Script

Started by Sayeru, August 27, 2008, 08:13:57 PM

Sayeru

Hello guys, anyone know whats wrong here?

//Packets Lost
bind + "vstr seis_packetslost+"
bind - "vstr seis_packetslost-"
set seis_packetslost- "vstr packetslost1;"
set seis_packetslost+ "vstr packetslost1;"
set seis_packetslost1 "set cl_packetdup 0; set seis_packetslost- vstr seis_packetslost1; set seis_packetslost+ vstr seis_packetslost2; echo ^7Lost ^10^7`"
set seis_packetslost2 "set cl_packetdup 1; set seis_packetslost- vstr seis_packetslost1; set seis_packetslost+ vstr seis_packetslost3; echo ^7Lost ^15%^7`"
set seis_packetslost3 "set cl_packetdup 2; set seis_packetslost- vstr seis_packetslost2; set seis_packetslost+ vstr seis_packetslost4; echo ^7Lost ^110%^7"
set seis_packetslost4 "set cl_packetdup 3; set seis_packetslost- vstr seis_packetslost3; set seis_packetslost+ vstr seis_packetslost5; echo ^7Lost ^115%^7"
set seis_packetslost5 "set cl_packetdup 4; set seis_packetslost- vstr seis_packetslost4; set seis_packetslost+ vstr seis_packetslost6; echo ^7Lost ^120%^7"
set seis_packetslost6 "set cl_packetdup 5; set seis_packetslost- vstr seis_packetslost5; set seis_packetslost+ vstr seis_packetslost6; echo ^7Lost ^125%^7"


Strange because + and - aren't even bonded (binded?).  ::)
Somebody can help? ???

Bomb

What, exactly, is the problem?

Sayeru

Those binds are not working in game , i need to fix it. Idk what i should changed/fixed here. Thats why im asking for help.  :)

Bomb

1) The + and - signs in the cvar names might be causing problems.
2) Which + key is the first bind attached to? The one on the keyboard or the one on the keypad?

kevlarman

Quote from: Bomb on August 27, 2008, 10:19:15 PM
1) The + and - signs in the cvar names might be causing problems.
2) Which + key is the first bind attached to? The one on the keyboard or the one on the keypad?
this is correct...
+ binds to keypad +, if you want to bind to the one on the keyboard you'll need to bind =
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Bissig

KP_PLUS binds to the plus sign on the keypad
+ binds to the plus sign on the keyboard

Bomb

Tremulous doesn't let you press the + sign on the keyboard. Sayeru, just bind it to = instead.

Bissig

Quote from: Bomb on August 28, 2008, 02:38:40 PM
Tremulous doesn't let you press the + sign on the keyboard. Sayeru, just bind it to = instead.

Aha, on my keyboard "+" does "sizeup" and "-" does "sizedown".

Bomb

Quote from: Bissig on August 28, 2008, 08:47:17 PM
Aha, on my keyboard "+" does "sizeup" and "-" does "sizedown".
You mean "=" does "sizeup"...

Bissig

Quote from: Bomb on August 28, 2008, 10:34:00 PM
Quote from: Bissig on August 28, 2008, 08:47:17 PM
Aha, on my keyboard "+" does "sizeup" and "-" does "sizedown".
You mean "=" does "sizeup"...

Nope. Tis QWERTZ btw.

Bomb

Um, I don't think Sayeru would be using QWERTZ.

Bissig

He apparently is from Belgium. I don't know what layout they use there. Also, I don't think it makes any difference.

Bomb

Quote from: Bissig on August 28, 2008, 11:07:02 PM
Also, I don't think it makes any difference.
Doubly so, now that we've scared him off. ;)

Archangel

Quote from: Bomb on August 28, 2008, 02:38:40 PM
Tremulous doesn't let you press the + sign on the keyboard. Sayeru, just bind it to = instead.

shift

Bissig

Quote from: Sayeru on August 27, 2008, 08:13:57 PM
Hello guys, anyone know whats wrong here?

---
//Packets Lost
bind + "vstr seis_packetslost+"
bind - "vstr seis_packetslost-"
set seis_packetslost- "vstr packetslost1;"
set seis_packetslost+ "vstr packetslost1;"
set seis_packetslost1 "set cl_packetdup 0; set seis_packetslost- vstr seis_packetslost1; set seis_packetslost+ vstr seis_packetslost2; echo ^7Lost ^10^7`"
set seis_packetslost2 "set cl_packetdup 1; set seis_packetslost- vstr seis_packetslost1; set seis_packetslost+ vstr seis_packetslost3; echo ^7Lost ^15%^7`"
set seis_packetslost3 "set cl_packetdup 2; set seis_packetslost- vstr seis_packetslost2; set seis_packetslost+ vstr seis_packetslost4; echo ^7Lost ^110%^7"
set seis_packetslost4 "set cl_packetdup 3; set seis_packetslost- vstr seis_packetslost3; set seis_packetslost+ vstr seis_packetslost5; echo ^7Lost ^115%^7"
set seis_packetslost5 "set cl_packetdup 4; set seis_packetslost- vstr seis_packetslost4; set seis_packetslost+ vstr seis_packetslost6; echo ^7Lost ^120%^7"
set seis_packetslost6 "set cl_packetdup 5; set seis_packetslost- vstr seis_packetslost5; set seis_packetslost+ vstr seis_packetslost6; echo ^7Lost ^125%^7"

---

Strange because + and - aren't even bonded (binded?).  ::)
Somebody can help? ???

Red parts are wrong. Also, you are setting seis_packetslost+ AND seis_packetslost- to the same vstr. I don't think that works.

UniqPhoeniX

Quote from: Bissig on August 29, 2008, 02:50:41 AM
Also, you are setting seis_packetslost+ AND seis_packetslost- to the same vstr. I don't think that works.
It does work.