MOH Central

Medal of Honor Series Forum => MOHAA Series: General => Topic started by: Elgan {sfx} on February 17, 2005, 08:05:12 AM

Title: weapons limiter.
Post by: Elgan {sfx} on February 17, 2005, 08:05:12 AM
im going to start work on a weapons limiter that has no lag or effect pon server.

   

   What things can it do?

   let me know if im missing something. I need to create like a plan of what im doign then i can script each bit one by one.

   

   1 Can limit any 1 weapon for all players.

   

   2 Can limit any 1 weapon class per team. (the 2 smg's per team will have to be seperated)

   

   3 Can limit certain ammount of weapons per team or game.

   

   4 Create a menu to control it all. ( might not be bale to)

   

   5. Have it a settings file that controls all the weapon tiks.  

   

   6. Must work on aa, SH and BT.

   

   

   THis is going to be hard. DId i miss anything ?
Title: weapons limiter.
Post by: ilikefungus on February 19, 2005, 01:19:59 PM
Can limit certain ammount of weapons per team or game.

   

   

   

    that would suck because youd have people spawning without weapons!
Title: weapons limiter.
Post by: Elgan {sfx} on February 19, 2005, 01:47:36 PM
im only doign what people ask for mods wise. I would personaly not like it like the anti camper.

   

   but anyway. I aim to be able to make them repick a weapon thats avilable.

   
Title: weapons limiter.
Post by: Cobra {sfx} on February 19, 2005, 02:45:22 PM
I think he means like have 2 snipers available and the rest cant select sniper once theyre in use etc
Title: weapons limiter.
Post by: Elgan {sfx} on February 19, 2005, 09:35:04 PM
ok been messing. not going to bother with everyhting above.hehe. just setting the settings file how u wish should make it all work how iu want it to.

   

   

   
      local.AAweapons = makearray
      //   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"                  ""                        ""
         "thompsonsmg"               ""                        ""
         "bazooka"               ""                        ""
         "colt45"               ""                        ""
         "m1_garand"               ""                        "0"
         "m2frag_grenade"            ""                        ""
         //Axis
         "kar98"                  ""                        ""
         "KAR98sniper"               ""                        ""
         "mp40"                  ""                        ""
         "mp44"                  ""                        ""
         "p38"                  ""                        ""
         "panzerschreck"               ""                        ""
         "steilhandgranate"            ""                        ""
         //both
         "shotgun"               ""                        ""
         "silencedpistol"            ""                        ""
         "models/items/binoculars"         ""                        ""
      //
      endarray
   
   

   

   

   thats the settings file as it is.

   

   it works gr8 with no lag.

   

   if u dont ste a tik to replace a weapon it will get the num allowed. If thats 0 u will be asked to choose a new weapon.

   

   The limit of ammount of each in game im going to code next. if you set 1 sniper. and thats taken. when the player dies. if someone else picks the sniper before they respawn. They will have to rechooce a weapon.
Title: weapons limiter.
Post by: JADE on January 10, 2006, 08:03:19 PM
hi Elgan

   i tryd this for sp but dont seem to work

   

   
local.AAweapons = makearray
   // 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" "1" "1"
   "bar" "1" "1"
   "thompsonsmg" "1" "1"
   "bazooka" "1" "1"
   "colt45" "1" "1"
   "m1_garand" "1" "1"
   "m2frag_grenade" "1" "1"
   //Axis
   "kar98" "1" "1"
   "KAR98sniper" "1" "1"
   "mp40" "1" "1"
   "mp44" "1" "1"
   "p38" "1" "1"
   "panzerschreck" "1" "1"
   "steilhandgranate" "1" "1"
   //both
   "shotgun" "1" "1"
   "silencedpistol" "1" "1"
   "models/items/binoculars" "1" "1"
   //
   endarray

   

   i also tryd it like this on all of them

   
"bar" "" "1"

   and like this

   
"bar" "" "0"

   must just be AA?

   

   JADE:D
Title: weapons limiter.
Post by: Elgan {sfx} on January 11, 2006, 06:45:28 AM
single player?

   

   and ur settings look wrong, what u tyring to do? make sure the weapons limit game type list is set to all.

   

   the first set after the weap name is for a weap name to swap with, a numnber will just make it go cry. the seconnd bit is for a number, so ur bar bit sud be ok, removing the bar. Make sure its all turned on.
Title: weapons limiter.
Post by: JADE on January 11, 2006, 07:40:36 AM
sy elgan mulitplayer spearhead...all i wont to do is the rocket !!!

   1 per side !!!

   

   ??make sure the weapons limit game type list is set to all??were is this limiter?

   you dont just add the script above and it works then???

   

   why o why are thing not as easy as they apear lol

   

   yes its just rockers i wont the rest are ok as normal

   

   JADE
Title: weapons limiter.
Post by: Elgan {sfx} on January 11, 2006, 08:33:19 AM
ah, there is anotheer section for sh lower down.

   

   thats aa section
Title: weapons limiter.
Post by: JADE on January 12, 2006, 06:24:35 AM
Aaa ok place the link in here to the sp 1

   i thort there was a lot of sp weapons mist-out lol

   

   JADE
Title: weapons limiter.
Post by: Elgan {sfx} on January 12, 2006, 09:46:19 AM
its in the same file, the SH weapons limiter setting are under the AA ones.
Title: weapons limiter.
Post by: JADE on January 12, 2006, 03:40:37 PM
hmmm ok i copyed it off this thred but nm

   i tryed the same 1 on aa server and still did not work

   it must be a admin pro thing

   

   JADE
Title: weapons limiter.
Post by: Elgan {sfx} on January 12, 2006, 04:39:26 PM
what??:S:S:S:

   

   

   in admin pro settings folde.r open weapons-limiter.txt

   

   scroll down to the SH section, edit it, upload, done
Title: weapons limiter.
Post by: JADE on January 14, 2006, 08:46:45 AM
ok lol sorry m8 i explained my self rong !!!

   i have it working,the admim pro is working fine,it scans and finds me as a admin

   

   all the things work apart from the scripts list

   countdown and weapons-limiter and the rest of them on scripts,non will work

   when i restart the server,it says there all off

   

   im trying this in spearhead and i am trying it from home,on home server i have

   2 eagames folders so i dont use the same folder for them both {ie}server and the game i join with

   

   so i dont need upload by ftp,so i just take my weapons limiter file i added my settings to and place it were my server runs from?

   

   this admin pro,it's just like the zzzzzz-Rindogs_ThemedCommands.pk3 i have?

   but admin pro has more to it,but very sim

   

   ok thanks

   

   JADE:D
Title: weapons limiter.
Post by: Elgan {sfx} on January 14, 2006, 08:54:45 AM
-Rindogs_ThemedCommands were rescripted and added t AP. i think there is a rcon prob on some SH servers when it comes to punishments and shit tho,

   

   

   weapons limiter?

   

   i still dont get u:S

   

   upload ur settings in a settings folder or pk3 onto ur server mantt...

   

   none scripts will work? Sounds like they are not getting any settings, look in console for errors?, the settings folder should be in maintt of the game. if linux probabyl will need to be in a pk3.
Title: weapons limiter.
Post by: JADE on January 14, 2006, 11:27:40 AM
ok i looked in my qconsole file after trying them and i get no errors

   just this

   
SV packet 192.168.1.5:12204 : rcon
   Rcon from 192.168.1.5:12204:
   admin_cmd
   
   > searching for command. Please wait to enter cvars again.

   

   non of the spin,twist or others work toO

   

   i can kick,restart,load a map,say and change sever settings like the speed you run and stuff,,all with admin pro

   just some stuff wont work same as the ringdog some dont work on it too

   

   JADE
Title: weapons limiter.
Post by: Elgan {sfx} on January 14, 2006, 11:33:10 AM
yeah, the AP has a rcon problem for SH, dunno what it is, will fix it soon.

   

   ignore the msg above, Its fine.

   

   

   neither of this has anythign to do with weapons limiter tho, That should work.

   

   post ur weapons settings.
Title: weapons limiter.
Post by: JADE on January 14, 2006, 05:58:58 PM
ok the only 1 i wont to limit is the rockets

   
      //Ally weapons                                       This should be "" if u are swapping a weapon.
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "Springfield '03 Sniper"         ""                        "0"
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "bar"                  ""                        "0"
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "Thompson"               ""                        "0"
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "bazooka"               ""                        "1"
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "M1 Garand"               ""                        ""
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "Lee-Enfield"               ""                        ""
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "Mosin Nagant Rifle"            ""                        ""
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "PPSH SMG"               ""                        ""
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "Sten Mark II"               ""                        ""
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "SVT 40"               ""                        ""
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         //Axis
         "kar98"                  ""                        ""
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "KAR98 - Sniper"            ""                        ""
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "mp40"                  ""                        ""
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "mp44"                  ""                        ""
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "Panzerschreck"               ""                        "1"
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "G 43"                  ""                        ""
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         "Gewehrgranate"               ""                        ""
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         //both
         "Shotgun"               ""                        ""
         //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      //
      endarray
   
   end local.SHweapons

   

   this i put in the settings folder in my server mainta

   and its also in my mainta in my game folder

   

   JADE
Title: weapons limiter.
Post by: Elgan {sfx} on January 14, 2006, 06:28:16 PM
have u tried putting the settings folder inside a pk3?
Title: weapons limiter.
Post by: JADE on January 14, 2006, 09:00:10 PM
no?

   do i just add the settings folder to the pk3?

   any pk3 that i use?

   

   JADE

   

   ok trying it
Title: weapons limiter.
Post by: Elgan {sfx} on January 14, 2006, 09:01:17 PM
add the whole settings folder into any pk3, or make a new pk3.
Title: weapons limiter.
Post by: JADE on January 14, 2006, 09:24:48 PM
ok i made a pk3 called it Settings.pk3

   put this in my mainta in the server1

   

   this is it

   

   do i have to add user to the name i called it?i dont no i think im doing it right

   should i put it in my mainta in my game folder i conect with?

   

   JADE

   

   i just seen this in my qconsole log file what dose it mean ?

   
if($player[local.i].dmteam != "spectator" && isalive $player[local.i] && $player[local.i].flying != 1 ) (global/under_map.scr, 25)
            if($player[local.i]^
   
   ^~^~^ Script Error: Field 'dmteam' applied to NULL listener
Title: weapons limiter.
Post by: Elgan {sfx} on January 14, 2006, 09:44:52 PM
its just a variable error, bad coding by me i guess.

   

   im really confused ok:S

   

   

   you should have uploaded the pk with the settings folder inside and the pk3 of admin pro to your miantt on the server
Title: weapons limiter.
Post by: JADE on January 14, 2006, 09:58:57 PM
ok i just had to change this in were it save my rcon in settings

   to this for it to remember my rcon password

   from this

   set rconpassword "777777777777"

   to this

   seta rconPassword "88888888888"

   now it remembers every time,were before it didnot

   

   OK its 3am here in uk going to sleep on it m8 lol

   

   JADE:D
Title: weapons limiter.
Post by: Elgan {sfx} on January 14, 2006, 10:02:03 PM
yeah i know the time here in uk.

   

   lol. i am so confused, i thought  u were talking about weapons limiter? but you talk about rconpasswords:S?
Title: weapons limiter.
Post by: JADE on January 14, 2006, 10:09:42 PM
yes i sead this about the rcon not working well remembering my password incase there are other set,seta that may need changed

   it is the weapons that dont work for me all the other things are fine apart from scripts list!!!

   in my ss i posted upper post

   

   sorry for being a pain elgan but im just as bafald as any1 els lol

   

   JADE
Title: weapons limiter.
Post by: Elgan {sfx} on January 14, 2006, 10:18:10 PM
scripts list? u may just have a wrong version menu for the admin pro version u have.

   

   also the scripts list is part of the rcon, The rcon for SH doesnt seem to work right on AP.

   

   the weapons i dont know why they dont work, maybe u have something conflicting.
Title: weapons limiter.
Post by: JADE on January 15, 2006, 08:50:55 AM
ok well do you use teamspeak or ventrilo i can run thro it better on there if you have the time

   would be nice to hear ya and much better than typeing

   

   ok i have taken admin pro off all of it and will redown load it and start again

   

   i have no mods or maps in my folders just stock every thing not evern a skin or sound mod anywere so should not get any conflickts from anywere

   

   if you say this weapons works then i will get it to work too

   has any1 got this working in spearhead that could help here too

   

   JADE
Title: weapons limiter.
Post by: Elgan {sfx} on January 15, 2006, 08:53:13 AM
i can dl teamspeak or so, where meet?
Title: weapons limiter.
Post by: JADE on January 15, 2006, 09:17:16 AM
ok i found a ts the ip is 212.227.60.198:8500

   im in sleepy chanel as JADE

   

   ok thanks

   

   JADE