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 627 Views 2 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.
  • 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
        • FragsAreUsundefined FragsAreUs

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

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

          Spiszyundefined Offline
          Spiszyundefined Offline
          Spiszy
          wrote 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

          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
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Donate