Class menu's

Made a map or mod? Announce it in this forum!

Moderator: Moderators

Post Reply
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

Class menu's

Post 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.  
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

Post 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
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Nice!!! Good job!!!
Live to map, not map to live.
-mohaa_rox, .map
moderator
DON
Lance Corporal
Posts: 19
Joined: Fri Sep 12, 2003 5:50 pm

Post by DON »

Hello,

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

thanks
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

Post 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.
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
Post Reply