Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 9 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: CAN SELECT ALL TEAM WEAPONS IN EACH MAP?
MAQUINA
General Member
Since: Nov 4, 2006
Posts: 33
Last: May 11, 2009
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Friday, Jul. 27, 2007 10:11 pm
Hi all[wave] Can somebody make a new mod with this?

Allow to select by menu the corresponding weapons and all weapons from the enemy in each map.

Examples:
MATMATA. Germans can select all english weapons and english can select all german weapons.
ROSTOV. Russians can select all german weapons and german can select all russian weapons.

Only this modifications. THANKS!!

WWW.CLANREGIANOS.COM
AFTER MP_CR_KASSERINE COMING SOON TO DOWNLOAD ---> MP_CR_BRETTEVILLE
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Saturday, Jul. 28, 2007 02:01 am
well there are are meany menu mods like so. But if you want to edit and make your own. It is really easy to take the stock menus and mod them to what you want. Now first you need to find the stock menus.

iw_06.iwd/ui_mp/scriptmenus

now just open the MENU files in notpad (or other text generator) and edit them.

The code is complex if you are just begining. I really don't know how the code really works, beacuse i have never had the need to do it, but i have looked at it before.
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
MAQUINA
General Member
Since: Nov 4, 2006
Posts: 33
Last: May 11, 2009
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Monday, Jul. 30, 2007 12:15 pm
I tried it but I don't know how to do it. Only a little but not proffesional insufficient work I did. Sniff!! [duh] Now if somebody were very kind...[tongue]
The mod needs this:
PRIMARY WEAPON: one of the own team
SECONDARY WEAPON: one of the corresponding enemy for each map.

Help with this please!!
Share |
Reavensito
General Member
Since: Jul 22, 2006
Posts: 74
Last: Nov 21, 2008
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Monday, Jul. 30, 2007 03:03 pm
Maquina, en el mod zombies hice menús de armas para que los aliados pudieran elegir las armas del eje, pero eso que dices de que elijan armas segun el contrario, es muy muy dificil.

Creo que habría que poner los menús que quieres que haya en cada mapa. Es decir, si fuera un mapa custom, podrias intentar cambiar el weapons_german.gsc y el weapons_equipoaliadoentumapa.gsc

Supongo que al cargar cada mapa cargaría los diferentes .gsc pero no lo tengo claro :S

Si quieres elegir armas secundarias, además de las primarias, lo puedes sacar del eXtreme+, que supongo que es lo que tu buscas.


edited on Jul. 30, 2007 11:05 am by Reavensito
Share |
MAQUINA
General Member
Since: Nov 4, 2006
Posts: 33
Last: May 11, 2009
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Monday, Jul. 30, 2007 03:22 pm
¿No se podría poner una instrucción que diga algo como que si los allies=russian entonces permitir armas a los alemanes armas rusas...? Leyendo el mapname.gsc en el que se establecen qué aliados juegan y dónde. No sé porque no tengo mucha idea. Lo que vi por ahí es un mod que te permite coger todas las armas del juego pero no me gusta ver en MATMATA o KASSERINE (creación propia) las ppsh además de los panzersreck continuamente por ahí... GRACIAS
Share |
codmp
General Member
Since: Feb 7, 2006
Posts: 905
Last: Aug 1, 2011
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Monday, Jul. 30, 2007 04:10 pm
I mite be wrong but doesnt the AWE mod do something like this where you can choose a weapon from a list of all the weapons and ur able to choose a primary and secondary weapon? Try openin up what they got and see how they did it.
Share |
MAQUINA
General Member
Since: Nov 4, 2006
Posts: 33
Last: May 11, 2009
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Monday, Jul. 30, 2007 04:13 pm
I saw that mod but I had try to modify it and I don't Know how. I'm not a proffesional with this I know a little just to make maps. THANKS
I supose that it's easy to do that if theare anebody interesting in it...[rolleyes]

edited on Jul. 30, 2007 12:14 pm by MAQUINA
Share |
tourist.Tam
General Member
Since: Feb 2, 2007
Posts: 397
Last: Oct 6, 2009
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Saturday, Aug. 18, 2007 11:45 am
Would it be possible to have ppl to write in ENGLISH please? Cause I can't, and I am sure I am not the only one here, READ/SPEAK/WRITE in spanish, but would love to be able to follow a thread posted on this forum.

Thanks

