SWEP Base Info Script

A Config Script for Garry's Mod

32 lines | 916 bytes | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Change what ever you want in this script \\
SWEP.PrintName = ""
SWEP.Author = ""
SWEP.Instructions = ""

SWEP.Spawnable = true
SWEP.AdminOnly = false
SWEP.Category = ""

SWEP.Primary.ClipSize = 30
SWEP.Primary.DefaultClip = 30

SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "30"

SWEP.Secondary.ClipSize =
SWEP.Secondary.DefaultClip =
SWEP.Secondary.Ammo =
SWEP.Secondary.Automatic =
SWEP.WorldModel = "models/weapon/w_pistol.mdl"
SWEP.ViewModel = "models/weapons/v_pistol.mdl"

SWEP.Weight = 3
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
SWEP.Slot = 1
SWEP.SlotPos = 2
SWEP.DrawAmmo = true
SWEP.DrawCrosshair = true

local ShootSound = Sound ( "Weapon_357.Single" )  // or  "SWEP.Primary.Sound"  -- No Quotes \\
// Example, don't put local shootsound, remove the whole thing and just put "SWEP.Primary.Sound" with no quotes like the other lines of scripts above \\
GMOD Swep Base Information Lua Code.
beginners shud be able to understand(i am a beginner, i started 2 days ago)

Posts

  • [gsk]crossfire avatar
    [gsk]crossfire username pic Joined 2y ago
    hey there bby.
    166 points Ranked 22408th
    2y
    Posted by MarioDox

    Posted by crossfiresoldier

    Posted by MarioDox

    Posted by crossfiresoldier

    Posted by MarioDox

    Because I know, the weapon will shoot even faster than an smg and it will do the 357 sound, even if you change the shootsound.
    The Shootsound should be

    "SWEP.Primary.Sound"

    shud i change it? the "local ShootSound = Sound ( 'Weapon_357.Single') to SWEP.Primary.Sound?


    Yes, because it "local ShootSound" doesn't work.
    oh ok, but it worked for me idk

    You are using a custom base then.


    Its also for using emit sounds for the primaryattack
    i make useless stuff avatar
    Mantra
    i make useless stuff
  • MarioDox avatar
    MarioDox username pic Joined 4y ago
    Offline
    Mario's Company Flag Affiliation: Mario's Company
    4,358 points Ranked 1174th
    33 medals 3 legendary 5 rare
    • Returned 5000 times Medal icon
    • Submitted 50 Maps Medal icon
    • 30 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • Submitted 50 Skins Medal icon
    MarioDox avatar
    MarioDox
    Mario's Company Flag
    Affiliation
    Mario's Company
    2y
    Posted by crossfiresoldier

    Posted by MarioDox

    Posted by crossfiresoldier

    Posted by MarioDox

    Because I know, the weapon will shoot even faster than an smg and it will do the 357 sound, even if you change the shootsound.
    The Shootsound should be

    "SWEP.Primary.Sound"

    shud i change it? the "local ShootSound = Sound ( 'Weapon_357.Single') to SWEP.Primary.Sound?


    Yes, because it "local ShootSound" doesn't work.
    oh ok, but it worked for me idk

    You are using a custom base then.

  • [gsk]crossfire avatar
    [gsk]crossfire username pic Joined 2y ago
    hey there bby.
    166 points Ranked 22408th
    2y
    Posted by MarioDox

    Posted by crossfiresoldier

    Posted by MarioDox

    Because I know, the weapon will shoot even faster than an smg and it will do the 357 sound, even if you change the shootsound.
    The Shootsound should be

    "SWEP.Primary.Sound"

    shud i change it? the "local ShootSound = Sound ( 'Weapon_357.Single') to SWEP.Primary.Sound?


    Yes, because it "local ShootSound" doesn't work.
    oh ok, but it worked for me idk

    i make useless stuff avatar
    Mantra
    i make useless stuff
  • MarioDox avatar
    MarioDox username pic Joined 4y ago
    Offline
    Mario's Company Flag Affiliation: Mario's Company
    4,358 points Ranked 1174th
    33 medals 3 legendary 5 rare
    • Returned 5000 times Medal icon
    • Submitted 50 Maps Medal icon
    • 30 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • Submitted 50 Skins Medal icon
    MarioDox avatar
    MarioDox
    Mario's Company Flag
    Affiliation
    Mario's Company
    2y
    Posted by crossfiresoldier

    Posted by MarioDox

    Because I know, the weapon will shoot even faster than an smg and it will do the 357 sound, even if you change the shootsound.
    The Shootsound should be

    "SWEP.Primary.Sound"

    shud i change it? the "local ShootSound = Sound ( 'Weapon_357.Single') to SWEP.Primary.Sound?


    Yes, because it "local ShootSound" doesn't work.
  • [gsk]crossfire avatar
    [gsk]crossfire username pic Joined 2y ago
    hey there bby.
    166 points Ranked 22408th
    2y
    Posted by MarioDox

    Because I know, the weapon will shoot even faster than an smg and it will do the 357 sound, even if you change the shootsound.
    The Shootsound should be

    "SWEP.Primary.Sound"

    shud i change it? the "local ShootSound = Sound ( 'Weapon_357.Single') to SWEP.Primary.Sound?

    i make useless stuff avatar
    Mantra
    i make useless stuff
  • MarioDox avatar
    MarioDox username pic Joined 4y ago
    Offline
    Mario's Company Flag Affiliation: Mario's Company
    4,358 points Ranked 1174th
    33 medals 3 legendary 5 rare
    • Returned 5000 times Medal icon
    • Submitted 50 Maps Medal icon
    • 30 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • Submitted 50 Skins Medal icon
    MarioDox avatar
    MarioDox
    Mario's Company Flag
    Affiliation
    Mario's Company
    2y
    Because I know, the weapon will shoot even faster than an smg and it will do the 357 sound, even if you change the shootsound.
    The Shootsound should be

    "SWEP.Primary.Sound"
  • [gsk]crossfire avatar
    [gsk]crossfire username pic Joined 2y ago
    hey there bby.
    166 points Ranked 22408th
    2y

    Anything not working? :/

    i make useless stuff avatar
    Mantra
    i make useless stuff

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Credits

script
[gsk]crossfire avatar
[gsk]crossfire username pic Joined 2y ago
Offline
166 points Ranked 22408th
script

Submitter

[gsk]crossfire avatar
[gsk]crossfire username pic Joined 2y ago
hey there bby.
166 points Ranked 22408th

[gsk]crossfire avatar
[gsk]crossfire

Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 2,888 Views
  • 7 Posts
  • 2y Submitted
  • 2y Modified

Scores

  • Not yet rated
Sign up to access this!

More from Submitter

More Other/Misc Scripts

bcp.crwdcntrl.net tracking pixel