weapons limiter.

Started by Elgan {sfx}, February 17, 2005, 08:05:12 AM

Previous topic - Next topic

Elgan {sfx}

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 ?

ilikefungus

Can limit certain ammount of weapons per team or game.

   

   

   

    that would suck because youd have people spawning without weapons!
marquee>strong>font size=1>scroll speed=-8>font color=
ed>Young Experienced Scripter/Mapper: b>Master-Of-Fungus-Foo-D/b>/font>color=green>Curent:Going along with Shock and Awe!/color>

Elgan {sfx}

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.

   

Cobra {sfx}

I think he means like have 2 snipers available and the rest cant select sniper once theyre in use etc
Sleep? What is that?

Elgan {sfx}

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.

JADE

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
im back for a while but not to stay so if you need anything fixed just ask away.

Elgan {sfx}

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.

JADE

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
im back for a while but not to stay so if you need anything fixed just ask away.

Elgan {sfx}

ah, there is anotheer section for sh lower down.

   

   thats aa section

JADE

Aaa ok place the link in here to the sp 1

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

   

   JADE
im back for a while but not to stay so if you need anything fixed just ask away.

Elgan {sfx}

its in the same file, the SH weapons limiter setting are under the AA ones.

JADE

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
im back for a while but not to stay so if you need anything fixed just ask away.

Elgan {sfx}

what??:S:S:S:

   

   

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

   

   scroll down to the SH section, edit it, upload, done

JADE

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
im back for a while but not to stay so if you need anything fixed just ask away.

Elgan {sfx}

-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.