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

Plutonium

  1. Home
  2. MW3 Modding Releases & Resources
  3. [Release] Lua Scripting

[Release] Lua Scripting

Scheduled Pinned Locked Moved MW3 Modding Releases & Resources
24 Posts 13 Posters 5.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mikzyundefined Offline
    mikzyundefined Offline
    mikzy Banned
    wrote on last edited by
    #10

    good release 🙂

    1 Reply Last reply
    0
    • Xx_Phoenix_xXundefined Offline
      Xx_Phoenix_xXundefined Offline
      Xx_Phoenix_xX
      replied to fed on last edited by
      #11

      fed so how do i implement this on my game?

      1 Reply Last reply
      0
      • fedundefined Offline
        fedundefined Offline
        fed
        wrote on last edited by
        #12

        Put that in a file like Plutonium/storage/iw5/scripts/yourscript/__init__.lua

        Xx_Phoenix_xXundefined 1 Reply Last reply
        0
        • Xx_Phoenix_xXundefined Offline
          Xx_Phoenix_xXundefined Offline
          Xx_Phoenix_xX
          replied to fed on last edited by
          #13

          fed does it work on all servers or only my own? btw nice gungame server its lots of fun

          1 Reply Last reply
          0
          • BO2undefined Offline
            BO2undefined Offline
            BO2 Contributor Banned
            replied to fed on last edited by
            #14

            fed It doesn't seem to work for me. I did the Damage Counter Script you made in the above comments. But It never worked, I neither know how to run it. (if you have to run it manually) Any Help?

            fedundefined 1 Reply Last reply
            0
            • fedundefined Offline
              fedundefined Offline
              fed
              replied to BO2 on last edited by
              #15

              @ScottieC111
              1 - Copy the plugin to Plutonium/storage/iw5/plugins/
              2 - Create a file in Plutonium/storage/iw5/scripts/yourscript/__init__.lua and copy the code into it
              3 - Run the server

              1 Reply Last reply
              1
              • naccibundefined Offline
                naccibundefined Offline
                naccib
                wrote on last edited by
                #16

                Looks like a great addition, I'll install Pluto IW5 to try this out.

                I didn't notice any issues or development plan on GitHub. Looking forward to contributing to it.

                1 Reply Last reply
                0
                • st0rmundefined Offline
                  st0rmundefined Offline
                  st0rm VIP
                  wrote on last edited by
                  #17

                  fed Thank you for adding the lua support. I've been trying to get hasperk and unsetperk to work but it seem it crash the server upon loading the script every time.

                  function onPlayerSpawned( player )
                  	if(player:haspek("specialty_grenadepulldeath")) then
                  		print(player.name .. " is using marty")
                  	end	
                  end
                  
                  function onPlayerConnected( player )
                      local spawnListener = player:onnotify("spawned_player", function() onPlayerSpawned(player) end)
                  end
                  
                  level:onnotify("connected", onPlayerConnected)
                  
                  fedundefined 1 Reply Last reply
                  0
                  • fedundefined Offline
                    fedundefined Offline
                    fed
                    replied to st0rm on last edited by
                    #18

                    st0rm not sure why it crashes but doing this works fine:

                    function onPlayerSpawned( player )
                        game:ontimeout(function()
                            if(player:hasperk("specialty_grenadepulldeath") == 1) then
                                print(player.name .. " is using marty")
                            end	
                        end, 0)
                    end
                    
                    function onPlayerConnected( player )
                        local spawnListener = player:onnotify("spawned_player", function() onPlayerSpawned(player) end)
                    end
                    
                    level:onnotify("connected", onPlayerConnected)
                    
                    1 Reply Last reply
                    0
                    • st0rmundefined Offline
                      st0rmundefined Offline
                      st0rm VIP
                      wrote on last edited by
                      #19

                      Thanks Fed. That work just fine. I learnt the hard way the mw3 sets death perks in a really dumb way where there is not way to unset them since they're based on death streaks.

                      Kalitosundefined 1 Reply Last reply
                      0
                      • Kalitosundefined Offline
                        Kalitosundefined Offline
                        Kalitos
                        replied to fed on last edited by
                        #20

                        fed I am trying to upload the plugin to the server, but I am getting the following error:

                        a08b266d-a8e6-4b21-9bae-fb25e0c3732c-image.png

                        1 Reply Last reply
                        0
                        • Kalitosundefined Offline
                          Kalitosundefined Offline
                          Kalitos
                          replied to st0rm on last edited by
                          #21

                          st0rm And regarding this, I don't know what you want to achieve, but if it works for you, in GSC I use this to deactivate the death streaks

                          onPlayerKilled()
                          {
                              self endon("disconnect");
                              level endon("game_ended");
                              for(;;)
                              {
                                  self waittill("killed_player");
                                  self.pers["cur_death_streak"] = 0; //Stop deathstreak
                              }
                          } 
                          
                          1 Reply Last reply
                          0
                          • Kalitosundefined Offline
                            Kalitosundefined Offline
                            Kalitos
                            wrote on last edited by
                            #22

                            I needed Net Framework 3.5. I already solved it.

                            1 Reply Last reply
                            0
                            • Desempregradoundefined Offline
                              Desempregradoundefined Offline
                              Desempregrado
                              replied to fed on last edited by
                              #23

                              fed I came here today to ask a question about the lua language in Bo2 Plutonium, I wanted to know another method to change or add custom menus in bo2 Plutonium without having to use the plutonium files that is privategamelobby_project.lua ?

                              I want to load my own lua script into the game, is that possible ? How to do that..?

                              1 Reply Last reply
                              0
                              • Major_Tomundefined Offline
                                Major_Tomundefined Offline
                                Major_Tom
                                wrote on last edited by
                                #24

                                Hi
                                I try to use the 1.8 version when i start the server it crashs without error
                                i use windows server 2019

                                1 Reply Last reply
                                0

                                • 1
                                • 2
                                • Login

                                • Don't have an account? Register

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