M249: Squad Automatic Weapon [AGHL.ru link]
version 1.0
by KORD_12.7
Supported mods:
- Half-Life only.
- Weapon Mod
- HamSandWich
- Fakemeta
This plugin will add new weapon to game: the M249 Squad Automatic Weapon, also known as the M249 SAW or simply SAW, is a weapon featured in Half-Life: Opposing Force. It is a powerful automatic weapon used by the HECU. The M249 is a machine gun that offers squad-level support. However, it also has a lot of recoil added to it as well so that the SMG is not made completely obsolete. Firing the gun in bursts increases accuracy greatly, and aiming downwards and/or crouching will greatly decrease the gun's recoil.
Code: // Weapon settings
#define WEAPON_NAME "weapon_m249"
#define WEAPON_SLOT 3
#define WEAPON_POSITION 5
#define WEAPON_PRIMARY_AMMO "556"
#define WEAPON_PRIMARY_AMMO_MAX 200
#define WEAPON_SECONDARY_AMMO "" // NULL
#define WEAPON_SECONDARY_AMMO_MAX -1
#define WEAPON_MAX_CLIP 50
#define WEAPON_DEFAULT_AMMO 50
#define WEAPON_FLAGS 0
#define WEAPON_WEIGHT 15
#define WEAPON_DAMAGE 15.0
// Hud
#define WEAPON_HUD_TXT "sprites/weapon_m249.txt"
#define WEAPON_HUD_SPR "sprites/weapon_m249.spr"
// Ammobox
#define AMMOBOX_CLASSNAME "ammo_556"
// Models
#define MODEL_WORLD "models/w_saw.mdl"
#define MODEL_VIEW "models/v_saw.mdl"
#define MODEL_PLAYER "models/p_saw.mdl"
#define MODEL_CLIP "models/w_saw_clip.mdl"
#define MODEL_SHELL "models/saw_shell.mdl"
#define MODEL_LINK "models/saw_link.mdl"
// Sounds
#define SOUND_FIRE_1 "weapons/saw_fire1.wav"
#define SOUND_FIRE_2 "weapons/saw_fire2.wav"
#define SOUND_FIRE_3 "weapons/saw_fire3.wav"
#define SOUND_RELOAD_1 "weapons/saw_reload.wav"
#define SOUND_RELOAD_2 "weapons/saw_reload2.wav"
// Animation
#define ANIM_EXTENSION "mp5"
- Gearbox - for awesome mod Opposing Force.
- Koshak - for model editing.
1.0
- First release.
Attached Files resources.zip (327.3 KB) m249.zip (11.5 KB)
Wyświetl pełny artykuł