M40A1: Sniper Rifle [AGHL.ru Link]
version 1.0
by KORD_12.7
- Half-Life only.
- Weapon Mod
- HamSandWich
- Fakemeta
Adding new weapon to game with AMXX module: Half-Life Weapon Mod. The M40A1 Sniper Rifle is a weapon used by the HECU Snipers in Half-Life and the male Black Ops in Half-Life: Opposing Force. It is a powerful rifle that can kill many types of living beings in a single hit. It has a scope attached to it to make it easy to engage long range targets. First introduced in Half-Life, the rifle model name was given in Opposing Force.
Settings:
Code: // Weapon settings
#define WEAPON_NAME "weapon_sniperrifle"
#define WEAPON_SLOT 3
#define WEAPON_POSITION 4
#define WEAPON_PRIMARY_AMMO "762"
#define WEAPON_PRIMARY_AMMO_MAX 15
#define WEAPON_SECONDARY_AMMO "" // NULL
#define WEAPON_SECONDARY_AMMO_MAX -1
#define WEAPON_MAX_CLIP 5
#define WEAPON_DEFAULT_AMMO 5
#define WEAPON_FLAGS 0
#define WEAPON_WEIGHT 10
#define WEAPON_DAMAGE 100.0
// Hud
#define WEAPON_HUD_TXT "sprites/weapon_sniperrifle.txt"
#define WEAPON_HUD_SPR "sprites/weapon_sniperrifle.spr"
// Ammobox
#define AMMOBOX_CLASSNAME "ammo_762"
// Models
#define MODEL_WORLD "models/w_m40a1.mdl"
#define MODEL_VIEW "models/v_m40a1.mdl"
#define MODEL_PLAYER "models/p_m40a1.mdl"
#define MODEL_CLIP "models/w_m40a1clip.mdl"
// Sounds
#define SOUND_FIRE "weapons/sniper_fire.wav"
#define SOUND_ZOOM "weapons/sniper_zoom.wav"
#define SOUND_BOLT_1 "weapons/sniper_bolt1.wav"
#define SOUND_BOLT_2 "weapons/sniper_bolt2.wav"
#define SOUND_RELOAD_1 "weapons/sniper_reload_first_seq.wav"
#define SOUND_RELOAD_2 "weapons/sniper_reload_second_seq.wav"
#define SOUND_RELOAD_3 "weapons/sniper_reload3.wav"
// Animation
#define ANIM_EXTENSION "gauss"
- Gearbox - for awesome mod Opposing Force.
- GordonFreeman - for help with testing.
Attached Files


Wyświetl pełny artykuł