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.
  • Spiszyundefined Offline
    Spiszyundefined Offline
    Spiszy
    wrote on last edited by Spiszy
    #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
    • FragsAreUsundefined Offline
      FragsAreUsundefined Offline
      FragsAreUs Plutonium Staff
      wrote on last edited by FragsAreUs
      #2

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

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

      Spiszyundefined 1 Reply Last reply
      0
      • Spiszyundefined Offline
        Spiszyundefined Offline
        Spiszy
        wrote on last edited by
        #3

        yeah, its main_shared\maps\mp\gametypes

        1 Reply Last reply
        0
        • Spiszyundefined Offline
          Spiszyundefined Offline
          Spiszy
          replied to FragsAreUs on 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

          • Login

          • Don't have an account? Register

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