Tam
Share |
ejderha_3
General Member
Since: Aug 23, 2007
Posts: 4
Last: Aug 25, 2007
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Thursday, Aug. 23, 2007 11:39 am
MAQUINA writes...
Quote:
Hi all[wave] Can somebody make a new mod with this?

Allow to select by menu the corresponding weapons and all weapons from the enemy in each map.

Examples:
MATMATA. Germans can select all english weapons and english can select all german weapons.
ROSTOV. Russians can select all german weapons and german can select all russian weapons.

Only this modifications. THANKS!!

WWW.CLANREGIANOS.COM
AFTER MP_CR_KASSERINE COMING SOON TO DOWNLOAD ---> MP_CR_BRETTEVILLE


Well, that is not a mod, but what u want is possible with some script bindings in ur cfg.[cool]

Like that:

F5 to select enemy team, than F6 to select enemy weapon.

Code:

bind F5 "vstr german;"

seta german "bind F6 vstr german00; bind F5 vstr brit"
seta brit "bind F6 vstr brit00; bind F5 vstr usa"
seta usa "bind F6 vstr usa00; bind F5 vstr rus"
seta rus "bind F6 vstr rus00; bind F5 vstr german"

seta german00 "openscriptmenu weapon_german mp40_mp; bind F6 vstr german01"
seta german01 "openscriptmenu weapon_german kar98k_mp; bind F6 vstr german02"
seta german02 "openscriptmenu weapon_german g43_mp; bind F6 vstr german03"
seta german03 "openscriptmenu weapon_german kar98k_sniper_mp; bind F6 vstr german04"
seta german04 "openscriptmenu weapon_german shotgun_mp; bind F6 vstr german05"
seta german05 "openscriptmenu weapon_german mp44_mp; bind F6 vstr german00"

seta brit00 "openscriptmenu weapon_british sten_mp; bind F6 vstr brit01"
seta brit01 "openscriptmenu weapon_british enfield_mp; bind F6 vstr brit02"
seta brit02 "openscriptmenu weapon_british m1garand_mp; bind F6 vstr brit03"
seta brit03 "openscriptmenu weapon_british enfield_scoped_mp; bind F6 vstr brit04"
seta brit04 "openscriptmenu weapon_british shotgun_mp; bind F6 vstr brit05"
seta brit05 "openscriptmenu weapon_british thompson_mp; bind F6 vstr brit06"
seta brit06 "openscriptmenu weapon_british bren_mp; bind F6 vstr brit00"

seta usa00 "openscriptmenu weapon_american greasegun_mp; bind F6 vstr usa01"
seta usa01 "openscriptmenu weapon_american m1carbine_mp; bind F6 vstr usa02"
seta usa02 "openscriptmenu weapon_american m1garand_mp; bind F6 vstr usa03"
seta usa03 "openscriptmenu weapon_american springfield_mp; bind F6 vstr usa04"
seta usa04 "openscriptmenu weapon_american shotgun_mp; bind F6 vstr usa05"
seta usa05 "openscriptmenu weapon_american thompson_mp; bind F6 vstr usa06"
seta usa06 "openscriptmenu weapon_american bar_mp; bind F6 vstr usa00"

seta rus00 "openscriptmenu weapon_russian pps42_mp; bind F6 vstr rus01"
seta rus01 "openscriptmenu weapon_russian mosin_nagant_mp; bind F6 vstr rus02"
seta rus02 "openscriptmenu weapon_russian SVT40_mp; bind F6 vstr rus03"
seta rus03 "openscriptmenu weapon_russian mosin_nagant_sniper_mp; bind F6 vstr rus04"
seta rus04 "openscriptmenu weapon_russian shotgun_mp; bind F6 vstr rus05"
seta rus05 "openscriptmenu weapon_russian ppsh_mp; bind F6 vstr rus00"
Share |
OLD_MAN_WITH_GUN
General Member
Since: May 13, 2006
Posts: 754
Last: Jan 23, 2010
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Thursday, Aug. 23, 2007 01:56 pm
MAQUINA writes...
Quote:
I saw that mod but I had try to modify it and I don't Know how.
You don't need to modify it. The settings you want are already implemented.
Download the mod, put it on your server and make the adjustments you want in the awe.cfg

The dvar awe_secondary_weapon controls the weapon load out.
set awe_secondary_weapon "0" // only a primary weapon
set awe_secondary_weapon "1" // a primary and a secondary weapon (secondary is from the own team)
set awe_secondary_weapon "2" // a primary and a secondary weapon (secondary is from the opposing team).

So, all the things you want can be set by one dvar.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»