mhm i had a go at making one. im at a beta stage, Its really hard to test weapons limiting on my own so i need you guys:).
Right READ THE READ ME. If you cant read it ask on a forum. ANy of the major ones i visit will do. .map, mods r us [my home]
it has a settings file inside the settings folder you place in main. There you setup what guns you want to replace with what guns or what guns you want to take or dissable. oh and what guns you wish to limit.
Items like binox , pistol, grenade you cant limit but can set to be taken or kept.
You can set a settings file for each map. This is done by making your own settings file and adding its name to the exec line that you place under wait till spawn in your map.scr.
Weapons limiter script By Elgan {sfx}
if you have any questions please visit www.mods-r-us.net ans ask or e-mailk me on
install:
Put the pk3 and folder inside your main folder. usualy found at c:program files/ea games/mohaa/
You need to exec it from the maps you wish to run it from. This is so that you can have map's with diff weapon setups and normal without it running so no running scripts for no reason.
From your map.scr under level waittill spawn add the line.
exec weapon_limit/limiter.scr (optional: settings file name)
(optional: settings file name) = this means you do not have to include this part. You can jsut add the line like this.
level waittill spawn
exec weapon_limit/limiter.scr
or to have a map specific settings file you can send the name of the file to use. If you dont say what file to use it will use the default settings file inside the weapons_limiter_settings folder "weapons_limiter_settings.txt".
level waittill spawn
exec weapon_limit/limiter.scr MOHDM1_weapons_limiter_Settings.txt
This would make the mod look inside MOHDM1_weapons_limiter_Settings.txt for its settings. Though if it does not find the file it will not run.
It is VERY IMPORTANT that if you want a map specific settings file. You actualy create the file and place it in the settings folder as well as adding it's name to the exec line.
uninstall:
Delte everything.:D
Some info on setting the setting file. If you create your own settings file for a map please copy mine and rename it.
This part is for the main weapons that you want to limit or replace. You cant limit and replace a weapon at the same time , Just think about that., It wouldnt work.
Replace a weapon
----------------
These are the weapons.:D. TO set a weapon to be replaced. Enter the name of the weapon to replace it with in the second field.
e.g
The springfield sniper rifle below is being replaced with the bar.
dissalow a weapon
----------------
by setting the 3rd parameter of a weapon to 0. you can stop a weapon being used. When chosen the player will be made to pick another weapon.
e.g
The bar below is dissabled.
Limit a weapon
----------------
by setting the 3rd parameter of a weapon to any number you wish. You are limiting the ammount of this weapon in game.
If the weapon is all used up then the player will have to choose a diff weapon and they will be told what is available.
If you limited 1 of each sniper. 1 sniper per team. you would set the springfield to 1 and the KAR98sniper to 1. The first players to pick them will get a sniper. ANy others iwll have to pick a diff weapon.
when the player died or goes spectator. The weapon will become available again. When they respawn they will take it auto unless someone else chooses it when they die before they respawn.
e.g
The thompsonsmg is limited to 6 in the map. (this does not include picking up weapons).
Weapon Name Weapon name to replace weapon with Ammount to limit. Set 0 to dissable this weapon ( they will be given the choice to pick another ).
//Ally weapons This should be "" if u are swapping a weapon.
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"springfield" "bar" ""
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"bar" "" "0"
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"thompsonsmg" "" "6"
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"bazooka" "" ""
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"m1_garand" "" ""
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//Axis
"kar98" "" ""
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"KAR98sniper" "" ""
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"mp40" "" ""
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"mp44" "" ""
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"panzerschreck" "" ""
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//both
"shotgun" "" ""
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Here you set if you want nay of these taken away. you cant limit them. Onlydissable them in this version.
The first param is just the name. The second is to keep or take the weapon. Setting the 2nd param to "1" will remove the weapon from the game.
the 3rd param is just what tik is used to remove the weapon. This is added so you can add custom items etc to be removed from players.
Weapon Name keep or take. 1 - take, tiki file it takes awak
//Ally weapons
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"colt45" "" "models/weapons/colt45.tik"
"m2frag_grenade" "" "models/weapons/m2frag_grenade.tik"
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//Axis
"steilhandgranate" "" "models/weapons/steilhandgranate.tik"
"p38" "" "models/weapons/p38.tik"
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//both or items
"silencedpistol" "" "models/weapons/silencedpistol.tik"
"binoculars" "" "models/items/binoculars.tik"
Download here -
http://mods-r-us.net/datas/users/75-beta_weapons_limiter%7Baa%7D.zip
oh and it used mike_torso so will confict with other mods you have with this file.
har. yo. ive seena SSuk also:S :S
anyway hi m8!
Sorry guys I am new to this. How do I modify a scr file? I dont know which program to use to modify a scr file. Pakcsape didnt work for me.
Do I use MS Word and save as scr file and replace the exisitng file using pakscape?
i use notepad..
save as ALL files and .scr extension.,
what do u mean by
replace the exisitng file using pakscape?
?
the origional game files or mod files? Never modify your origional pak's but u cna change mods as u wish to learn. if u release anything give credit where due or people go :O.