Annabelle for HL2 MMod

A Config Script for Half-Life 2

108 lines | 2 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// Annabelle - Grigori's shotgun

WeaponData
{
    // Weapon data is loaded by both the Game and Client DLLs.
    "printname"        "LEVER-ACTION RIFLE"
    "viewmodel"        "models/weapons/v_annabelle.mdl"
    "playermodel"        "models/weapons/w_annabelle.mdl"
    "anim_prefix"        "shotgun"
    "bucket"            "3"
    "bucket_position"        "2"
    "clip_size"        "10"
    "default_clip"        "10"
    "primary_ammo"        "357"
    "secondary_ammo"    "None"

    "weight"        "4"
    "rumble"        "2"
    "item_flags"        "0"

//        IronSight
//    {
//        "forward"        "-5"
//        "right"        "-1"
//        "up"        "1.5"
//        "roll"        "0.5"
//        "pitch"        "-1"
//        "yaw"        "1"
//        "fov"        "-15"
//        "time"        "0.30"
//        "crosshair"    "1"
//        "chromatic"    "3.5"
//        "blur"        "1.0"
//    }

        IronSight
    {
        "forward"        "-3"
        "right"        "-1.4"
        "up"        "0.5"
        "roll"        "-4.20"
        "pitch"        "-2"
        "yaw"        "2"
        "fov"        "-20"
        "time"        "0.30"
        "crosshair"    "1"
        "chromatic"    "3.5"
        "blur"        "1.0"
    }

    // Sounds for the weapon. There is a max of 16 sounds per category (i.e. max 16 "single_shot" sounds)
    SoundData
    {

        "empty"                "Weapon_Shotgun.Empty"
        "reload"            "Weapon_Shotgun.NPC_Reload"
        "special1"            "Weapon_Shotgun.Special1"
        "single_shot"            "Weapon_357.Single"
        // NPC WEAPON SOUNDS
        "reload_npc"        "Weapon_Shotgun.NPC_Reload"
        "single_shot_npc"    "Weapon_Shotgun.NPC_Single"
    }

    // Weapon Sprite data is loaded by the Client DLL.
    TextureData
    {
        "weapon"
        {
                "font"        "WeaponIcons"
                "character"    "b"
        }
        "weapon_s"
        {    
                "font"        "WeaponIconsSelected"
                "character"    "b"
        }
        "weapon_small"
        {
                "font"        "WeaponIconsSmall"
                "character"    "b"
        }
        "ammo"
        {
                "font"        "WeaponIconsSmall"
                "character"    "q"
        }
        "crosshair"
        {
                "font"        "HL2MModCrosshairs"
                "character"    "b"
        }
        "zoom"
        {
                "font"        "HL2MModCrosshairs"
                "character"    "A"
        }
        "autoaim"
        {
                "font"        "HL2MModCrosshairs"
                "character"    "b"
        }
        "zoom_autoaim"
        {
                "font"        "HL2MModCrosshairs"
                "character"    "A"
        }
    }
}

Enclosed is a simple script for using the Annabelle with the HL2 MMod.

Ongoing issues: No crosshair when aiming or running animations

Due to this being a simple hack to get the gun working; I won't be working too much on this.

Installation: create a .txt file named "weapon_annabelle" in the Scripts folder for the MMod sub-mod [ex: "HL2MMod_HL2U" for HL2 Update]. SImply copy the code into the empty text file, or paste over the existing code if you already have a txt file for the Annabelle.
Sign up to access this!

Embed

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

Credits

Key Authors
aqui1ifer
aqui1ifer Joined 2y ago
Offline
127 points Ranked 28113rd

Submitter

aqui1ifer avatar
aqui1ifer Joined 2y ago
Offline
127 points Ranked 28113rd

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

Game

Sign up to access this!

Category

License

Feel free to use/improve this where able, just be sure to ask & give me some credit if you decide to reupload this anywhere else.

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+
  • 294 Views
  • 1 Posts
  • 9dSubmitted

Scores

  • Not yet rated
Sign up to access this!

More Weapons Scripts

bcp.crwdcntrl.net tracking pixel