Author |
Message |
Sir Sux-A-Lot Admin38083 Points
|
Do ET / LUA allow to display a client-specific custom menu box?
for example...
I'm curious if I can write a script that would allow me to call a personal menu within the game to for example change my nick or play one of our custom sound, or change class.
The problem I see is that the game will not load the script if it's not required by the server like the IOW sound pack. I'm thinking maybe you can execute it locally like an autoexec to make it work. I mean isn't the point of having a scripting language to be able to do something like that or is it just for servers?
any ideas?
edit: thinking about it some more, I see a pretty blatant conflict between what would be in a pk3 file and a simple cfg file...
|
|
|
|
No rating
|
|
BECK General of the Army279782 Points
|
I'm pretty sure LUA support is only on the server side. But it might be a good question for the silent devs because honestly I don't really know much about this stuff. JvI might, he's been working with LUA lately, but those are scripts that reside on the server and are executed as server commands.
I'm not sure if allowing for hooks on the client side to execute scripts from within the mod is necessarily a good thing, it could open the door for hackers. I guess this is why you can write some fairly sophisticated toggle binding commands that you can execute with a cfg on the client. For instance, changing nicks - I have a toggle button binded that cycles through a bunch of nicks and another button to set the one I want. Same thing with changing class and weapon (my entire number pad is bound to scripts for nicks and class/weapons). I can share them with you if you're interested?
|
|
_________________
|
|
No rating
|
|
JvIasterMind Retired55792 Points
|
Someone posted about the silEnT devs adding the extra weapons to the built-in class selector menu, and the response was that it is difficult to change because those menus are static and hard-coded into the source. So even Lua on the server side is probably not possible at this time.
Beck is correct that Lua is only server side. The best way to add what you are looking for is through your standard cfg scripting, which you can make to behave like what you are thinking, except that the menu would have to be text-based.
I've been rewriting all my configs over the past few weeks, and you can do some pretty complex stuff using lots of variables. I am almost finished with my class/spawn/team selector (which is very powerful and fixes problems I had with my old one) and I will post it when I am finished. I am about to start reworking my name selector which I will post as well. For the sounds, just give me an idea of what you are thinking and I will make a cfg for that as well. I am guessing that you want it to behave like the standard vsays (like get a sound with a <key> <number> <number> combination)? If that is what you want, just post how you would like the categories to be arranged and the order of the sounds in each category.
|
|
|
|
No rating
|
|
Sir Sux-A-Lot Admin38083 Points
|
JvIasterMind wrote ( View Post): › Someone posted about the silEnT devs adding the extra weapons to the built-in class selector menu |
That was me
OK so I knew I could just do toggles and binds and whatnot to do my own class selector, I was wondering just about the in-gamemenu popup.
I wonder if an optional pk3 download would do the trick if it has all the weapons for all the classes like it is on our server.
|
|
|
|
No rating
|
|
JvIasterMind Retired55792 Points
|
Haha, I was kind of wondering if that was you on the forums!
But, like I said... those menus are hardcoded into ET's source code. If I understand it correctly, we won't be able to modify them and distribute a pk3 with custom menu.
We will just need to wait for the silEnT devs to add this functionality to the mod or fix the existing menus.
|
|
|
|
No rating
|
|
Sir Sux-A-Lot Admin38083 Points
|
JvIasterMind wrote ( View Post): › Haha, I was kind of wondering if that was you on the forums!
But, like I said... those menus are hardcoded into ET's source code. If I understand it correctly, we won't be able to modify them and distribute a pk3 with custom menu.
We will just need to wait for the silEnT devs to add this functionality to the mod or fix the existing menus. |
They won't fix it apparently so I'm just going to suck it up (and borrow somebody else's class selector )
|
|
|
|
No rating
|
|
Scopey Retired4032 Points
|
I was going to make a text based cfg script for the !wav commands. Still on my huge list of things I'll eventually do. Was going to use just the "end" key and arrow keys probably.
|
|
|
|
No rating
|
|
BECK General of the Army279782 Points
|
|
No rating
|
|
Sir Sux-A-Lot Admin38083 Points
|
holy crap I paid $12 at walmart for my keyboard and I love it :>
|
|
_________________ Wu-Tang is for the children
|
|
No rating
|
|
BECK General of the Army279782 Points
|
I posted my two toggle scripts if they're helpful
|
|
_________________
|
|
No rating
|
|
miller Retired40315 Points
|
|
|
_________________ millerbee(r) a.k.a.
|
|
No rating
|
|
BECK General of the Army279782 Points
|
I didn't pay that much for it lol - maybe $70 or something, which yeah, a lot for a keyboard. But I love it.
|
|
_________________
|
|
No rating
|
|
miller Retired40315 Points
|
I need to find a deal on one. My "2" key sticks sometimes on this otherwise lovely $25 keyboard (Eclipse Litetouch).
|
|
_________________ millerbee(r) a.k.a.
|
|
No rating
|
|
PumpkiN Retired102492 Points
|
every time i buy a fancy keyboard, i spill drink into it.. then i buy a 5 buck one from walmart and i keep it for years. wtf ??
|
|
_________________ God does not play dice with the universe.
AAH.. but he does....
|
|
No rating
|
|
|