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

Plutonium

  1. Home
  2. WAW Modding Support & Discussion
  3. Problems editing _weapons.gsc

Problems editing _weapons.gsc

Scheduled Pinned Locked Moved WAW Modding Support & Discussion
4 Posts 2 Posters 161 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.
  • undefined Offline
    undefined Offline
    Spiszy
    wrote on Apr 15, 2021, 10:58 PM last edited by Spiszy Apr 16, 2021, 2:05 AM
    #1

    I'm trying to put some custom scripts inside of _weapons.gsc (essentially the same way I would on Cod4). I get no errors compiling it into a mod, however launching the mod doesnt have any changes with the code I have put in.

    For example, I have a script to remove players guns if a sniper is not selected, and give them a springfield, essentially for an SL mod. However, none of the changes take effect.

    I've placed the _weapons.gsc into my raw folder, my mod, and the main_shared, with no luck. The odd thing, is restricting perks by editing _class.gsc and placing it in the main_shared folder works.

    Anyone had a similar problem that they've fixed?
    Below is some of the code I'm trying to use for perk setup.

    perks.png

    1 Reply Last reply
    0
    • undefined Offline
      undefined Offline
      FragsAreUs Plutonium Staff
      wrote on Apr 16, 2021, 12:51 AM last edited by FragsAreUs Apr 16, 2021, 3:51 AM
      #2

      and your main_shared has the correct patch as if it was a ff or iwd layout

      for example main_shared/maps/mp/....

      undefined 1 Reply Last reply Apr 16, 2021, 3:25 AM
      0
      • undefined Offline
        undefined Offline
        Spiszy
        wrote on Apr 16, 2021, 3:10 AM last edited by
        #3

        yeah, its main_shared\maps\mp\gametypes

        1 Reply Last reply
        0
        • undefined Offline
          undefined Offline
          Spiszy
          replied to FragsAreUs on Apr 16, 2021, 3:25 AM last edited by
          #4

          FragsAreUs I figured it out. It was a scripting error on my part. Didn't have onPlayerspawn pointing towards setupPerks thread correctly.

          1 Reply Last reply
          0

          1/4

          Apr 15, 2021, 10:58 PM

          • Login

          • Don't have an account? Register

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