Team Menu Command Menu addon
INsane_dod
01-04-2006, 04:26 AM
This is something I have been testing that others may want to grab and play with. Made this today cause I didn't want to paint my house :D
A replacement for the Team Selection Panel with a 58-or-so command menu (mouse clickable ) buttons.
Menu Pic (http://www.dodbits.com/tutorials/Commandmenu/INsane_team_58_menu.jpg)
EDIT: 9 JAN 2006...
Made another version :) ....
Pic Ver 2 (http://www.dodbits.com/tutorials/Commandmenu/INsane_team_58_menu_VER2.JPG)
Download version 1 and 2. (http://www.dodbits.com/tutorials/Commandmenu/INsanes_team_menu_VER_1_and_2.zip)
Check out the Netcode section... I made a "fine adjust" set of buttons :D
Also one for CS S. (http://www.dodbits.com/tutorials/Commandmenu/CS-S-Blank-menu2.jpg)
Download CS S one. (http://www.dodbits.com/tutorials/Commandmenu/INsanes_Blank_CSS_commandmenu.zip)
It is not finished of course as you can see, but I thought someone may have a use for this, before I customize mine some more with commands that some don't want.
The majority of the buttons are all the same temp' command... "voice_wtf" , (can be changed of course) and have temp' labels.
I have tried it on 800x600, 1024x768 and 1600x1200... seems to work ok.
Do not download this if you don't know how to operate files within the dod folder :)
This is for people who want to develop it ... not finished.
This is "copyright free" I don't require you do anything but take it and have fun.
Download and try if you want. (http://www.dodbits.com/tutorials/Commandmenu/INsanes_team_menu_VER_1_and_2.zip)
EDIT: CHANGED ALLIES ICON, TEXT, BUTTON... moved more to left for the team number details :)
Wile E Coyote
01-04-2006, 09:01 AM
I have to say, this is the most inspired, yet simple mod for DOD:S I have seen in a long time. Good idea! I'm gonna check it out!
[eF]Rommel
01-04-2006, 02:58 PM
Dude... I love you.
INsane_dod
01-04-2006, 05:32 PM
Thanks all for the replies :)
If anyone has trouble editing this just post or email me ... insane@dodbits.com
It is easy once you get the hang of it, but just in case, here is what I know so far...
I have not tried yet but it must work with config files as well, put an alias in the "command" line of a button and work a toggle script or anything in your userconfig.cfg file.
RCON section? Crosshair favourites? Demo section? Voice/chat section? I suppose anything goes :)
If you need a small section of 4 buttons in say.. column "B" you just have to take out (delete) one or two buttons and replace it/them with a "Label".
Just adjust the "Label" for the new "X" (right-to-left position) and "Y" (up and down) and rename the title in the "labelText" part.
If the menu stuffs up anywhere you will see it in-game... just look at what button/item is missing (say it is "Sample Button A 2") and go back to the text and you will find an error... maybe everything BEFORE that button will work OK... but everything after that will be broken.
The menu "tells" you where it is hurting :)
In the old commandmenu.txt you could fault find this way as well.
"Everything new is old again" :D
I also found that it is much much easier to edit this kind of panel "on the fly".
If you go to this page, (http://www.dodbits.com/tutorials/Position_HUD_items.html) and scroll down to the "A neat trick to save time." section you will be able to change the positions ingame and see the results in seconds. I have not tried the VGUI Hierarchy tool (http://developer.valvesoftware.com/wiki/VGUI_Documentation) yet to see if it does the same thing.
Also, to speed up editing, use this map (http://www.dodbits.com/tutorials/Small_map_with_capture_points.zip) ... it loads very quickly and does not use so much of your PC's resources.
The map is a modified version of Haircuts Tutorial map. (http://www.mardymouse.co.uk/modules.php?name=Content&pa=showpage&pid=57) Turn off antivirus and other memory/system intensive services, use the smaller resolutions and test in the higher ones when you have a few things done.
For just adding new commands/buttons, here is a quick guide...
}
"Sample Button A 3"
{
"ControlName" "DODMouseOverPanelButton"
"fieldName" "Sample Button A 3" ... Can be left alone
"xpos" "50" ... Position... left to right "0" is most left.
"ypos" "300" ... Position... up and down
"wide" "100" ... Size.... the width of the button
"tall" "15" ... Size... the height of the button
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" "Sample Button A 3" ... the button name
"textAlignment" "west"
"dulltext" "0"
"brighttext" "1"
"command" "voice_wtf" ... the button command
"font" "DefaultVerySmall"
LINKS to commands...
dodnetwork binds. (http://www.dodnetwork.com/index.php?page=key-binding)
dod forums post Hand Signals/Voice Commands/Binds (http://www.dayofdefeat.com/forums/showthread.php?s=&threadid=2101&highlight=communication+binds)
Wile E Coyote
01-04-2006, 05:34 PM
Actually, that is all very do-able. I was thinking this would be a great addition to the Mani-mod :D
INsane_dod
01-04-2006, 06:10 PM
Originally posted by Wile E Coyote
Actually, that is all very do-able. I was thinking this would be a great addition to the Mani-mod :D
That will work, make a sample and contact them if you want :)
I do not require any copyright bull***t, this is a template for all to use as they wish and call it what ever they want. I better put that in the first post :D
BTW I did some very small changes... the select a team section...
EDIT: CHANGED ALLIES ICON, TEXT, BUTTON... moved more to left for the team number details :)
See first post for new screenie and zip.
All I did was move those three items back to the left by 6 "units".
INsane_dod
01-08-2006, 10:32 PM
Made another version :) ....
Pic Ver 2 (http://www.dodbits.com/tutorials/Commandmenu/INsane_team_58_menu_VER2.JPG)
Download version 1 and 2. (http://www.dodbits.com/tutorials/Commandmenu/INsanes_team_menu_VER_1_and_2.zip)
Check out the Netcode section... I made a "fine adjust" set of buttons :D
The netgraph is not important... I just did it to see what was possible to get the "incrementvar" scripts to do and to see if I could hit a button and keep the screen up... all the buttons so far make you exit the menu... damn it :(
Putting "changeteam" in the command keeps it up... sort of... it "flickers" because it closes then opens in a split second.
I used this script to move the netgraph over to the Left bit-by-bit and hold open the menu...
"incrementvar net_graphpos 4 440 -10; changeteam"
Just watch out for the "Round End Suicide" button, it needs a lot of "waits" in the command to work.
It won't hurt your system pressing it :) It will just kill you that's all.
The Wait aliases used in a couple of the commands (the Suicide and some bot commands) are from my userconfig.cfg file. To make those work place the following in your userconfig file...
// Wait Aliases
alias w2 "wait;wait"
alias w3 "wait;w2"
alias w4 "w2;w2"
alias w5 "w2;w2;wait"
alias w10 "w4;w4;w2"
alias w15 "w10;w5"
alias w20 "w10;w10"
alias w30 "w20;w10"
alias w40 "w30;w10"
alias w50 "w40;w10"
alias w60 "w50;w10"
alias w70 "w60;w10"
alias w80 "w70;w10"
alias w90 "w80;w10"
alias w100 "w50;w50"
alias w200 "w100;w100"
alias w300 "w200;w100"
alias w400 "w200;w200"
alias w500 "w200;w200;w100"
I wanted to get a nice Translucent screen like CS S ... Alas my brain turned to mud... I failed (so far anyway).
All I got was a menu (an uncompleted template) for CS S... I hardly play CS S so I didn't finish it.
Also one for CS S. (http://www.dodbits.com/tutorials/Commandmenu/CS-S-Blank-menu2.jpg)
Download CS S one. (http://www.dodbits.com/tutorials/Commandmenu/INsanes_Blank_CSS_commandmenu.zip)
I also had a bash at the VGUI Build Mode Editor (http://www.dodbits.com/tutorials/Commandmenu/VGUI_Build_Mode_Editor.JPG) ... It works ok but but has some problems.
Press SHIFT+CTRL+ALT+B to bring it up ingame and edit using your mouse and pressing the console key (~) to delete, change, apply or save.
It is easy once you work out how to use it but it makes a hell of a mess of the file :(
When that happens, copy the file contents you edited in Microsoft word... copy and paste it back into the file still open in notepad.
The other way to edit on the fly is to refresh your screen res in "run in a window mode". See the section "A neat trick to save time." on this page. (http://www.dodbits.com/tutorials/Position_HUD_items.html)
This is my preferred way of doing it :)
Cheers.
INsane
Day of Defeat Forum Archive created by
Neil Jedrzejewski.
This in an partial archive of the old Day of Defeat forums orignally hosted by
Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.