The Game Modding Community - Since 2001

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.

Posts

  • 4mo
    5H1FTY avatar
    5H1FTY Joined 5mo ago
    Offline
    167 points Ranked 21690th
    Is it possible to make the ar2 fire grenades instead of the SMG ?
    Half-Life is Life
  • 4mo
    LambdaFox avatar
    LambdaFox Joined 1y ago
    Online
    ?
    1,805 points Ranked 2810th
    14 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
    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.

Embed

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

Credits

Key Authors
Doctor Twilight
Doctor Twilight Joined 1y ago
Offline
136 points Ranked 24846th
Editing
Original Authors
Valve
Original script

Submitter

Doctor Twilight avatar
Doctor Twilight Joined 1y ago
Safe
136 points Ranked 24846th

Doctor Twilight
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Share

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

Stats

  • 615 Views
  • 4 Posts
  • 4mo Submitted

Scores

  • Not yet rated
Sign up to access this!

Hey, you! Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Interested? Sign up now!

Already a Bananite? Login

WiPs by Submitter

bcp.crwdcntrl.net tracking pixel