Page 5 of 5 FirstFirst ... 345
Results 41 to 45 of 45

Thread: Give Weapon (but only once?)

  1. #41

    Default

    Quote Originally Posted by 1337Smithy View Post
    It's probably worth testing cos I can see an issue still. I think you mean $player[local.i]
    yes, was that

  2. #42
    Senior Member verruguitens's Avatar
    Join Date
    Mar 2017
    Location
    Argentina
    Posts
    186

    Default

    Test in all weapons from russian soldiers and, with RIFLE drop the snipa on the floor when restart and pick with 0/20 bullets, chose SNIPER and drop the snipa on the floor and pick 0/75 bullets, chose SMG and drop the snipa on the floor and pick 0/0 bullets, and if you choose the mine detector it does not drop the weapon and gives you 5/75 bullets, it does not work correctly guys.

  3. #43

    Default

    Quote Originally Posted by verruguitens View Post
    Test in all weapons from russian soldiers and, with RIFLE drop the snipa on the floor when restart and pick with 0/20 bullets, chose SNIPER and drop the snipa on the floor and pick 0/75 bullets, chose SMG and drop the snipa on the floor and pick 0/0 bullets, and if you choose the mine detector it does not drop the weapon and gives you 5/75 bullets, it does not work correctly guys.
    That happend because you not taking all the weapons first and then give the weapon
    So you have to swap that to fix this.

  4. #44
    Senior Member verruguitens's Avatar
    Join Date
    Mar 2017
    Location
    Argentina
    Posts
    186

    Default

    Yes, why not? If you yourself passed me the code correctly, the only thing I did was change the "GIVE" of the Allies so that they have the Springfield and not the Mauser Kar98k, and then I eliminated that line of the Mauser in the codes of the Allies.




    local.player give models/weapons/kar98sniper.tik
    local.player take models/weapons/kar98.tik
    local.player take models/weapons/mp44.tik
    local.player take models/weapons/panzerschreck.tik
    local.player take models/weapons/shotgun.tik
    local.player take models/weapons/steilhandgranate.tik
    local.player take models/weapons/p38.tik
    local.player take models/weapons/mp40.tik
    local.player take models/weapons/nebelhandgranate.tik
    local.player take models/weapons/kar98_mortar.tik
    local.player take models/weapons/G43.tik
    local.player take models/weapons/Gr_W_Mine.tik
    local.player take models/weapons/Gr_W_MineDetector.tik
    local.player take models/weapons/It_W_Beretta.tik
    local.player take models/weapons/It_W_Bomba.tik
    local.player take models/weapons/It_W_BombaBreda.tik
    local.player take models/weapons/It_W_Breda.tik
    local.player take models/weapons/It_W_Carcano.tik
    local.player take models/weapons/It_W_Moschetto.tik
    local.player thread death
    }
    else if(local.player.dmteam == allies)
    {
    local.player give models/weapons/springfield.tik
    local.player take models/weapons/bar.tik
    local.player take models/weapons/bazooka.tik
    local.player take models/weapons/m1_garand.tik
    local.player take models/weapons/shotgun.tik
    local.player take models/weapons/m2frag_grenade.tik
    local.player take models/weapons/colt45.tik
    local.player take models/weapons/thompsonsmg.tik
    local.player take models/weapons/ppsh_smg.tik
    local.player take models/weapons/sten.tik
    local.player take models/weapons/enfield.tik
    local.player take models/weapons/Mosin_Nagant_Rifle.tik
    local.player take models/weapons/mills_grenade.tik
    local.player take models/weapons/LandmineAllies.tik
    local.player take models/weapons/M18_smoke_grenade.tik
    local.player take models/weapons/m2frag_grenade.tik
    local.player take models/weapons/Nagant_revolver.tik
    local.player take models/weapons/RDG-1_Smoke_grenade.tik
    local.player take models/weapons/Russian_F1_grenade.tik
    local.player take models/weapons/svt_rifle.tik
    local.player take models/weapons/Uk_W_L42A1.tik
    local.player take models/weapons/Uk_W_Piat.tik
    local.player take models/weapons/Uk_W_Vickers.tik
    local.player take models/weapons/US_W_Mine.tik
    local.player take models/weapons/US_W_MineDetector.tik
    local.player take models/weapons/webley_revolver.tik
    local.player take models/weapons/DeLisle.tik

  5. #45
    Senior Member verruguitens's Avatar
    Join Date
    Mar 2017
    Location
    Argentina
    Posts
    186

    Default

    This is the pk3 look, test with folder "MODELS" and without this and only folder "GLOBAL".
    The "MODELS" folder contains all the files for the weapons and grenades, and the "GLOBAL" folder contains the Sniper.cfg and the MIKE_TORSO.st.


    I run it via:

    state RAISE_WEAPON
    {
    movetype legs

    entrycommands
    {

    exec global/sniper.cfg


    viewmodelanim pullout

    OnlySnipaMod.pk3

Posting Permissions

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