Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Need help on a small issue with my mod

Need help on a small issue with my mod

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
5 Posts 2 Posters 80 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jaxhldnundefined Offline
    jaxhldnundefined Offline
    jaxhldn
    wrote on last edited by jaxhldn
    #1

    This is the first mod i've ever made and it basically just spawns you with a loadout in zombies but for some reason the guns arent in your hand when you spawn in. If you scroll your mouse wheel you get the guns and im not sure why. Can anyone help? here is the code

    #include maps\mp_utility;
    #include common_scripts\utility;
    #include maps\mp\gametypes_zm_hud_util;
    #include maps\mp\gametypes_zm_hud_message;

    init()
    {
    level.givecustomloadout = ::givecustomloadout;
    }
    givecustomloadout(alreadyspawned)
    {
    self giveweapon( "knife_zm" );
    if ( level.round_number >= 1)
    {
    self giveweapon( "tazer_knuckles_zm" );
    self giveWeapon( "hamr_upgraded_zm" );
    self giveWeapon( "raygun_mark2_upgraded_zm" );
    self maps/mp/zombies/_zm_perks::give_perk( "specialty_armorvest" );
    self maps/mp/zombies/_zm_perks::give_perk( "specialty_fastreload" );
    self maps/mp/zombies/_zm_perks::give_perk( "specialty_rof" );
    self maps/mp/zombies/_zm_perks::give_perk( "specialty_quickrevive" );
    self maps/mp/zombies/_zm_perks::give_perk( "specialty_longersprint" );
    }
    }

    Dss0undefined 1 Reply Last reply
    0
    • jaxhldnundefined jaxhldn

      This is the first mod i've ever made and it basically just spawns you with a loadout in zombies but for some reason the guns arent in your hand when you spawn in. If you scroll your mouse wheel you get the guns and im not sure why. Can anyone help? here is the code

      #include maps\mp_utility;
      #include common_scripts\utility;
      #include maps\mp\gametypes_zm_hud_util;
      #include maps\mp\gametypes_zm_hud_message;

      init()
      {
      level.givecustomloadout = ::givecustomloadout;
      }
      givecustomloadout(alreadyspawned)
      {
      self giveweapon( "knife_zm" );
      if ( level.round_number >= 1)
      {
      self giveweapon( "tazer_knuckles_zm" );
      self giveWeapon( "hamr_upgraded_zm" );
      self giveWeapon( "raygun_mark2_upgraded_zm" );
      self maps/mp/zombies/_zm_perks::give_perk( "specialty_armorvest" );
      self maps/mp/zombies/_zm_perks::give_perk( "specialty_fastreload" );
      self maps/mp/zombies/_zm_perks::give_perk( "specialty_rof" );
      self maps/mp/zombies/_zm_perks::give_perk( "specialty_quickrevive" );
      self maps/mp/zombies/_zm_perks::give_perk( "specialty_longersprint" );
      }
      }

      Dss0undefined Offline
      Dss0undefined Offline
      Dss0
      Plutonium Staff
      wrote on last edited by
      #2

      jaxhldn post the code of your mod

      jaxhldnundefined 1 Reply Last reply
      0
      • Dss0undefined Dss0

        jaxhldn post the code of your mod

        jaxhldnundefined Offline
        jaxhldnundefined Offline
        jaxhldn
        wrote on last edited by jaxhldn
        #3

        Dss0 idk how i forgot to do that lmaooo i added it to the original post

        Dss0undefined 1 Reply Last reply
        0
        • jaxhldnundefined jaxhldn

          Dss0 idk how i forgot to do that lmaooo i added it to the original post

          Dss0undefined Offline
          Dss0undefined Offline
          Dss0
          Plutonium Staff
          wrote on last edited by
          #4

          jaxhldn you need to add

          self switchToWeapon( "hamr_upgraded_zm" );
          
          jaxhldnundefined 1 Reply Last reply
          0
          • Dss0undefined Dss0

            jaxhldn you need to add

            self switchToWeapon( "hamr_upgraded_zm" );
            
            jaxhldnundefined Offline
            jaxhldnundefined Offline
            jaxhldn
            wrote on last edited by
            #5

            Dss0 thanks that worked

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Donate