Navigation Menu

Skip to content

Commit

Permalink
Fix some .357 weapons
Browse files Browse the repository at this point in the history
Fix for AlyxGun and HLS Hand Grenade.
  • Loading branch information
robotboy655 committed Jun 6, 2014
1 parent 2f1fd73 commit eabc843
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 1 deletion.
Binary file modified garrysmod/resource/gameui_english.txt
Binary file not shown.
Binary file modified garrysmod/resource/garrysmod_english.txt
Binary file not shown.
63 changes: 63 additions & 0 deletions garrysmod/scripts/weapon_alyxgun.txt
@@ -0,0 +1,63 @@
// Alyx Gun

WeaponData
{
// Weapon data is loaded by both the Game and Client DLLs.
"printname" "#HL2_AlyxGun"
"viewmodel" "models/weapons/c_pistol.mdl"
"playermodel" "models/weapons/w_alyx_gun.mdl" //FIXME:
"anim_prefix" "alyxgun"
"bucket" "1"
"bucket_position" "4"

"clip_size" "30"
"clip2_size" "-1"

"default_clip" "30"
"default_clip2" "-1"

"primary_ammo" "AlyxGun"

"weight" "2"
"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_Pistol.Reload"
"reload_npc" "Weapon_Pistol.NPC_Reload"
"empty" "Weapon_Pistol.Empty"
"single_shot" "Weapon_Pistol.Single"
"single_shot_npc" "Weapon_Pistol.NPC_Single"
"special1" "Weapon_Pistol.Special1"
"special2" "Weapon_Pistol.Special2"
"burst" "Weapon_Pistol.Burst"
}

// Weapon Sprite data is loaded by the Client DLL.
TextureData
{
"ammo"
{
"font" "WeaponIconsSmall"
"character" "p"
}
"crosshair"
{
"file" "sprites/crosshairs"
"x" "0"
"y" "48"
"width" "24"
"height" "24"
}
"autoaim"
{
"file" "sprites/crosshairs"
"x" "0"
"y" "48"
"width" "24"
"height" "24"
}
}
}
2 changes: 1 addition & 1 deletion garrysmod/scripts/weapon_annabelle.txt
Expand Up @@ -8,7 +8,7 @@ WeaponData
"playermodel" "models/weapons/w_annabelle.mdl"
"anim_prefix" "shotgun"
"bucket" "2"
"bucket_position" "1"
"bucket_position" "2"
"clip_size" "2"
"primary_ammo" "357"
"secondary_ammo" "None"
Expand Down
54 changes: 54 additions & 0 deletions garrysmod/scripts/weapon_handgrenade.txt
@@ -0,0 +1,54 @@
// Hand grenade

WeaponData
{
// Weapon data is loaded by both the Game and Client DLLs.
"printname" "#HL1_HandGrenade"
"viewmodel" "models/v_grenade.mdl"
"playermodel" "models/w_grenade.mdl"
"anim_prefix" "crowbar"
"bucket" "4"
"bucket_position" "2"

"clip_size" "-1"
"default_clip" "5"
"primary_ammo" "Grenade"
"secondary_ammo" "None"

"weight" "5"
"item_flags" "24" // ITEM_FLAG_LIMITINWORLD | ITEM_FLAG_EXHAUSTIBLE

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

// Weapon Sprite data is loaded by the Client DLL.
TextureData
{
"weapon"
{
"file" "sprites/640hud3"
"x" "0"
"y" "0"
"width" "170"
"height" "45"
}
"weapon_s"
{
"file" "sprites/640hud6"
"x" "0"
"y" "0"
"width" "170"
"height" "45"
}
"ammo"
{
"file" "sprites/640hud7"
"x" "48"
"y" "96"
"width" "24"
"height" "24"
}
}
}

0 comments on commit eabc843

Please sign in to comment.