Raised This Month: $94 Target: $400
 23% 

[HL] AK-47: Avtomat Kalashnikova


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Half-Life        Category:   Admin Commands        Approver:   ConnorMcLeod (74)
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 08-17-2012 , 07:18   [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #1

AK-47: Avtomat Kalashnikova [AGHL.ru link]
version 1.0
by KORD_12.7



Supported mods:
  • Half-Life only.

Needed modules:

Description:
This plugin will add new weapon to game: The AK-47 is a selective-fire, gas-operated 7.6239mm assault rifle, first developed in the USSR by Mikhail Kalashnikov. It is officially known as Avtomat Kalashnikova (Russian: Автомат Калашникова). It is also known as a Kalashnikov, an "AK", or in Russian slang, Kalash. Rifle also have secondary melee attack with bayonet.

Settings:
Code:
// Weapon settings
#define WEAPON_NAME 			"weapon_ak47"
#define WEAPON_SLOT			2
#define WEAPON_POSITION			5
#define WEAPON_PRIMARY_AMMO		"762x39"
#define WEAPON_PRIMARY_AMMO_MAX		90
#define WEAPON_SECONDARY_AMMO		"" // NULL
#define WEAPON_SECONDARY_AMMO_MAX	-1
#define WEAPON_MAX_CLIP			30
#define WEAPON_DEFAULT_AMMO		30
#define WEAPON_FLAGS			0
#define WEAPON_WEIGHT			15
#define WEAPON_DAMAGE			16.0

// Hud
#define WEAPON_HUD_TXT			"sprites/weapon_ak47.txt"
#define WEAPON_HUD_SPR			"sprites/weapon_ak47.spr"

// Ammobox
#define AMMOBOX_CLASSNAME		"ammo_ak47clip"

// Models and sounds
#define MODEL_CLIP			"models/w_ak47_clip.mdl"
#define MODEL_SHELL			"models/shell_762x39.mdl"

#if defined _CSO_
	#define MODEL_WORLD		"models/w_ak47_cso.mdl"
	#define MODEL_VIEW		"models/v_ak47_cso.mdl"
	#define MODEL_PLAYER		"models/p_ak47_cso.mdl"
	
	#define SOUND_COCK		"weapons/ak47_boltpull.wav"
	#define SOUND_FIRE		"weapons/ak47-1.wav"
	#define SOUND_RELOAD_1		"weapons/ak47_clipin.wav"
	#define SOUND_RELOAD_2		"weapons/ak47_clipout.wav"
#else
	#define MODEL_WORLD		"models/w_ak47_fa.mdl"
	#define MODEL_VIEW		"models/v_ak47_fa.mdl"
	#define MODEL_PLAYER		"models/p_ak47_fa.mdl"
	
	#define SOUND_COCK		"weapons/ak47_cock.wav"
	#define SOUND_FIRE		"weapons/ak47_fire1.wav"
	#define SOUND_RELOAD_1		"weapons/ak47_magin.wav"
	#define SOUND_RELOAD_2		"weapons/ak47_magout.wav"
#endif

#define SOUND_MISS_1			"weapons/bayonet_slash1.wav"
#define SOUND_MISS_2			"weapons/bayonet_slash2.wav"
#define SOUND_MISS_3			"weapons/bayonet_slash3.wav"

#define SOUND_HIT_WALL			"weapons/bayonet_hit_wall.wav"
#define SOUND_HIT_FLESH_1		"weapons/knife_hit_flesh1.wav"
#define SOUND_HIT_FLESH_2		"weapons/knife_hit_flesh2.wav"

// Animation
#define ANIM_EXTENSION			"mp5"

Credits:
  • GordonFreeman - for help with testing.
  • Koshak - for model editing and testing.

Video:

Changelog:
1.0
  • First release.
Note:
Do not use webcompiler aka "Get Plugin" button. Get Source and compile it manually.
Attached Thumbnails
Click image for larger version

Name:	AK-47_screenshot.jpg
Views:	1622
Size:	83.1 KB
ID:	107931  
Attached Files
File Type: zip resources.zip (2.05 MB, 864 views)
File Type: sma Get Plugin or Get Source (ak47.sma - 1630 views - 16.6 KB)
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community

Last edited by KORD_12.7; 09-23-2012 at 02:39.
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
SPT1
Senior Member
Join Date: Aug 2012
Old 08-17-2012 , 09:00   Re: [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #2

nice
SPT1 is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 08-17-2012 , 09:14   Re: [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #3

sorry for the spam, but it's really nice to see my favorite weapon in HL too. so thank you a lot .
__________________
ANTICHRISTUS is offline
alencore
Senior Member
Join Date: Oct 2011
Old 09-10-2012 , 13:27   Re: [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #4

Me too I love the ak47. I use an ak74 with GL though. Definitely will check this out.

edit...
Really don't like the model ak47 here well the hands really so got one from TS but it's very buggy of course.
So any tips or guide you know of to fix that?
__________________

Last edited by alencore; 09-15-2012 at 04:10.
alencore is offline
nagile
Member
Join Date: Dec 2012
Location: Norway
Old 01-10-2013 , 15:49   Re: [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #5

This is my favourite gun but theres 1 problem emptying a clip go to fast do you think you could raise max ammo to 210 instead of 120?
__________________
nagile is offline
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 01-10-2013 , 21:11   Re: [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #6

Change in plugin's sma this value to yours:

#define WEAPON_PRIMARY_AMMO_MAX 90
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
nagile
Member
Join Date: Dec 2012
Location: Norway
Old 01-11-2013 , 08:12   Re: [HL] AK-47: Avtomat Kalashnikova
Reply With Quote #7

Thanks seems like its standard on all custom weapons i changed AK to max ammo 180.
__________________
nagile is offline
Reply


Thread Tools
Display Modes

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 08:05.


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