Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Resource] GSC give yourself the one_inch_punch correctly

[Resource] GSC give yourself the one_inch_punch correctly

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
7 Posts 4 Posters 1.6k 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.
  • coder x64undefined Offline
    coder x64undefined Offline
    coder x64
    Contributor
    wrote on last edited by coder x64
    #1

    Hi, I found a common mistake that some people do when they create mods that give someone the iron fist but it doesn't do any damage because they don't call monitor_melee_swipe() function in maps/mp/zombies/_zm_weap_one_inch_punch this function determine the damage for the iron fist.
    To fix this problem just call monitor_melee_swipe() in a thread.

    NOTE: You should Include _zm_weap_one_inch_punch.gsc with:

    #include maps/mp/zombies/_zm_weap_one_inch_punch;
    

    for monitor_melee_swipe() function.

    The list of the one_inch_punch that you can use:
    one_inch_punch_zm: Regular Punch
    one_inch_punch_upgraded_zm: Upgraded Punch
    one_inch_punch_air_zm: Upgraded Air Punch
    one_inch_punch_fire_zm: Upgraded Fire Punch
    one_inch_punch_ice_zm: Upgraded Ice Punch
    one_inch_punch_lightning_zm: Upgraded Lightning Punch

    Here an example to give yourself the upgraded iron fist:

    // The animation part its optional
    current_melee_weapon = self get_player_melee_weapon();
    self takeweapon( current_melee_weapon );
    str_weapon = self getcurrentweapon();
    self disable_player_move_states( 1 );
    self giveweapon("zombie_one_inch_punch_upgrade_flourish" );
    self switchtoweapon("zombie_one_inch_punch_upgrade_flourish" );
    self waittill_any( "player_downed","weapon_change_complete" );
    self switchtoweapon( str_weapon );
    self enable_player_move_states();
    self takeweapon("zombie_one_inch_punch_upgrade_flourish" );
    // The end of the animation part
    self giveweapon( "one_inch_punch_upgraded_zm" );
    self set_player_melee_weapon("one_inch_punch_upgraded_zm" );
    self thread monitor_melee_swipe();
    
    Vilowwwundefined 1 Reply Last reply
    1
    • JuiceTrailer62undefined Offline
      JuiceTrailer62undefined Offline
      JuiceTrailer62
      wrote on last edited by
      #2

      hmmm very cool but even with the included file I get a error with monitor_melee_swipeCapture.PNG

      coder x64undefined 1 Reply Last reply
      0
      • JuiceTrailer62undefined JuiceTrailer62

        hmmm very cool but even with the included file I get a error with monitor_melee_swipeCapture.PNG

        coder x64undefined Offline
        coder x64undefined Offline
        coder x64
        Contributor
        wrote on last edited by
        #3

        @bad_renzo You should include _zm_weap_one_inch_punch.gsc with:
        #include maps/mp/zombies/_zm_weap_one_inch_punch;

        JuiceTrailer62undefined 1 Reply Last reply
        1
        • AdrX003undefined Offline
          AdrX003undefined Offline
          AdrX003
          wrote on last edited by
          #4

          hmmmmm noice, thanks alot!

          i was trying to do exactly that, solve the problem in origins were we cant finish the easter egg with more than 4 player because the game is coded to recognize 4-AND-Total number of players.

          pretty sure i would let this slip when implementing it, as im a complete noob at it.

          1 Reply Last reply
          2
          • coder x64undefined coder x64

            @bad_renzo You should include _zm_weap_one_inch_punch.gsc with:
            #include maps/mp/zombies/_zm_weap_one_inch_punch;

            JuiceTrailer62undefined Offline
            JuiceTrailer62undefined Offline
            JuiceTrailer62
            wrote on last edited by
            #5

            coder x64 I did lol I said that in the message

            1 Reply Last reply
            0
            • coder x64undefined coder x64

              Hi, I found a common mistake that some people do when they create mods that give someone the iron fist but it doesn't do any damage because they don't call monitor_melee_swipe() function in maps/mp/zombies/_zm_weap_one_inch_punch this function determine the damage for the iron fist.
              To fix this problem just call monitor_melee_swipe() in a thread.

              NOTE: You should Include _zm_weap_one_inch_punch.gsc with:

              #include maps/mp/zombies/_zm_weap_one_inch_punch;
              

              for monitor_melee_swipe() function.

              The list of the one_inch_punch that you can use:
              one_inch_punch_zm: Regular Punch
              one_inch_punch_upgraded_zm: Upgraded Punch
              one_inch_punch_air_zm: Upgraded Air Punch
              one_inch_punch_fire_zm: Upgraded Fire Punch
              one_inch_punch_ice_zm: Upgraded Ice Punch
              one_inch_punch_lightning_zm: Upgraded Lightning Punch

              Here an example to give yourself the upgraded iron fist:

              // The animation part its optional
              current_melee_weapon = self get_player_melee_weapon();
              self takeweapon( current_melee_weapon );
              str_weapon = self getcurrentweapon();
              self disable_player_move_states( 1 );
              self giveweapon("zombie_one_inch_punch_upgrade_flourish" );
              self switchtoweapon("zombie_one_inch_punch_upgrade_flourish" );
              self waittill_any( "player_downed","weapon_change_complete" );
              self switchtoweapon( str_weapon );
              self enable_player_move_states();
              self takeweapon("zombie_one_inch_punch_upgrade_flourish" );
              // The end of the animation part
              self giveweapon( "one_inch_punch_upgraded_zm" );
              self set_player_melee_weapon("one_inch_punch_upgraded_zm" );
              self thread monitor_melee_swipe();
              
              Vilowwwundefined Offline
              Vilowwwundefined Offline
              Vilowww
              wrote on last edited by
              #6

              coder x64 could you provide a download for this script?

              AdrX003undefined 1 Reply Last reply
              0
              • Vilowwwundefined Vilowww

                coder x64 could you provide a download for this script?

                AdrX003undefined Offline
                AdrX003undefined Offline
                AdrX003
                wrote on last edited by
                #7

                Vilowww this script is a part to fix another thing, theres no "easy download and run" on this

                1 Reply Last reply
                1
                • Coronavirus-19undefined Coronavirus-19 referenced this topic on

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                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
                • Unread 0
                • Recent
                • Tags
                • Popular
                • Users
                • Groups