Raised This Month: $51 Target: $400
 12% 

[HL] M40A1: Sniper Rifle


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Half-Life        Category:   Gameplay        Approver:   Arkshine (91)
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-23-2012 , 10:34   [HL] M40A1: Sniper Rifle
Reply With Quote #1

M40A1: Sniper Rifle [AGHL.ru Link]
version 1.1
by KORD_12.7


Supported mods:
  • Half-Life only.
Needed Modules:
Description:
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"
Credits:
  • Gearbox - for awesome mod Opposing Force.
  • GordonFreeman - for help with testing.
Video:


Attached Files
File Type: sma Get Plugin or Get Source (sniperrifle.sma - 3778 views - 9.8 KB)
File Type: zip resources.zip (217.3 KB, 1773 views)

Last edited by GordonFreeman (RU); 06-09-2013 at 08:53.
GordonFreeman (RU) is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-30-2012 , 10:46   Re: [HL] M40A1: Sniper Rifle
Reply With Quote #2

Approved.
__________________
Arkshine is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 08-16-2012 , 06:41   Re: [HL] M40A1: Sniper Rifle
Reply With Quote #3

Updated.
  • Added zoom crosshair, like in OP4
  • Increased accuarcy
__________________
The functional way is the right way
GordonFreeman (RU) is offline
alencore
Senior Member
Join Date: Oct 2011
Old 09-10-2012 , 06:28   Re: [HL] M40A1: Sniper Rifle
Reply With Quote #4

Awesome!
__________________
alencore is offline
nagile
Member
Join Date: Dec 2012
Location: Norway
Old 12-12-2012 , 08:09   Re: [HL] M40A1: Sniper Rifle
Reply With Quote #5

when i try to run the plugin it run no bad load but as soon as i try to switch weapon the whole game crash and there is no snipers on the map.
if i enable instead of just let it auto enable HamSandWich and Fakemeta i get No free edicts yet.

Last edited by nagile; 12-13-2012 at 10:15.
nagile is offline
Psycho_MantisX2
Junior Member
Join Date: Mar 2009
Old 12-18-2012 , 02:28   Re: [HL] M40A1: Sniper Rifle
Reply With Quote #6

Leave it to auto detect the module. Make sure you have all models, sounds, and sprites in the right folders. Also compile the source manually and don't download the plugin.

Last edited by Psycho_MantisX2; 12-18-2012 at 02:29.
Psycho_MantisX2 is offline
nagile
Member
Join Date: Dec 2012
Location: Norway
Old 01-11-2013 , 06:58   Re: [HL] M40A1: Sniper Rifle
Reply With Quote #7

Please make the sniper instant fire.
there is a delay after you fire before your bullet hits the target.
i tried to shoot with it several times to confirm this and compare it with crossbow.
crossbow is instant fire when you zoom.
this gun is not when you hit fire please make it instant hit not even 1 ms as fast as possible hit the target. this is only a problem on moving targets but the fire delay could mean difference between win/loose.
__________________
nagile is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode