Page 1 of 1

Class menu's

Posted: Mon Mar 29, 2004 9:35 pm
by Yarik
This is a script I made all by myself.
It lets a person pick the type of person you want to be, then it assigns a specific model, gun, team....
To activate it type
paste the below script into notepad, save as
classmenu.urc
place that file into a folder called "ui"
and then zip the folder, rename it to name.pk3 from name.zip
and place into the main folder of your game.
Now in game(when you are playing an online map) type into console

/pushmenu Mod_class

Code: Select all

menu "Mod_class" 415 308 NONE 1  

resource
Button
{
title "Soldier"	
name "Default"
rect 7 77 66 29
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 1.00
borderstyle "3D_BORDER"
stuffcommand "primarydmweapon smg;join_team allies;popmenu 0;dm_playermodel american_Ranger" 
}
end.  

Posted: Mon Mar 29, 2004 9:48 pm
by Yarik
I also did this with one of my menus...
The top was the original game
the bottom was after I changed the settings (note you will not find these kind of settings in the regular "edit settings" menu)
http://www.daplayazclub.com/uploads/Game_settings.jpeg

Posted: Tue Mar 30, 2004 11:04 am
by mohaa_rox
Nice!!! Good job!!!

Posted: Sat May 08, 2004 2:49 pm
by DON
Hello,

How do i extend this and can i use custom weapons that dont replace original ones?

thanks

Posted: Mon May 10, 2004 3:34 pm
by Yarik
primarydmweapon smg;
This script just means that whatever weapon has the "SMG" variable assigned to, that weapon will be the weapon on the button.
As far adding custom weapons without replacing the original weapons.... well that might be a lot harder. I think one of the dll's in mohaa assign SMG, MG, Sniper, Rifle, classes. .... Of course I maybe totally wrong.