No Grenade Launcher

A Config Script for Half-Life 2

Why not?

73 lines | 1 kb | 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Sub-Machine Gun 1 (No Grenade Launcher)

WeaponData
{
        // Weapon data is loaded by both the Game and Client DLLs.
        "printname"     "#HL2_SMG1"
        "viewmodel"                             "models/weapons/v_smg1.mdl"
        "playermodel"                   "models/weapons/w_smg1.mdl"     //FIXME:
        "anim_prefix"                   "pistol"
        "bucket"                                "2"
        "bucket_position"               "0"
        "bucket_360"                    "1"
        "bucket_position_360"   "0"

        "clip_size"                             "INPUT ANY NUMBER HERE"

        "default_clip"                  "COPY "clip_size" NUMBER"

        "primary_ammo"                  "SMG1"

        "weight"                                "3"
        "rumble"                        "3"
        "item_flags"                    "0"

        // Sounds for the weapon. There is a max of 16 sounds per category (i.e. max 16 "single_shot" sounds)
        SoundData
        {
                "reload"                        "Weapon_SMG1.Reload"
                "reload_npc"            "Weapon_SMG1.NPC_Reload"
                "empty"                         "Weapon_SMG1.Empty"
                "single_shot"           "Weapon_SMG1.Single"
                "single_shot_npc"       "Weapon_SMG1.NPC_Single"
                "burst"                         "Weapon_SMG1.Burst"
        }

        // Weapon Sprite data is loaded by the Client DLL.
        TextureData
        {
                "weapon"
                {
                                "font"          "ExtraElementsE"
                                "character"     "x"
                }
                "weapon_s"
                {      
                                "font"          "ExtraElementsE"
                                "character"     "x"
                }
                "weapon_small"
                {
                                "font"          "ExtraElementsE"
                                "character"     "x"
                }
                "ammo"
                {
                                "font"          "WeaponIconsSmall"
                                "character"     "R"
                }
                "crosshair"
                {
                                "font"          "Crosshairs"
                                "character"     "Q"
                }
                "autoaim"
                {
                                "file"          "sprites/crosshairs"
                                "x"                     "0"
                                "y"                     "48"
                                "width"         "24"
                                "height"        "24"
                }
        }
}
If you don`t like that the SMG has a grenade laucher, here`s a script that removes that ability.
Here`s a tutorial how to install it :
  1. Go to "hl2/scripts"
  2. Copy file "weapon_smg1"
  3. Go to "hl2/custom/(SMG MOD FILE)
  4. Create folder "scripts"
  5. Insert the copy of "weapon_smg1"
  6. Open it
  7. Copy this script and replacer the SMG script
Don`t forger to replace "INPUT ANY NUMBER HERE" and "COPY "clip_size" NUMBER" with numbers

Bugs :
The game still thinks that the SMG has a grenade launcher and plays the empty animation.
Sign up to access this!
  • 5H1FTY avatar
    5H1FTY Joined 11mo ago
    Offline
    276 points Ranked 15873rd
    10mo
    Is it possible to make the ar2 fire grenades instead of the SMG ?
    Half-Life is Life
    URL to post:
  • LambdaFox avatar
    LambdaFox Joined 2y ago
    Offline
    2,991 points Ranked 1733rd
    15 medals 1 legendary 2 rare
    • 2017 Top Contributor Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • Submission featured Medal icon
    • Returned 100 times Medal icon
    • One month a member Medal icon
    10mo
    Idk much about scripting but is it possible to make a script that will allow fire while using the suit zoom? I think it can currently be done with the buggy and airboat but I'm not certain.
    Dang typos.
    URL to post:

Embed

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

Credits

Key Authors
Doctor Twilight
Doctor Twilight Joined 2y ago
Offline
201 points Ranked 19984th
Editing
Original Authors
Valve
Original script

Submitter

Doctor Twilight avatar
Doctor Twilight Joined 2y ago
Safe
201 points Ranked 19984th

Doctor Twilight
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+
  • 930 Views
  • 4 Posts
  • 10moSubmitted

Scores

  • Not yet rated
Sign up to access this!

WiPs by Submitter

More Weapons Scripts

bcp.crwdcntrl.net tracking pixel