Results 1 to 7 of 7

Thread: All weapons mod?

  1. #1

    Default All weapons mod?

    I seriously can't figure this out. I used to have all this on an old PC and i'm pretty sure it's just an edit with the mike_torso.st isn't it?

    I found one from mohaaaaaaaa.co.uk or some crap but i don't like being its only team weapons and he added fog and stuff i don't want.

    thanks in advance.

    I should add my server runs Reborn scripts so i don't know what one to edit or anything been too long.
    Last edited by LilChefDeath; April 7th, 2018 at 05:53 AM.

  2. #2

    Default

    Purple Weapon Limiter allows you to do what you want.

  3. #3

    Default

    Code:
    main:
    
    thread weapons
    end
    
    weapons:
    
    local.player = parm.other
    
    if(local.player == NULL || local.player == NIL)
    end
    
    if(self.dmteam == "allies" ) 
    {
    self give models/weapons/springfield.tik
    self give models/weapons/bar.tik
    self give models/weapons/bazooka.tik
    self give models/weapons/m1_garand.tik
    self give models/weapons/kar98.tik
    self give models/weapons/shotgun.tik
    self give models/weapons/thompsonsmg.tik
    self give models/weapons/kar98sniper.tik
    self give models/weapons/kar98.tik
    self give models/weapons/mp44.tik
    self give models/weapons/panzerschreck.tik
    self give models/weapons/steilhandgranate.tik
    self give models/weapons/p38.tik
    self give models/weapons/mp40.tik
    
    }
    
    if(self.dmteam == "axis") 
    {
    self give models/weapons/springfield.tik
    self give models/weapons/bar.tik
    self give models/weapons/bazooka.tik
    self give models/weapons/m1_garand.tik
    self give models/weapons/kar98.tik
    self give models/weapons/shotgun.tik
    self give models/weapons/thompsonsmg.tik
    self give models/weapons/kar98sniper.tik
    self give models/weapons/kar98.tik
    self give models/weapons/mp44.tik
    self give models/weapons/panzerschreck.tik
    self give models/weapons/steilhandgranate.tik
    self give models/weapons/p38.tik
    self give models/weapons/mp40.tik
    
    }
    end

  4. #4

    Default

    That’s what I have can I just save it as a giveall.scr and in server config just call exec global/giveall.scr ?

  5. #5

    Default

    can't exec from server.cfg added it to mikes_torso.st file it will be aoround line 900 or so

    //==============================================================================
    //==============================================================================
    //
    // RAISE_WEAPON
    //
    //==============================================================================

    state RAISE_WEAPON
    {
    movetype legs

    entrycommands
    {
    exec global/giveall.scr

    viewmodelanim pullout

  6. #6
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,269

    Default

    There are numerous weapon mods out there that can do what you ask, some rely on modifications in weapon.tiks, other are (as above) executed from state files ( also above might not work all the time, as parm.other is not always the player, if executing from state file, please use self )

    My weapon mod uses the Reborn event system, which includes a 'spawn' event, so everytime the player spawns the script runs. This, included with the ability to change weapon settings with a cvar, allows you to make changes to weapon settings mid-map without requiring a map restart. ( players would just need to re-spawn, depending on gametype is easy ). My weapon mod includes 4 main weapon mods,
    1 = All weapons - Player gets all weapons , including those of the other team
    2 = All Team Weapons - Player gets all weapons of their team
    3 = All Allowed Team Weapons - Player gets all of the Allowed weapons of their team
    4 = All Allowed Weapons - Player gets all of the Allowed weapons , including those of the other teams

    https://www.x-null.net/forums/showth...=purple+weapon

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  7. #7

    Default

    as parm.other is not always the player, if executing from state file, please use self )
    See that I just learned something new after all this time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •